Comments on: How to Check Bad Sectors or Bad Blocks on Hard Disk in Linux https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 05 Dec 2023 14:51:35 +0000 hourly 1 By: Lorita Lansing https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/comment-page-1/#comment-2111078 Tue, 05 Dec 2023 14:51:35 +0000 http://www.tecmint.com/?p=23210#comment-2111078 My Seagate 8TB external hard drive was working fine for the past three months. However, now that I am trying to use it, although it is connected to my PC and the light is on, it doesn’t appear under ‘Disks‘ on the left side. I’ve tried various commands on Linux, but none of them show any device under 8TB in size.

I am not proficient in IT or Linux, but I have friends who have been using Linux for at least 18 years without any problems. This issue is a significant concern for me as I have downloaded many files for my hobbies. Being 75 years old, this is my way to stay alert.

Please help me locate my device on my PC and guide me on how to use it again. If possible, could you provide different commands to retrieve my 8TB drive? I am also trying to understand some terminology such as swap, GPT, etc.

Thank you for your assistance, and I appreciate any guidance you can provide.

]]>
By: jan zumwalt https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/comment-page-1/#comment-1908810 Wed, 02 Nov 2022 18:33:08 +0000 http://www.tecmint.com/?p=23210#comment-1908810 In reply to Daniel Mare.

Thanks for the information :)

]]>
By: Average Joe https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/comment-page-1/#comment-1908392 Tue, 01 Nov 2022 22:08:07 +0000 http://www.tecmint.com/?p=23210#comment-1908392 Why did no one mention just using the -c option with e2fsck?

i.e.

$ sudo e2fsck -c /dev/sda3

or even -cc:

$ sudo e2fsck -cc /dev/sda3

They will do it in one go.

$ man e2fsck:

The -c option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks. If any bad blocks are found, they are added to the bad block inode to prevent them from being allocated to a file or directory.

If this option is specified twice, then the bad block scan will be done using a non-destructive read-write test.

]]>
By: Adam https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/comment-page-1/#comment-1874980 Wed, 07 Sep 2022 23:46:45 +0000 http://www.tecmint.com/?p=23210#comment-1874980 In reply to Kamal.

Kamal, /dev/sda10 was an example partition device. You can see your partition names with “df” or “lsblk“.

Whatever you do, do NOT umount the partition that is mounted as "/".

Good Luck,
Adam

]]>
By: dragonmouth https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/comment-page-1/#comment-1863312 Wed, 17 Aug 2022 13:13:58 +0000 http://www.tecmint.com/?p=23210#comment-1863312 It would be helpful if the article provided sample output for:

$ sudo e2fsck -l badsectors.txt /dev/sda10

After all, you do provide sample output for other commands that you run.

]]>