Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Fixing my in-laws' computer. Long story short, bad sectors on the partition, bringing it back to life with Linux Mint (Was previously very slow Windows). 2004 Dell 4700 Desktop.
Linux Mint will not install direct due to the bad sectors (that's the error it gives me when stalling out).
Boot into Puppy Linux (only thing I can boot on there for now)
Expand partition 'sda2' to include almost the entire HD, format to ext2, mark as bootable, and mount, all using Gparted.
In the terminal, run 'fsck /dev/sda2 –a' To my understanding, this should correct/remove the bad sectors on the this partition of the HD by itself without question.
Restart, boot with Mint off the CD, hopefully works. Anyone see any problems with this? I'm a complete noob to Unix line command and HD management.
I just started a self-study course online because I really want to learn Unix now!
Looking at the man page for fsck -a repairs file system errors automatically, not failed physical sectors on a hard disk.
A quick google search for remap or repairing bad sectors in Linux brings up some options however in my experience when a hard drive has multiple bad sectors it is just going to get worse. It may be wise to replace the hard drive with a new unit or a good older unit if available.
e2fsck with the -c switch scans the drive using badblocks "program to do a read-only scan of the device in order to find any bad blocks. If any bad blocks are found, they are added to the bad block inode to prevent them from being allocated to a file or directory" (e2fsck man page).
If there is no important data on the drive you might go ahead and try the e2fsck -c option. Otherwise back up everything as I doubt your drive is long for the world. If it works please post back, this would be interesting to know.
Thanks for the help guys. I ended up spending some major time in learning about Linux command line code. Not sure what was wrong with the drive still though. I ended up replacing the ancient thing for under $22 and increased the HD space by 50% ha! I installed VectorLinux due to only having 500MB of RAM. Works wonderfully and now my non-technical in-laws are using VectorLinux as their everyday system!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.