Skip to contentSkip to conversation

windows ate my superblock (try 2)

DISCUSSION Raphael Bosshard 1 participant 3 messages Dec 25, 2002 – Dec 28, 2002 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi there!

My little brother tried to install windows on my computer this morning ("don't touch my linux-partitions" i told him) but he let windows eat them anyway. my reiserfs-data partition also. (scandisk checking and "repairing", only partly AFAIK, AFAIH)

Mount failed with:
mount: wrong fs type, bad option, bad superblock on /dev/hdb,
or too many mounted file systems

so I tried a reiserfsck which resulted in a

reiserfs_open: neither new nor old reiserfs format found on /dev/hdd2
reiserfsck: could not open filesystem on "/dev/hdd2"

Some digging in the mailinglist pointed out that the superblock was destroyed, so I tried to rebuild it with:

reiserfsck --no-journal-available --rebuild-sb

reiserfsck now recognises the reiserfs-partition, but fails because there is no journal/wrong journal parameters.

(Filesystem with standard journal found, --no-journal-available is ignored
reiserfs_open_journal: wrong journal parameters found in the super block.)

Finaly my question: Is there a way to find out the right parameters and create a new journal?

Any help is appreciated, really. ;)
Happy new year!

Raphael

(Please CC me, I'm not on the list.)

#2 lore raw
In reply to a message not in the archive

Hi there!

No, the partition table seems to be allright, at least I had no problems with it.

I tried "reiserfsck --rebuild-sb" without the "--no-journal-available" parameter, but it failed:

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes super.c 218 rebuild_sb
Reiserfs with standard journal found, but there was specified a journal dev

(The thing about the journal dev is strange; I'm quite sure I didn't specify an special journal device when I created the fs.)

If you think things are messed up beyond repair, just tell me. I'll invest my energy in recovering some of the data. ;)

But still; any help is appreciated.

And if there are some documentations to be translated to german, just tell me. My german is better than my english and I'm quite willing to help.

Raphael

Quoted 18 lines · Jens Benecke
Quoted 5 lines · Raphael Bosshard

Hi there!

My little brother tried to install windows on my computer this morning ("don't touch my linux-partitions" i told him) but he let windows eat them anyway. my reiserfs-data partition also. (scandisk checking and "repairing", only partly AFAIK, AFAIH)

If your partition tables are (partly) b0rken, try gpart. gpart looks for FS signatures and recreates the partition table.

You might want to patch gpart to look for new ReiserFS format (ReIsErFs vs. ReIsEr2Fs or something like that).

#4 lore raw
In reply to a message not in the archive

Hi there!

that did it. It took ages to restore the whole filesystem but now almost everthing is back in place. At least the important things. Many, many "thank you"s to you all (from my brother too ;) )

And if I can help you by translating something (to german); please feel free to mail me.

Happy new year!

Raphael

Quoted 51 lines · Vitaly Fertman
Quoted 3 lines · Raphael Bosshard

Hi there!

Hi, I am on vacation now, sorry for my keeping silence. I guess, that if you take reiserfsprogs-3.6.5-pre1 and run reiserfsck --rebuild-sb /dev/xxx (without no-journal-available option), then you should have it all recovered. If not, I am afraid I will be able to give a proper ansrew why only after 5th, when get back to work and have a look at the 16th block of your fs.

Quoted 37 lines

My little brother tried to install windows on my computer this morning ("don't touch my linux-partitions" i told him) but he let windows eat them anyway. my reiserfs-data partition also. (scandisk checking and "repairing", only partly AFAIK, AFAIH)

Mount failed with:
mount: wrong fs type, bad option, bad superblock on /dev/hdb,
or too many mounted file systems

so I tried a reiserfsck which resulted in a

reiserfs_open: neither new nor old reiserfs format found on /dev/hdd2
reiserfsck: could not open filesystem on "/dev/hdd2"

Some digging in the mailinglist pointed out that the superblock was destroyed, so I tried to rebuild it with:

reiserfsck --no-journal-available --rebuild-sb

reiserfsck now recognises the reiserfs-partition, but fails because there is no journal/wrong journal parameters.

(Filesystem with standard journal found, --no-journal-available is ignored
reiserfs_open_journal: wrong journal parameters found in the super block.)

Finaly my question: Is there a way to find out the right parameters and create a new journal?

Any help is appreciated, really. ;)
Happy new year!

Raphael

(Please CC me, I'm not on the list.)