LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Reiserfs problem (https://www.linuxquestions.org/questions/linux-software-2/reiserfs-problem-445208/)

compu73rg33k 05-15-2006 10:38 PM

Reiserfs problem
 
When I restarted my computer, it randomly had a "Kernel panic" and was unable to mount the root fs. The play where it starts having problems is as follows
Code:

FAT: bogus logical sector size 0
UMSDOS: msdos_read_super failed, mount aborted
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x40 { UncorrectableError }, LBAsect=199, high=0, low=199, sector=136
end_request: I/O error, dev 21:01 (hde), sector 136
isofs_read_super: bread failed, dev=21:01, iso_blknum=34, block=68
reiserfs: found format "3.6" with standard journal
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x40 { UncorrectableError }, LBAsect=199, high=0, low=199, sector=136
end_request: I/O error, dev 21:01 (hde), sector 136
ide2(33,1):sh-2029: resierfs read_bitmaps: bitmap block (#17) reading failed
ide2(33,1):sh-2014: resierfs_read_super: unable to read bitmap
Kernel panic: VFS: Unable to mount root fs on 21:01

Anybody know what's going on? Any help would be much appreciated.

Jerre Cope 05-15-2006 10:47 PM

You may have a hard drive problem. First locate SMART drive utilities from your drive manufacture's website (or whatever diagnostic they use). Copy the utility to a Free Dos CD and confirm your hard disk is OK.

If the hard drive is OK, then you reiserfsck can rebuild your drive. Just boot of your Slack boot CD and:

reiserfsck --rebuild-tree /dev/hda1

( or whatever your hard drive partition is)

Jerre Cope 05-15-2006 10:49 PM

Oh. I forgot to mention that bad things like this happen if you recompile your kernel without reiserfsck. If this is the case, then just boot off the former kernel, or the kernel from a boot slack cd.

compu73rg33k 05-16-2006 04:25 PM

I tried to run reiserfsck and it told me "If you have bad sectors on a drive it is usually a bad idea to continue using it. Then you probably should get a working harddrive, copy the file system from the bad drive to the good one"
Are you sure I should use reiserfsck?

Jerre Cope 05-16-2006 07:38 PM

FIRST run the hardware diagnostics.

THEN run reiserfsck

If your hard drive is failing, reiserfsck won't be able to put your disk back together.

You may be able to attempt recovery per a raw copy of the failing drive to a good drive, then reiserfsck the good drive.

compu73rg33k 05-16-2006 07:52 PM

Okay, I don't think the harddrive is failing though becuase it's only like 5 months old. Also I couldn't mount the /home partition or any partition from that disk using knoppix OR slax.

Okay I used slax to try and mount /dev/hde3 and then did a dmesg | tail and this is what it said
Code:

ReiserFS: hde3: warning: sh-2006: read_super_block: bread failed (dev hde3, block 32, size 2048)
ReiserFS: hde3: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on hde3


compu73rg33k 05-16-2006 08:40 PM

I have a maxtor IDE harddrive, could you help me find the SMART Utility? I'm having trouble locating it using google.

Ah okay I found 2 that I could use.
http://www.maxtor.com/portal/site/Ma...&downloadID=22
or
http://www.maxtor.com/portal/site/Ma...&downloadID=57

I'm not sure which to use

Jerre Cope 05-16-2006 09:21 PM

Generally, you just put the program on a boot disk or CD and run the check. If you can confirm the hardware is OK, then you should be able to trust reiser to do the right thing.

compu73rg33k 05-16-2006 09:46 PM

Okay, so I downloaded the powermax thing and did the diskette, but now when I boot from it it says "Cannot load DOS! Any key to retry" I retried and same thing. :(

Jerre Cope 05-16-2006 10:32 PM

It looks as if the diskette is not bootable. Try http://www.freedos.org and boot from the CD, then run the diagnostics from the disktte.

compu73rg33k 05-17-2006 07:30 PM

I booted from freedos and chose to do SETUP then instead of continueing with setup, I did "Run commands" It puts me in A:\ which says where the freedos is, which is my CD-ROM drive of course. How do I mount my floppy drive and execute commands from there?

Jerre Cope 05-17-2006 08:27 PM

Boot Free Dos CD

Pick 1 - Setup (it doesn't mean setup in the smae context as windows)

Pick 1 of the next menu

Lastly pick 2 - Run Free DOS from CD-ROM

You should have access to your A drive at that point.

compu73rg33k 05-17-2006 09:12 PM

Okay I used mhdd.exe and ran the SMART tests and all were successful. However when I did a scan, I got 14 errors in the 6191399 scanned LBA.

You recommend going ahead and booting from slackware boot cd and running reiserfsck?

compu73rg33k 05-17-2006 09:38 PM

Okay I remembered I need to use dd_rescue to make a mirror image first. However, hde3 is 160 GB and I only have a 80GB harddrive available. There is a max of 40-50 GB stored on the harddrive though. Should this be fine? Also shoudl I format the 80 GB harddrive to reiserfs or what?

compu73rg33k 05-18-2006 06:58 PM

Okay so I ran reiserfsck --rebuild-tree and this was the output
Code:

The problem that has occured looks like a hardware problem. If you have bad blocks, we adivse you to get a new hard drive, becuase once you get one bad block that the disk drive internals cannot hide from your sight, the chances of getting more are generally said to become much higher (precise statistics are unknown to us), and this disk drive probably not expensive enough for you to you to risk your time and data on it. If you don't want to follow that follow that advice then if you have just a few bad blocks, try writing to the bad blocks and see if the drive remaps the bad blocks ( that means it takes a block it has in reserve and allocates it for use for that block number). If it cannot remap the block, use badblock option(-B) with reiserfs utils to handle this block correctly.

bread: Cannot read the block (1531): (Input/output error).

Aborted

So yeah I guess I have some bad blocks. I ran mhdd and did a scan and it found 14 bad blocks but all were at the beginning and it seemed to be fine after those first couple blocks. So how would I write to the blocks? I just want to recover my data and use a new harddrive.


All times are GMT -5. The time now is 12:38 AM.