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.
I have my linux installed on a single ext2 partition, unfortunately there are also bad blocks. Is there any possibility to re-partition the hard drive, to move all the bad blocks to separate partition ?? If yes how can I do this?
You can have the blocks marked as bad so they won't be used. You'll lose that capacity from your partition, and the data which was on them before they went bad will be lost.
A word of caution - when hard disks start to fail the rot often spreads. It's not always the case - I have a hard disk which got bad blocks a year into it's [so far] 3 year life, and since then no more have gone bad.
If the device has important data on it, it's probably wise to replace it.
Yes, but if I mark them, they will only be separated temporarily, till I completely remove the partition. Am I rigth ? My idea is to find all the bad blocks on my hd and 'catch' them on a separate one. I could even format ext2 and reinstall linux if I would know that my idea is possible.
I have same situation as you, long ago bad blocks appeared, but they do not spread. So I want to get rid of them once and for all
Bad blocks aren't something to do with the filesystem - they are physical problems with the drive. Reformatting and re-partitioning won't help - the drive will still have bad patches on it.
When you are formatting a partition drive there's often an option to do a surface scan when formatting. This will identify and mark bad blocks. This "slow" format should always be done on critical hardware to detect defects, and it's prudent to do it on all older hardware.
Having said that, some tools may be able to apparently erase badblocks. In fact what happens is that most modern drives have some low-level sectors of the drive in reserve which can be used to replace faulty ones. In fact modern drives do this on-the-fly without any apparent effect at the file-system level. The SMART interface allows software to query the drive and pull of statistics about this sort of activity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.