Wednesday, August 6, 2025
SCRYPTO MAGAZINE
No Result
View All Result
  • Home
  • Crypto
  • Bitcoin
  • Blockchain
  • Market
  • Ethereum
  • Altcoins
  • XRP
  • Dogecoin
  • NFTs
  • Regualtions
SCRYPTO MAGAZINE
No Result
View All Result
Home NFTs

How to check for bad blocks on a Linux PC hard drive (and why you shouldn’t wait to do it)

SCRYPTO MAGAZINE by SCRYPTO MAGAZINE
August 6, 2025
in NFTs
0
How to check for bad blocks on a Linux PC hard drive (and why you shouldn’t wait to do it)
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


Microsoft Surface Laptop in Sapphire
Kyle Kucharski/ZDNET

I’ve had it occur earlier than. Again when drives consisted of spinning, magnetic platters, that dreaded “tick” was a certain signal a tough drive was failing. As soon as upon a nightmare state of affairs, I waited too late and wound up dropping all the pieces on my drive. Positive, I may have recovered that information, however at a reasonably excessive financial value.

Additionally: The first 5 Linux commands every new user should learn

Since then, I’ve at all times been vigilant about checking for dangerous blocks and sectors on hard drives.

What’s a nasty block?

Merely put, a nasty block is one that can’t be learn or written to. This could occur due to bodily harm to the drive or failing transistors on flash reminiscence (assume SSDs). When a block goes dangerous, it is not usable. Too many dangerous blocks, and the drive will fail.

You don’t need that.

Additionally: Thinking about switching to Linux? 10 things you need to know

Earlier than the dangerous blocks take you down, it is best to verify for them. In case you do not, you possibly can lose out. Let’s verify.

Find out how to verify for dangerous blocks on an older drive

What you may want: The one stuff you’ll want for this are a operating occasion of Linux and a person with sudo privileges.

The very first thing to do is find the identify of your drive and partition. To do this, you may want to make use of the fdisk utility with the command:


Present extra

sudo fdisk -l

From the output of that, it is best to see the identify of the drive you’ll want to scan. The identify will most probably be within the type of /dev/sda1.

Now it is time to scan for these blocks. The software you may use for that is aptly named badblocks and is put in on most Linux distributions (so you do not have to put in something). As an instance your drive identify is /dev/sda1. To scan for dangerous blocks, the command could be:


Present extra

Related articles

Is your Roku TV spying on you? It’s possible, but here’s how to put a stop to it

Your Roku TV is getting a big upgrade for free – including these AI features

August 5, 2025
People are using ChatGPT to write their text messages – here’s how you can tell

People are using ChatGPT to write their text messages – here’s how you can tell

August 5, 2025

sudo badblocks -v /dev/sda1 > badblocks.txt

The above command outputs the outcomes of the command to the file badblocks.txt. You may additionally see the output of the command within the terminal window.

Additionally: There’s a new coolest Linux distribution ready to wow you

If badblocks report that there are, in reality, dangerous blocks in your drive, you may need to mark them as unusable. In case your OS makes an attempt to make use of a nasty block or sector, it may trigger issues, and this avoids that.

Additionally: The best Linux distros for beginners

To do this, we’ll make use of the file created by badblocks and use the e2fsck command. This solely works on the ext2, ext3, and ext4 filesystem sorts. The command used for this (sticking with the instance identify we have been utilizing) could be:


Present extra

sudo e2fsck -l badblocks.txt /dev/sda1

In case your file system is of a distinct sort, you may use the fsck command like so:

sudo fsck -l badblocks.txt /dev/sda1

Find out how to verify for dangerous blocks on a contemporary drive

The excellent news is that you do not have to mark dangerous blocks on an SSD, however it’s good to recurrently verify the well being of the drive.

In case your system makes use of an SSD, you may want to make use of a software referred to as smartmontools. Likelihood is that this software is not put in in your system.

1. Set up smartmontools

To put in smartmontools on a Debian/Ubuntu-based distribution, subject the command:

sudo apt-get set up smartmontools -y

Additionally: 6 reasons why I’ve stuck with Ubuntu-based Linux distros for the last 20 years

On Fedora-based distributions, that command could be:

sudo dnf set up smartmontools -y

2. Run a well being verify

Now that smartmontools has been put in, run a well being verify with the command:

sudo smartctl -H /dev/sda1

And there you go. You now have both marked these blocks as dangerous, or you recognize the overall well being of your SSD.

Additionally: 10 Linux apps I install on every new machine (and why you should, too)

Get the morning’s high tales in your inbox every day with our Tech Today newsletter.





Source link

Tags: BadblockscheckDrivehardLinuxShouldntwait
Share76Tweet47

Related Posts

Is your Roku TV spying on you? It’s possible, but here’s how to put a stop to it

Your Roku TV is getting a big upgrade for free – including these AI features

by SCRYPTO MAGAZINE
August 5, 2025
0

Maria Diaz/ZDNETIn case you're coping with streaming overload and might't determine what to look at, Roku is rolling out new...

People are using ChatGPT to write their text messages – here’s how you can tell

People are using ChatGPT to write their text messages – here’s how you can tell

by SCRYPTO MAGAZINE
August 5, 2025
0

Kirill Stytsenko/Getty PicturesZDNET's key takeawaysPersons are utilizing AI to write down delicate messages to family members.Detecting AI-generated textual content is...

I found a tiny power bank that charges two devices at once – for under $25

I found a tiny power bank that charges two devices at once – for under $25

by SCRYPTO MAGAZINE
August 4, 2025
0

Voltme Hypercore 10K power bank ZDNET's key takeaways Voltme's Hypercore 10K energy financial institution is out there on Amazon for...

Unplugging these 7 common household devices helped reduce my electricity bills

Unplugging these 7 common household devices helped reduce my electricity bills

by SCRYPTO MAGAZINE
August 4, 2025
0

Maria Diaz/ZDNETPrices are steadily rising within the US, and vitality prices are a outstanding instance. That is made worse by...

Update to iOS 26? We tested the public beta on our iPhones – these features are a big deal

Update to iOS 26? We tested the public beta on our iPhones – these features are a big deal

by SCRYPTO MAGAZINE
August 3, 2025
0

Kerry Wan/ZDNETApple launched iOS 26 to the general public at its annual Worldwide Developers Conference occasion in early June, and...

Load More
  • Trending
  • Comments
  • Latest
Analysts’ 2025 Bull Market Predictions

Bitcoin Entering Second ‘Price Discovery Uptrend’, What’s Ahead?

January 21, 2025
Bitcoin Spot-Perpetual Price Gap Turns Negative

Bitcoin Spot-Perpetual Price Gap Turns Negative

December 23, 2024
Bitcoin Price Flashes Major Buy Signal On The 4-Hour TD Sequential Chart, Where To Enter?

Bitcoin Price Flashes Major Buy Signal On The 4-Hour TD Sequential Chart, Where To Enter?

December 24, 2024
Cardano Price Outlook: The $0.40 Threshold Could Unlock Doors to $1

Cardano Price Outlook: The $0.40 Threshold Could Unlock Doors to $1

December 23, 2024
Bitcoin could reach this unbelievable price by 2025, but these factors must align

Bitcoin could reach this unbelievable price by 2025, but these factors must align

0
XRP Consolidation Could End Once It Clears $2.60 – Top Analyst Expects $4 Soon

XRP Consolidation Could End Once It Clears $2.60 – Top Analyst Expects $4 Soon

0

Fed Can’t Hold Bitcoin, No Plans Yet To Change Law, Powell Says

0
Bears Take Full Control of the Market

Bears Take Full Control of the Market

0
This wall-mounted smart calendar has been a game changer in my home (and it’s $50 off)

This wall-mounted smart calendar has been a game changer in my home (and it’s $50 off)

August 6, 2025
Ethereum Price Drops Below $3,700 Despite Corporate Buyups

Ethereum Price Drops Below $3,700 Despite Corporate Buyups

August 6, 2025
XRP Price Gears Up—Can It Overcome Key Resistance Levels?

XRP Price Cuts Back Gains – Correction or Consolidation?

August 6, 2025
How to check for bad blocks on a Linux PC hard drive (and why you shouldn’t wait to do it)

How to check for bad blocks on a Linux PC hard drive (and why you shouldn’t wait to do it)

August 6, 2025

Recent News

This wall-mounted smart calendar has been a game changer in my home (and it’s $50 off)

This wall-mounted smart calendar has been a game changer in my home (and it’s $50 off)

August 6, 2025
Ethereum Price Drops Below $3,700 Despite Corporate Buyups

Ethereum Price Drops Below $3,700 Despite Corporate Buyups

August 6, 2025

Categories

  • Altcoins
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Dogecoin
  • Ethereum
  • Market
  • NFTs
  • Regualtions
  • XRP

Recommended

  • This wall-mounted smart calendar has been a game changer in my home (and it’s $50 off)
  • Ethereum Price Drops Below $3,700 Despite Corporate Buyups
  • XRP Price Cuts Back Gains – Correction or Consolidation?
  • How to check for bad blocks on a Linux PC hard drive (and why you shouldn’t wait to do it)
  • Bond King Jeffrey Gundlach Says Fed Rate Cuts Incoming, Warns US Inflation Data Appears To Be ‘Made Up’

© 2025 SCRYPTO MAGAZINE | All Rights Reserved

No Result
View All Result
  • Home
  • Crypto
  • Bitcoin
  • Blockchain
  • Market
  • Ethereum
  • Altcoins
  • XRP
  • Dogecoin
  • NFTs
  • Regualtions

© 2025 SCRYPTO MAGAZINE | All Rights Reserved