LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-03-2006, 06:44 PM   #1
nerrad
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Reiser file system problem. No reiserfs metadata found


Hi i have a problem with my reiserfs file system on my storage drive.

After repartitioning to make space for a temporary NT volume i found that i was getting all types of errors from my reiser file system on /dev/hdb6.

I ran reiserfsck --check /dev/hdb6 and it reported that there was no superblock.

So i then ran reiserfsck --rebuild-sb /dev/hdb6 and this appeared to work, until i rechecked and it informed that i have a Bad root block 0. (--rebuild-tree did not complete).

So i rebuilt the tree using reiserfsck --rebuild-tree /dev/hdb6

and got the following:

Code:
Replaying journal..
No transactions found
Zero bit found in on-disk bitmap after the last valid bit. Fixed.
###########
reiserfsck --rebuild-tree started at Fri Feb  3 23:28:37 2006
###########

Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 13803804 blocks marked used
init_source_bitmap: Bitmap 0 (of 32768 bits) is wrong - mark all blocks [0 - 32768] as used
init_source_bitmap: Bitmap 2 (of 32768 bits) is wrong - mark all blocks [65536 - 98304] as used
//SNIP
Skipping 9325 blocks (super block, journal, bitmaps) 26727674 blocks will be read
0%....20%..block 12717375: The free space (61471) is incorrect, should be (2000) - corrected
pass0: vpf-10110: block 12717375, item (0): Unknown item type found [2147483648 4229922816 0x4100410 ??? (15)] - deleted
..40%....60%....80%....100%                        left 0, 9829 /sec
Could not find a hash in use. Using "r5"
Selected hash ("r5") does not match to the hash set in the super block (not set).
        "r5" hash is selected
Flushing..finished
        Read blocks (but not data blocks) 26727674
                Leaves among those 2
                        - leaves all contents of which could not be saved and deleted 2
                Objectids found 2

Pass 1 (will try to insert 0 leaves):
####### Pass 1 #######
Looking for allocable blocks .. finished

Flushing..finished
        0 leaves read
                0 inserted
####### Pass 2 #######
Flushing..finished


No reiserfs metadata found.  If you are sure that you had the reiserfs
on this partition,  then the start  of the partition  might be changed
or all data were wiped out. The start of the partition may get changed
by a partitioner  if you have used one.  Then you probably rebuilt the
superblock as there was no one.  Zero the block at 64K offset from the
start of the partition (a new super block you have just built) and try
to move the start of the partition a few cylinders aside  and check if
debugreiserfs /dev/xxx detects a reiserfs super block. If it does this
is likely to be the right super block version.

I ran debugreisferfs:

Code:
XANECQB3A57:/disks# debugreiserfs /dev/hdb6
debugreiserfs 3.6.19 (2003 )


Filesystem state: consistency is not checked after last mounting

Reiserfs super block in block 16 on 0x346 of format 3.6 with standard journal
Count of blocks on the device: 36515728
Number of bitmaps: 1115
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 36515728
Root block: 0
Filesystem is NOT clean
Tree height: 0
Hash function used to sort names: "r5"
Objectid map size 2, max 972
Journal parameters:
        Device [0x0]
        Magic [0xffffffff]
        Size 8193 blocks (including 1 for journal header) (first block 18)
        Max transaction length 1024 blocks
        Max batch size 900 blocks
        Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0xfa03:
        FATAL corruptions exist.
         some corruptions exist.
sb_version: 2
inode generation number: 0
UUID: d6ae2957-f1d8-4ce1-8e73-f1a7cbc3f345
LABEL:
Set flags in SB:
I am not to sure how to go forward with what the output suggested or even if it is the right thing to do! That's why i am here for help!

Hope somebody can Thanks in advance


Nerrad
 
Old 02-03-2006, 09:17 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
How about unmounting the partition and doing an fsck? (fsck.reiserfs)
 
Old 02-04-2006, 08:16 AM   #3
nerrad
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
the partition is not / cannot be mounted.

results of fsck.reiserfs

Code:
###########
reiserfsck --check started at Sat Feb  4 14:14:54 2006
###########
Replaying journal..
No transactions found
Checking internal tree..

Bad root block 0. (--rebuild-tree did not complete)

Aborted
 
Old 02-04-2006, 10:17 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Read the man page on fsck.reiserfs. Then try the options available using the least drastic first. For example

fsck.reiserfs --check

If this command returns a message to run fsck.reiserfs with the --fix-fixable parameter then do that. If it returns a message to run fsck.reiserfs with the --rebuild-tree option then do that. I noticed that your last fsck already said that it did not complete the rebuild-tree task so the utility may have already done as much as is possible.

That's all that I can think of.
 
Old 02-04-2006, 10:46 AM   #5
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Check the drive for physical defects. You might be SOL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[LFS 61][failed fsck] with reiser file system mr_demilord Linux From Scratch 3 10-13-2005 04:56 AM
reiser lost+found file recovery gilkyboy Linux - General 0 07-10-2004 03:10 PM
Help File System EXT3 x REISERFS julio menezes Linux - Newbie 1 03-14-2004 05:32 PM
how to clone reiser file system mikmok Linux - General 3 02-18-2004 12:11 PM
Which file system is best ext3 or ReiserFS Stevetgn Linux - General 5 07-07-2003 11:57 PM


All times are GMT -5. The time now is 02:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration