bug report
Having difficulty recovering a damaged ReiserFS.
Tried stuff- reiserfsck, reiserfstune, etc. Seems to lead into an infinite loop of things to try but don't work- ie: do x, but x needs y, but y needs z, but z needs x.
Not sure what you need to know.
"reiserfstune" man page talks about "kernel patched with special 'relocatable journal support' patch"
- can't find that patch.
Thanks!
Rob
Hello!
Quoted 7 lines · On Mon, Apr 28, 2003 at 04:40:49PM -0400, [email protected] wrote:
Having difficulty recovering a damaged ReiserFS.
Tried stuff- reiserfsck, reiserfstune, etc. Seems to lead into an infinite loop of things to try but don't work- ie: do x, but x needs y, but y needs z, but z needs x.
Not sure what you need to know.
"reiserfstune" man page talks about "kernel patched with special 'relocatable journal support' patch"
Well, unfortunatelly you provided not enough info at all.
We'd like to know:
what was your problem, how did you decide that reiserfs is damaged? Quote any relevant messages from kernel/reiserfsprogs. Do you know how you get it damaged? what reiserfsck version do you have? What steps have you already performed? What is the kernel version?
Bye,
Oleg
Thanks for writing back. :)
Quoted 1 line
Well, unfortunatelly you provided not enough info at all.
Of course. I wasn't sure your needs, and rather than write a book,... :) Firstly- there is no panic here. I'd love to recover the data, but nothing is at all critical, etc. I can see the data on sectors, so I know it's there and I can harvest anything I care to. I'm more interested in figuring out how to do this, and very much hopefully helping you guys. :)
I'll answer in different order-
Quoted 1 line
What is the kernel version?
2.4.20, 2.4.21-rc1-ac3, 2.5.68
Quoted 2 lines
We'd like to know: what was your problem,
how did you decide that reiserfs is damaged?
It will not mount. Mount says: "wrong fs type, bad option, bad superblock on /dev/hdb1, or too many mounted filesystems."
1) root (/dev/hda2) is Reiserfs, so that works. :)
2) root is only mounted filesystem (so not too many mounted)
3) specified "-t reiserfs" on mount line
Quoted 1 line
Do you know how you get it damaged?
Brilliant MS "format"- it formatted the WRONG partition. I don't know how, partition was different and marked "Linux 83", but leave it to MS. I looked at the sectors- it overwrote the MBR and everything. I fixed the partition table because I had the info. "MS Format" didn't do a ton of damage, though, and I'm hoping to get back some data, but it's not critical. :) (In the future I will NOT run MS stuff with Linux partitions in the same system. I certainly will NOT run any MS "tools" with Linux partitions in system. Never had a problem before, but that's good old MS for you.)
Quoted 1 line
what reiserfsck version do you have?
Tried 2:
3.6.4 - came with "Slackware 9.0", the OS distro on that system.
3.6.7-pre1 - I downloaded and compiled these with gcc 3.2.2, libc 2.3.1, ...
Quoted 1 line
What steps have you already performed?
ran "reiserfsck" - it wants "--no-journal-available"
That churns and finally seems to say everything is OK. :) But, it says I must run "reiserfstune to specify a new journal before mounting it."
ran "reiserfsck --rebuild-sb /dev/hdb1"
ran "reiserfsck --rebuild-sb --no-journal-available /dev/hdb1"
Both say: "Reiserfs with non standard journal found, but there was not specified any journal dev".
Not sure what to do there- the journal was always internal.
Anyway, tried "reiserfstune --make-journal-standard /dev/hdb1" and that dumps a bunch of stuff:
---------------------------------------------------------------------
Current parameters:
Filesystem state: consistent
Reiserfs super block in block 16 on 0x341 of format 3.6 with non-standard journal Count of blocks on the device: 1401663
Number of bitmaps: 43
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 1054508 Root block: 20
Filesystem is cleanly umounted
Tree height: 4
Hash function used to sort names: "r5"
Objectid map size 191, max 972
Journal parameters:
Device [0x343]
Magic [0xffffffff]
Size 283145 blocks (including 1 for journal header) (first block 0) Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0:sb_version: 2
inode generation number: 0
UUID: d79d6899-0a1c-4349-b159-9e10e9762b65
LABEL:
Set flags in SB:
ATTRIBUTES CLEAN
Current journal parameters:
Device [0x343]
Magic [0xffffffff]
Size 283145 blocks (including 1 for journal header) (first block 0) Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
ATTENTION! Filesystem with non-standard journal found. Continue? (y/n):y
reiserfstune: Can not create standard journal on separated device [0x343]
--------------------------------------------------------------------
Quoted 1 line
Quote any relevant messages from kernel/reiserfsprogs.
Nothing from kernel.
Tried "-f" options with some of above and got nowhere. I can't find where to get the patches you refer to in documentation- for relocatable journal, etc.
Thanks!!! Hope my problem helps you and your work. :)
Rob S.
Quoted 10 lines · Oleg Drokin
Hello!
Quoted 7 lines · On Mon, Apr 28, 2003 at 04:40:49PM -0400, [email protected] wrote:
Having difficulty recovering a damaged ReiserFS.
Tried stuff- reiserfsck, reiserfstune, etc. Seems to lead into an infinite loop of things to try but don't work- ie: do x, but x needs y, but y needs z, but z needs x.
Not sure what you need to know.
"reiserfstune" man page talks about "kernel patched with special 'relocatable journal support' patch"
Hello!
Quoted 9 lines · On Tue, Apr 29, 2003 at 04:20:44AM -0400, [email protected] wrote:
Quoted 1 line
Do you know how you get it damaged?
Brilliant MS "format"- it formatted the WRONG partition. I don't know how, partition was different and marked "Linux 83", but leave it to MS. I looked at the sectors- it overwrote the MBR and everything. I fixed the partition table because I had the info. "MS Format" didn't do a ton of damage, though, and I'm hoping to get back some data, but it's not critical. :) (In the future I will NOT run MS stuff with Linux partitions in the same system. I certainly will NOT run any MS "tools" with Linux partitions in system. Never had a problem before, but that's good old MS for you.)
Unfortunatelly such a case falls under "user error" in our book. We do not provide free support in those cases.
Quoted 4 lines
Anyway, tried "reiserfstune --make-journal-standard
/dev/hdb1" and that dumps a bunch of stuff:
ATTENTION! Filesystem with non-standard journal found. Continue? (y/n):y
reiserfstune: Can not create standard journal on separated device [0x343]
Well, that's where --no-journal-available option would make sence.
Quoted 3 lines
Tried "-f" options with some of above and got nowhere. I can't find where to get the patches you refer to in documentation- for relocatable journal, etc.
You don't have relocated journal anyway.
Bye,
Oleg
Update: I have it working. I had to make a new separate journal device, happened to use /dev/hdb3, then had to run:
reiserfstune --make-journal-standard -j /dev/hdb3 /dev/hdb1
etc. Had to do it several times. Tried it with "--no-journal-available" but it would tell me I had a "separated journal device". (or something like that.) That was the key thing I was not sure how to know what to do. Couldn't find anything about that message anywhere in the docs. :)
Thanks again.
Rob S.
Quoted 21 lines · Oleg Drokin
Hello!
Quoted 7 lines · On Mon, Apr 28, 2003 at 04:40:49PM -0400, [email protected] wrote:
Having difficulty recovering a damaged ReiserFS.
Tried stuff- reiserfsck, reiserfstune, etc. Seems to lead into an infinite loop of things to try but don't work- ie: do x, but x needs y, but y needs z, but z needs x.
Not sure what you need to know.
"reiserfstune" man page talks about "kernel patched with special 'relocatable journal support' patch"Well, unfortunatelly you provided not enough info at all.
We'd like to know:
what was your problem, how did you decide that reiserfs is damaged? Quote any relevant messages from kernel/reiserfsprogs. Do you know how you get it damaged? what reiserfsck version do you have? What steps have you already performed? What is the kernel version?Bye,
Oleg
Hello!
Quoted 5 lines · On Tue, Apr 29, 2003 at 04:41:32AM -0400, [email protected] wrote:
Update: I have it working. I had to make a new separate journal device, happened to use
/dev/hdb3, then had to run:
reiserfstune --make-journal-standard -j/dev/hdb3/dev/hdb1
etc. Had to do it several times. Tried it with "--no-journal-available" but it would tell me I had a "separated journal device". (or something like
Hm, this is strange that it did not worked, because it was supposed to. Time to verify this stuff again, I guess.
Thanks for bringing this to our attention.
Bye,
Oleg