----- Original Message ----- From: "Karol Pietrzak" Monday, December 31, 2001 3:14 PM Subject: Re: [SLE] Cannot mount reiserfs-partition
On 31 Dec 2001, Morten Christensen wrote:
I have lost the file-servers data-harddisk.
When I try to get in contact with the original data-disk it says: fdisk -l /dev/hdc Disk /dev/hdc: 256 heads, 63 sectors, 5005 cylinders. Device: /dev/hdc1, Start: 1, End:5005, Blocks: 40202631, Id: 83, System: Linux
mount -t reiserfs /dev/hdc1 /31 answers: Mount: wrong fs type, bad option, bad superblock on /dev/hdc1, or too many mounted file systems.
Can you help me to get in contact with the data on the disk?
I believe your superblock may be corrupted. The util to research is 'reiserfsck', which does a barrage of different things to try to fix reiserfs partitions. So grab a bootdisk / rootdisk combo with 'reiserfsck' (I believe the SuSE CD's rescue mode has this), and here's a couple of options you should add when first running it (all information taken from reiserfsck(8) man page):
--fix-fixable, -x have reiserfsck to recover corruptions which can be fixed w/o --rebuild-tree when it is runnig in check mode. Corruptions which can be fixed so far: bad pointers to data blocks, wrong directory's st_size and st_blocks, directories entries pointing to nowhere can be deleted
Output was: reiserfs_open: bread failed reading block 16 reiserfs_open: neither new or old reiserfs format found on /dev/hdc1 main.c 690 main reiserfsck: could not open filesystem on "/dev/hdc1" Aborted
Try to mount the partition (read-only) and see where that gets you. If that still doesn't do it, try running 'reiserfsck -- rebuild-sb /dev/hd?' and this should work.
Same output about no reiserfs format on the partition.
As a last resort, try '--rebuild-tree':
--rebuild-tree This rebuilds filesystem tree using leaf nodes found on the device. Normally, you do not need this, but if you have to rebuild tree - please backup whole partition first or at least the most important data if you can mount the partition.
Have not dared to do that yet:-( Du you know a way to see, if the partition has any data left - or all contents was erased under my reinstallation? mvh... Morten Christensen