Thursday, October 16, 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

This compact accessory is a must for roadside emergencies – here’s why

This compact accessory is a must for roadside emergencies – here’s why

October 16, 2025
Did you know that Windows 11 has an emergency shutdown feature? Here’s where to find it

Did you know that Windows 11 has an emergency shutdown feature? Here’s where to find it

October 15, 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

This compact accessory is a must for roadside emergencies – here’s why

This compact accessory is a must for roadside emergencies – here’s why

by SCRYPTO MAGAZINE
October 16, 2025
0

Kayla Solino/ZDNETComply with ZDNET: Add us as a preferred source on Google.With vacation travels on the horizon, there is not any higher...

Did you know that Windows 11 has an emergency shutdown feature? Here’s where to find it

Did you know that Windows 11 has an emergency shutdown feature? Here’s where to find it

by SCRYPTO MAGAZINE
October 15, 2025
0

Kerry Wan/ZDNETOften, every time a brand new function comes out for Windows, Microsoft advertises it broadly in a weblog publish...

The best electric screwdrivers of 2025: Expert tested and reviewed

The best electric screwdrivers of 2025: Expert tested and reviewed

by SCRYPTO MAGAZINE
October 15, 2025
0

The vacations are on the horizon, and everybody can respect a great screwdriver to maintain within the toolbox. Electrical screwdrivers...

Best AirPods 2025: I’ve used every pair of Apple headphones and earbuds – these are the winners

Best AirPods 2025: I’ve used every pair of Apple headphones and earbuds – these are the winners

by SCRYPTO MAGAZINE
October 14, 2025
0

Why we like them: The AirPods Professional 3 are Apple's most superior headphones, providing listening to well being options, in-ear...

The best Apple TV VPNs of 2025: Expert tested and reviewed

The best Apple TV VPNs of 2025: Expert tested and reviewed

by SCRYPTO MAGAZINE
October 14, 2025
0

While you join Apple TV, a virtual private network (VPN) subscription offers many advantages. VPNs disguise your on-line actions --...

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

Dogecoin Shows ‘Huge Gap’ To $0.07: Is A Crash Imminent?

October 16, 2025
$25M crypto heist trial begins – Are Ethereum MEV bots illegal or just smart trading?

$25M crypto heist trial begins – Are Ethereum MEV bots illegal or just smart trading?

October 16, 2025
XRP Price Coils Below Resistance — Bulls Prepare For Possible Upside Explosion

XRP Price Coils Below Resistance — Bulls Prepare For Possible Upside Explosion

October 16, 2025
California Law Preserves Abandoned Bitcoin Holdings

California Law Preserves Abandoned Bitcoin Holdings

October 16, 2025

Recent News

Dogecoin Shows ‘Huge Gap’ To $0.07: Is A Crash Imminent?

October 16, 2025
$25M crypto heist trial begins – Are Ethereum MEV bots illegal or just smart trading?

$25M crypto heist trial begins – Are Ethereum MEV bots illegal or just smart trading?

October 16, 2025

Categories

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

Recommended

  • Dogecoin Shows ‘Huge Gap’ To $0.07: Is A Crash Imminent?
  • $25M crypto heist trial begins – Are Ethereum MEV bots illegal or just smart trading?
  • XRP Price Coils Below Resistance — Bulls Prepare For Possible Upside Explosion
  • California Law Preserves Abandoned Bitcoin Holdings
  • XRP’s Most Important Week In History: Here’s What’s Coming For Ripple

© 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