Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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:
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?
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
Last edited by compu73rg33k; 05-16-2006 at 09:28 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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.