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 |
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) |
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.
|
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? |
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. |
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) |
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 |
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.
|
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. :(
|
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.
|
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?
|
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. |
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? |
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?
|
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. |
All times are GMT -5. The time now is 12:38 AM. |