Koozali.org: home of the SME Server

unable to mount an old sme server hard disk

Offline myro

  • 3
  • +0/-0
unable to mount an old sme server hard disk
« on: March 15, 2009, 04:55:25 PM »
hello,
i have a and old 250 gb ide where I had a sme server installation and i'm trying to mount it to get some important datas that i forgot...
as you can see:

Code: [Select]
[root@smeserver ~]# fdisk -l

Disk /dev/hdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       60801   488384001   83  Linux

[color=red]Disk /dev/hdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1          13      104391   fd  Linux raid autodetect
/dev/hdc2              14       30401   244091610   fd  Linux raid autodetect[/color]

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   fd  Linux raid autodetect
/dev/sda2              14       30401   244091610   fd  Linux raid autodetect

Disk /dev/sdb: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          13      104391   83  Linux
/dev/sdb2              14       30401   244091610   83  Linux

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 249.9 GB, 249949716480 bytes
2 heads, 4 sectors/track, 61022880 cylinders
Units = cylinders of 8 * 512 = 4096 bytes   

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/dm-0: 245.6 GB, 245685551104 bytes
2 heads, 4 sectors/track, 59981824 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4227 MB, 4227858432 bytes
2 heads, 4 sectors/track, 1032192 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

when i try to mount hdc1 it works fine but when i try to mount hdc2

Code: [Select]
[root@smeserver ~]# mount /dev/hdc2 /media/250gb/ -t ext3
mount: wrong fs type, bad option, bad superblock on /dev/hdc2,
       or too many mounted file systems

google told me to try to fix the superblock using fsck:

Code: [Select]
[root@smeserver ~]# fsck /dev/hdc2
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hdc2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>


after a search i learned that different superblock' s backups are stored in the hd. you just have know where they are stored:

Code: [Select]
[root@smeserver ~]# dumpe2fs /dev/hdc2
dumpe2fs 1.35 (28-Feb-2004)
dumpe2fs: Bad magic number in super-block while trying to open /dev/hdc2
Couldn't find valid filesystem superblock.


can someone give me a hint on how to procced? i got no clue on what to do.
everything works fine on the first partition hdc1 but cannot do anything with hdc2.

Code: [Select]
[root@smeserver ~]# mount -t ext3 /dev/hdc1 /media/250gb/
[root@smeserver ~]# cd /media/
250gb/    500gb/    smbShare/ tmp/
[root@smeserver ~]# cd /media/250gb/
[root@smeserver 250gb]# ls
config-2.6.9-42.0.3.EL     initrd-2.6.9-42.0.3.EL.img     System.map-2.6.9-42.0.3.EL     vmlinuz-2.6.9-42.0.3.ELsmp
config-2.6.9-42.0.3.ELsmp  initrd-2.6.9-42.0.3.ELsmp.img  System.map-2.6.9-42.0.3.ELsmp
grub                       lost+found                     vmlinuz-2.6.9-42.0.3.EL
[root@smeserver 250gb]#


what am i missing?
thank you in advance




Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: unable to mount an old sme server hard disk
« Reply #1 on: March 15, 2009, 05:29:57 PM »
hi
maybe you are missing the LVM layer..

please search in the wiki for howto.. ;-)

ciao
Stefano
« Last Edit: March 15, 2009, 05:31:31 PM by Stefano a.k.a. nenonano »

Offline myro

  • 3
  • +0/-0
Re: unable to mount an old sme server hard disk
« Reply #2 on: March 15, 2009, 05:40:45 PM »
ciao ste,

i have followed this guide too:
http://wiki.contribs.org/Recovering_SME_Server_with_lvm_drives
which is the only one similar to my case.
what i vave tried was:

Code: [Select]
[root@smeserver 250gb]# mdadm -AR /dev/md8 /dev/hdc2
mdadm: /dev/md8 has been started with 1 drive (out of 2).


and then..

Code: [Select]
[root@smeserver 250gb]# mdadm --examine /dev/md8
mdadm: No super block found on /dev/md8 (Expected magic a92b4efc, got 00000000)

looks like something is really broken..
If you know a better link to follow, please could you share it to me?

grazie e ciao.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: unable to mount an old sme server hard disk
« Reply #3 on: March 15, 2009, 08:55:43 PM »
ciao ste,

ciao myro

[OT]italiano? se si passa anche "di la" ;-)[/OT]

Quote
i have followed this guide too:
http://wiki.contribs.org/Recovering_SME_Server_with_lvm_drives
which is the only one similar to my case.

yes, you are right.. I was referring to that one in my previous post.

Quote
what i vave tried was:

Code: [Select]
[root@smeserver 250gb]# mdadm -AR /dev/md8 /dev/hdc2
mdadm: /dev/md8 has been started with 1 drive (out of 2).


and then..

Code: [Select]
[root@smeserver 250gb]# mdadm --examine /dev/md8
mdadm: No super block found on /dev/md8 (Expected magic a92b4efc, got 00000000)

looks like something is really broken..
If you know a better link to follow, please could you share it to me?

grazie e ciao.

 From man mdadm
" -E, --examine
              Print content of md superblock on device(s).
 ...
       --examine
              The device should be a component of an md array. "

So you should be trying mdadm -E /dev/hdc2

HTH
ciao
Stefano