SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Hey guys, I have a slight problem. It seems that I do in fact have some bad sectors towards the end of the drive I'm using for Slack. Everything was working well, during the boot process it said the filesystem on /dev/hda3 (my /home partition) was corrupt so it proceeds to check it and after a lil bit it just goes haywire. It just starts listing errors. It goes so fast and keeps going that I don't know if they are the same error or different ones.
My question is this, can I just repartition and format my /home partition without having to reinstall Slack? Will it recognize it when I reboot. I know that the bad sector is somewhere in the last 5gigs of the hard drive. I took a chance and now here I am. I plan on just leaving off 5 gigs when I redo my /home. Will this work? Do I need to adjust any config files or anything because it will be smaller now?
if you are sure you can't fix it, then yes, you can just format it and go... no need to repartition it mind... just make sure the partition isn't mounted which i assume it's not... and format it: "mke2fs -j /dev/hda3" for an ext3 partition. the fstab entries will still be just as valid, so you can just remount it and make any required /home/user directories. In reality you might find it easier to delete and recreate your normal user accounts.
as ever i fail to read the whole post correctly...
not something i've needed to do, but you should have the badblocks utility which can scan for bad blocks on a partition. save the output to a file (-o) and pass the file as an option to mke2fs (-l) and it'll skirt around them.
You can't fix bad blocks really, or they'd never be a problem in the first place
I would really have to question the wisdom of installing on a drive you know to be going bad. Once you start getting bad blocks, the clock is ticking for the entire drive to fail.
You should be more concerned with getting a new drive in the machine, than trying to avoid running into corruption.
I've never had the experience of a hard drive going bad, so I'm sorry for my ignorance. I didn't think it was possible to fix bad sectors, but I don't know everything so when he said to "fix" them, well I thought it might be possible. Thanks.
Modern drives hide away bad sectors until the drive is on its last gasp. My recent experience is a that when errors start to appear you only have days left.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.