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.
Hi, I can't seem to find any programs or applications for linux that will find bad sectors of a usb drive. I have seen plenty for Windows, but I was wondering if there are any for linux. Thanks in advance!
I think you might be referring to something similar to a surface scan done by scandisk on win 98.'Ultimate boot disk cd' might help with that but you might want to try the 'badblocks' in info or man, or even howto on line.
You may also use a command such as "lshw" to identify your HDD and then google for the manufacturers HDD utility. There is SeaTools for Seagate, ESTOOL for Samsung, and probably one for your HDD too. They are usually available both as a live-cd and as a dos diskette and should be able to scan the surface of the disk for errors.
Hi, I can't seem to find any programs or applications for linux that will find bad sectors of a usb drive. I have seen plenty for Windows, but I was wondering if there are any for linux. Thanks in advance!
Code:
badblocks -wv [device]
But be sure to backup all your data from that drive because this command will erase flash-drive. Don't misprint to rewrite your HDD! Be careful!
I'm told that running badblock commands from bash can take some time to complete. It occurs to me that many pendrives come with an encrypted partition that may be difficult to remove and interfere with reformating and bootability.
I've tried using the badblocks command on a couple of smaller flash drives that definitely have some bad blocks but for whatever reason, it keeps saying that there are none. As for the fsck command, perhaps I need to use an option, but it doesn't show how many bad blocks there are?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.