Hdat2 hdd bad sector repair program5/2/2023 ![]() # is the number of the partition (e.g., /dev/sdb1). If you happen to have a Linux filesystem on the drive, you can check for filesystem errors and run badblocks at the same time.įirst, get the list of all the drives and their partitions:Īgain, /dev/sdx is the hard drive you want to scan. ![]() Note that this will overwrite all data on the drive and wipe out all the partitions, as well. It does this 4 times, using the patterns 0xaa, 0x55, 0xff, and 0x00 (alternating 0's and 1's, then all 1's, then all 0's). The -w option tells badblocks to write a known pattern, then read back the data to make sure it matches the pattern. If you don't care about the data, you can do this instead, to do a more thorough scan: This will perform a non-destructive read/write test on the disk without doing a filesystem check. Use sudo fdisk -l to list all the drives and their partitions.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |