Monday, December 1, 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

These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

December 1, 2025
We found 100+ Cyber Monday deals up to 75% off: Shop Amazon, Best Buy, and more now

We found 100+ Cyber Monday deals up to 75% off: Shop Amazon, Best Buy, and more now

November 30, 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

These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

by SCRYPTO MAGAZINE
December 1, 2025
0

ZDNET's key takeaways Sony's LinkBuds Match are $198These earbuds boast a stable ANC characteristic and a snug design that's second...

We found 100+ Cyber Monday deals up to 75% off: Shop Amazon, Best Buy, and more now

We found 100+ Cyber Monday deals up to 75% off: Shop Amazon, Best Buy, and more now

by SCRYPTO MAGAZINE
November 30, 2025
0

Zooey LiaoWhen is Cyber Monday? Black Friday 2025 was Friday, Nov. 28. Cyber Monday follows shortly after on Monday, Dec. 1. When...

Why I keep these 4 pairs of headphones with me at all times (and they’re all on sale)

Why I keep these 4 pairs of headphones with me at all times (and they’re all on sale)

by SCRYPTO MAGAZINE
November 30, 2025
0

Apple's newest earbuds supply glorious noise cancellation, a snug match, and eight hours of steady battery life. Moreover, the Professional...

Best early Black Friday Samsung deals 2025: 32 sales out now

Black Friday Samsung deals 2025: I’m tracking 50+ TV, phone, and audio discounts still live

by SCRYPTO MAGAZINE
November 29, 2025
0

When is Black Friday? When Black Friday first appeared within the vacation calendar, the most important buying occasion used to only...

Need a smartwatch with extreme battery? This solar Garmin outlasts competitors (and it’s on sale)

Need a smartwatch with extreme battery? This solar Garmin outlasts competitors (and it’s on sale)

by SCRYPTO MAGAZINE
November 29, 2025
0

ZDNET's key takeaways The Garmin Enduro 3 is out there now in a single 51mm dimension for $900The battery life...

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
Ethereum Price Slides to $3,030 as ETF Outflows and Whale Deleveraging Dominate November

Ethereum Price Slides to $3,030 as ETF Outflows and Whale Deleveraging Dominate November

December 1, 2025
These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

December 1, 2025
SEC files to drop crypto promo case against YouTuber Ian Balina

SEC Must Rethink Allowing Tokenized Stocks: Advocacy Group

December 1, 2025
Bitcoin’s Next Bullish Wave Could Take 200–300 Days To Kick Off — Here’s Why

Bitcoin’s Next Bullish Wave Could Take 200–300 Days To Kick Off — Here’s Why

December 1, 2025

Recent News

Ethereum Price Slides to $3,030 as ETF Outflows and Whale Deleveraging Dominate November

Ethereum Price Slides to $3,030 as ETF Outflows and Whale Deleveraging Dominate November

December 1, 2025
These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

These earbuds outperformed my AirPods in real-world tests – and they’re 37% off

December 1, 2025

Categories

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

Recommended

  • Ethereum Price Slides to $3,030 as ETF Outflows and Whale Deleveraging Dominate November
  • These earbuds outperformed my AirPods in real-world tests – and they’re 37% off
  • SEC Must Rethink Allowing Tokenized Stocks: Advocacy Group
  • Bitcoin’s Next Bullish Wave Could Take 200–300 Days To Kick Off — Here’s Why
  • Cocoon Decentralized AI Network Launches on the Open Network (TON)

© 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