![]() To install Smartmontools, follow the given terminal commands below. ![]() Smartmontools is a fundamental and neat disk report card tool for Linux that allows users to generate version, copyright, license, and health information. $ sudo badblocks -v /dev/sda > /tmp/bad-blocks.txt Method 3: Check Bad Blocks on Hard Disk Using smarttools Command in Linux Here, we are trying to find bad blocks of our sda disk you will put your desired disk partition. Here, the -v(visual) is will also display the progress of work in the terminal. In that case, our CLI will be as exactly shown below. Let, we want to save the report card file in the temp directory. Then it’s time to run a combing operation inside your Linux machine to find all the corrupted blocks of the hard disk. Don’t forget to use the terminal as a superuser. To get a display of connected hard disk/storage devices, you can always run the list command from your system terminal. $ sudo e2fsck -l badsectors.txt /dev/sda Method 2: Monitor Bad Sectors on Hard Disk Using fdisk list Command in Linuxīefore you check if there are any bad sectors inside your hard disk, you may need to get a list of all your storage devices that are connected with your Linux system. Usually, e2fsck command can determine superblocks, bad blocks, block sizes, and a debugging method to rescue the hard disk. So, if you’re not an expert, don’t do it by yourself. There is a chance to get your data erased. $ sudo badblocks -v /dev/sda > badsectors.txtįor fixing the bad sectors from your hard disk, you can run this command line in your Linux terminal at your own risk. This command will generate a text file inside your directory if bad sectors are found. If you want to get an automatically generated log file of all the bad sectors of your hard disk or storage system, you may try the badblock CLI written below. You can choose which partition of the hard disk device you want to check inside your command line. This terminal command can get the read-only permission, so it will not perform the data writing test. It will take a while to generate a full-body report. ![]() Using the badblock tool in your Linux terminal, you can find out the overall status of your hard disk. Method 1: Use badblocks Tool to Check Bad Blocks on Hard Disk in Linux In this post, we will know why the bad blocks or bad sectors occur on a hard disk and how to check the bad sectors in Linux. For SSD’s damage can be either inside the NAND flash memory or in the host interface. Linux maintains a file system hierarchy, so to check the bad sectors on your hard disk, it is essential to find out the damage source.įor a hard disk, damages can occur inside the platter, read-write head, or the actuator arm can be displaced. Depending on how badly your hard disk is affected, damages can vary over time. Heat, dust, overclocking, unstable power supply, and partitioning in an improper way can be the reason for having bad blocks on your hard disk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |