LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-05-2020, 12:32 PM   #1
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Rep: Reputation: 18
Currently unreadable (pending) sectors on hard disk


Hi,

I'm running Fedora Server 31.

Getting this error in the logs:

Code:
smartd
Device: /dev/sdb [SAT], 3 Currently unreadable (pending) sectors
Is there any way I can fix this error?

Thanks,
Aubrey
 
Old 02-05-2020, 01:11 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,254

Rep: Reputation: 292Reputation: 292Reputation: 292
Code:
e2fsck
maybe? I have 144 at the moment; e2fsck passes it and doesn't fix them.
 
Old 02-05-2020, 01:32 PM   #3
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Original Poster
Rep: Reputation: 18
Thanks,

Just checked and found: "e2fsck is used to check the ext2/ext3/ext4 family of file systems."

And my system is formatted as btrfs
 
Old 02-05-2020, 01:38 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,029
Blog Entries: 27

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] <path>|<device>
Start a new scrub. If a scrub is already running, the new one fails.
 
Old 02-05-2020, 02:02 PM   #5
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Original Poster
Rep: Reputation: 18
Thanks Timothy,

Code:
btrfs scrub start /dev/sdb
ERROR: '/dev/sdb' is not a mounted btrfs device
Which is a different problem. Let me explain:

During install I added both of my drives. And it seemed to install just fine. However, now its complaining that /dev/sda2 ( the first hard disk ) is already mounted at /

Both disks have this custom mount options:
Code:
subvol=root
 
Old 02-05-2020, 02:15 PM   #6
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Original Poster
Rep: Reputation: 18
Here's a quick video to explain visually:
https://www.loom.com/share/eb93949eb...9b85ce2288e4bc
 
Old 02-05-2020, 03:33 PM   #7
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Original Poster
Rep: Reputation: 18
OK so I managed to get scrub to run on both disks

1 ) /dev/sda2 ( My first disk )
Code:
btrfs scrub start /dev/sda2
scrub started on /dev/sda2, fsid 1c15a3f6-eded-48d2-bf3c-fc4b28ee30f0 (pid=1629)

cat /var/lib/btrfs/scrub.status.1c15a3f6-eded-48d2-bf3c-fc4b28ee30f0 
scrub status:1
1c15a3f6-eded-48d2-bf3c-fc4b28ee30f0:1|data_extents_scrubbed:82284|tree_extents_scrubbed:7010|data_bytes_scrubbed:3981365248|tree_bytes_scrubbed:114851840|read_errors:0|csum_errors:0|verify_errors:0|no_csum:5705|csum_discards:0|super_errors:0|malloc_errors:0|uncorrectable_errors:0|corrected_errors:0|last_physical:6506414080|t_start:1580937104|t_resumed:0|duration:24|canceled:0|finished:1
2 ) /dev/sdb1 ( My second disk )
Code:
btrfs scrub start /dev/sdb1
scrub started on /dev/sdb1, fsid 1c15a3f6-eded-48d2-bf3c-fc4b28ee30f0 (pid=1674)

cat /var/lib/btrfs/scrub.status.1c15a3f6-eded-48d2-bf3c-fc4b28ee30f0 
scrub status:1
1c15a3f6-eded-48d2-bf3c-fc4b28ee30f0:2|data_extents_scrubbed:82315|tree_extents_scrubbed:7009|data_bytes_scrubbed:3981570048|tree_bytes_scrubbed:114835456|read_errors:0|csum_errors:0|verify_errors:0|no_csum:5764|csum_discards:0|super_errors:0|malloc_errors:0|uncorrectable_errors:0|corrected_errors:0|last_physical:6518996992|t_start:1580937982|t_resumed:0|duration:30|canceled:0|finished:1
 
Old 02-07-2020, 04:19 PM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,254

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by abourke View Post
my system is formatted as btrfs
That's very different: never mind.
 
  


Reply

Tags
disk, drive, sectors, smartd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smartd: "Currently unreadable (pending) sectors" errors Robert S Linux - Hardware 15 05-20-2021 12:25 AM
smartd: "Currently unreadable (pending) sectors" errors LVM thin pool ken1102 Linux - Hardware 2 02-04-2020 06:29 AM
Currently unreadable (pending) sectors axiomtek123 Linux - Server 4 01-26-2018 08:41 PM
Currently unreadable (pending) sectors ravindert Linux - Newbie 1 09-16-2013 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration