i just swapped out my old rpi sd card with raspbian stretch for one with raspian bullseye because stretch didnt gave me kernel 5.x and it felt outdated. everything worked so far except that my usb hard drive doesn't mount because it gets seen too late by the kernel. any ideas?
raspberry pi 3 b+ armv7l linux 5.10.63-v7+ raspbian (debian) bullseye
sudo dmesg
:
...
[ 6.531430] systemd[1]: dev-disk-by\x2duuid-b3f635b5\x2dbc12\x2d4196\x2db384\x2dfff32368c9e4.device: Job dev-disk-by\x2duuid-b3f635b5\x2dbc12\x2d4196\x2db384\x2dfff32368c9e4.device/start timed out.
[ 6.542488] systemd[1]: Timed out waiting for device /dev/disk/by-uuid/b3f635b5-bc12-4196-b384-fff32368c9e4.
[ 6.555582] systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/b3f635b5-bc12-4196-b384-fff32368c9e4.
[ 6.568154] systemd[1]: Dependency failed for /srv/nfs.
[ 6.577123] systemd[1]: srv-nfs.mount: Job srv-nfs.mount/start failed with result 'dependency'.
[ 6.585016] systemd[1]: systemd-fsck@dev-disk-by\x2duuid-b3f635b5\x2dbc12\x2d4196\x2db384\x2dfff32368c9e4.service: Job systemd-fsck@dev-disk-by\x2duuid-b3f635b5\x2dbc12\x2d4196\x2db384\x2dfff32368c9e4.service/start failed with result 'dependency'.
[ 6.597635] systemd[1]: dev-disk-by\x2duuid-b3f635b5\x2dbc12\x2d4196\x2db384\x2dfff32368c9e4.device: Job dev-disk-by\x2duuid-b3f635b5\x2dbc12\x2d4196\x2db384\x2dfff32368c9e4.device/start failed with result 'timeout'.
...
...
[ 10.288933] scsi 1:0:0:0: Direct-Access ST950042 3AS 0041 PQ: 0 ANSI: 0
[ 10.290492] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 10.290544] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 10.291134] sd 1:0:0:0: [sdb] Write Protect is off
[ 10.291158] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 10.291908] sd 1:0:0:0: [sdb] No Caching mode page found
[ 10.291929] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 10.306171] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 10.306347] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 10.313173] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 10.421495] sdb: sdb1 sdb2 sdb3 sdb4
[ 10.426561] sd 1:0:0:0: [sdb] Attached SCSI disk
...
fstab line:
UUID=b3f635b5-bc12-4196-b384-fff32368c9e4 /srv/nfs ext4 nofail,x-systemd.device-timeout=100ms 0 2
systemd
sequence... you might look atsystemd-analyze
to gain insight. Can you mount the drive manually after your system has fully booted usingmount -a
? If not, can it be mounted manually?mount -a
andmount /dev/sdb1
work$ systemd-analyze
Startup finished in 4.158s (kernel) + 16.120s (userspace) = 20.278s
graphical.target reached after 15.615s in userspace
systemd
postpone themount
operation on this drive. How to do that? I'm not well-versed insystemd
, and our residentsystemd GURU
@ingo is on sabbatical. All I can suggest is this: If you don't get a useful answer here, post a similar question on the Super User -or- Unix & Linux SE sites.