LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-02-2022, 01:49 AM   #1
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Rep: Reputation: 0
Failing to mount drive at boot, can mount later


My one internal drive is failing to mount at boot time after I upgraded to Ubuntu 22.04. In 18.04 it never had an issue. If I mount after boot completes it mounts without a problem (mount -a).

From dmesg the most I could find is this:

Code:
[    6.929181] sd 4:0:0:0: [sda] tag#31 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[    6.929184] sd 4:0:0:0: [sda] tag#31 Sense Key : Medium Error [current] 
[    6.929186] sd 4:0:0:0: [sda] tag#31 Add. Sense: Unrecovered read error - auto reallocate failed
[    6.929189] sd 4:0:0:0: [sda] tag#31 CDB: Read(10) 28 00 2b b6 dc 80 00 00 08 00
[    6.929190] blk_update_request: I/O error, dev sda, sector 733404288 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.929195] Buffer I/O error on dev sda1, logical block 91675280, async page read
I already modified my fstab to prevent the system from failing to boot, but now it boots without mounting, and fails to retry to mount. I'd be happy if it simply kept trying to mount, but didn't block boot.

Code:
UUID=db01e20b-80b1-4095-a9fc-7e0b28f99561 /drives/extratb ext4 defaults,nofail,x-systemd.device-timeout=9 0 2
I've run fsck on the drive. It did fix one issue, but that didn't solve the problem. I've also experience no issues with the drive once it's mounted.

I feel like this might be some setting that's changed that causes a conflict with this drive, but unsure what it might be, or how to fix it. If no fix is easy, then at least a way to keep trying to mount the drive. It only really needs to be mounted by the time my desktop (KDE) starts up.
 
Old 12-02-2022, 02:14 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Those read errors suggest the drive has issues that need to be investigated. Start by using smartctl -x /dev/sda.
 
1 members found this post helpful.
Old 12-02-2022, 02:31 AM   #3
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
The command output is attached. It's self test says PASSED, but it has records of errors, though I'm not sure how to interpret them.
Attached Files
File Type: txt log.txt (16.4 KB, 11 views)
 
Old 12-02-2022, 03:15 AM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
mortoray,

You have carried out the short (2 minutes) test.

Try running the Extended Test.
 
Old 12-02-2022, 04:11 AM   #5
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I ran `smartctl -t long /dev/sda` and it says it'll copmlete in 182 minutes.

Where does the output go?
 
Old 12-02-2022, 05:14 AM   #6
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I think it's done. Some more errors found.
Attached Files
File Type: txt log.txt (16.6 KB, 7 views)
 
Old 12-02-2022, 05:15 AM   #7
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
`fsck -f /dev/sda1` reports no indication of errors.

```
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda1: 238196/61054976 files (4.1% non-contiguous), 227705537/244190720 blocks
```

The errors from the smartctl log do seem to indicate it happens at power up.
 
Old 12-02-2022, 05:17 AM   #8
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Looking at dmesg again, I think the smartlctl test was generating the below type of error:

```
[ 9038.990038] ata5.00: exception Emask 0x0 SAct 0x4080000 SErr 0x0 action 0x0
[ 9038.990051] ata5.00: irq_stat 0x40000008
[ 9038.990057] ata5.00: failed command: READ FPDMA QUEUED
[ 9038.990061] ata5.00: cmd 60/80:98:68:87:23/00:00:2c:00:00/40 tag 19 ncq dma 65536 in
res 41/40:00:68:87:23/00:00:2c:00:00/00 Emask 0x409 (media error) <F>
[ 9038.990077] ata5.00: status: { DRDY ERR }
[ 9038.990081] ata5.00: error: { UNC }
[ 9038.996538] ata5.00: configured for UDMA/133
[ 9038.996563] sd 4:0:0:0: [sda] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 9038.996570] sd 4:0:0:0: [sda] tag#19 Sense Key : Medium Error [current]
[ 9038.996574] sd 4:0:0:0: [sda] tag#19 Add. Sense: Unrecovered read error - auto reallocate failed
[ 9038.996579] sd 4:0:0:0: [sda] tag#19 CDB: Read(10) 28 00 2c 23 87 68 00 00 80 00
[ 9038.996582] blk_update_request: I/O error, dev sda, sector 740525928 op 0x0READ) flags 0x80700 phys_seg 1 prio class 0
[ 9038.996605] ata5: EH complete
```
 
Old 12-02-2022, 09:44 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
The output shows 22,069 hours uptime, yet earlier failures were at nearly three times that, indicating bogus data in the history.
Code:
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Fatal or unknown error        90%     22069         0
is worrisome, along with the media errors, DRDY ERR, auto reallocate failure, etc., suggesting it's time to contact the device maker's warranty/RMA department.
 
1 members found this post helpful.
Old 12-02-2022, 10:59 AM   #10
mortoray
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Okay, thanks. I'll look to replace the drive then to ensure my data is safe.
 
  


Reply

Tags
boot, fstab, mount



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
Failing to boot up due to failing to acces the GRUB spenot09 Linux - Software 7 10-19-2015 10:56 AM
Dell XPS 8700 Boot failure: How can I read boot messages (including errors) later? basskleff Linux - Software 2 12-22-2013 11:38 AM
LXer: Save a Web page for later with Read It Later extension LXer Syndicated Linux News 0 09-29-2008 11:50 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

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

All times are GMT -5. The time now is 05:19 AM.

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