Linux mint check disk health2/25/2023 ![]() ![]() Take note of smartctl -A /dev/drive returns – in particular the bad sector (mapped out sectors) and pending sectors (probably bad but not mapped out) values – if the bad sector normalised value (not the raw value) is below the threshold then you need to replace the drive – NOW. You can force the issue by wirting 0x00 to the sector (or use hdparm–repair-sector) The ONLY reason you should ever create a bad blocks table is to send commands to the drivbe to tell it to repair the sectorsĪTA and scsi drives are supposed to map out bad blocks. Note : Before running e2fsck command, you just make sure the drive is not mounted.įor any further help on badblocks & e2fsck command, read their respective man pages $ man badblocksĪlso Read: Monitor and Analyze Hard Drive Health with Smartctl in Linux $ sudo e2fsck -l /tmp/bad-blocks.txt /dev/sdb Once the scanning is completed, if the bad sectors are reported then use file “bad-blocks.txt” with e2fsck command and force OS not to use these bad blocks for storing data. Step 3) Inform OS not to use bad blocks for storing data When we execute above command a text file “bad-blocks” will be created under /tmp, which will contains all bad blocks. Just replace “/dev/sdb” with your own hard disk / partition. Example is shown below $ sudo badblocks -v /dev/sdb > /tmp/bad-blocks.txt Once you identify the hard disk then run badblocks command. $ sudo fdisk -l Step 2) Scan hard drive for Bad Sectors or Bad Blocks Identify the disk which you want to scan for bad blocks. Run fdisk command to list all available hard disks to Linux operating system. Step 1) Use fdisk command to identify hard drive info ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |