[mythtv-users] usb mount

james jam at tigger.ws
Mon Jan 1 09:27:17 UTC 2024


My main mythtv drive is a usb drive.

If I put, in fstab

UUID=6a67da23-0789-42a7-bb24-ab7a1f21008c  /store     ext4 defaults      
1  2

boot fails with a 'Enter Root Password ..." message about bad disk.

if I put

UUID=6a67da23-0789-42a7-bb24-ab7a1f21008c  /store     ext4 
defaults,nofail      1  2

Boot is normal, but the disk is not mounted

I made a systemctl file

[seagull] /home/jam [842]% cat /etc/systemd/system/mountStore.service
[Unit]
Description=Mount /Store
After=online.target
Wants=apache2.service
Wants=network-online.target

[Service]
Type=simple
ExecStartPre=/bin/sleep 30
ExecStart=mount /dev/disk/by-label/MYTHTV /store

[Install]
WantedBy=multi-user.target

It mounts correctly, but the service file is a bit inelegant. Using Hot 
Plug (google for a fix) seems wrong too.

The systemd mount options want a fixed bus id (and the usb port can change).

The drive is a 4T so the occasional fsck will muck up timing. Any ideas 
please.


James



More information about the mythtv-users mailing list