I’m using five USB-Disks which are only connected and mounted to the laptop-PC when needed.
Now I find these messages during shut-down:
$ journalctl -b -1 | grep -i dependency
Nov 12 09:06:08 IBM-T14s systemd[1]: Dependency failed for /media/myBook8_B.
Nov 12 09:06:08 IBM-T14s systemd[1]: media-myBook8_B.mount: Job media-myBook8_B.mount/start failed with result 'dependency'.
Nov 12 09:06:08 IBM-T14s systemd[1]: Dependency failed for /media/myBook8_A.
Nov 12 09:06:08 IBM-T14s systemd[1]: media-myBook8_A.mount: Job media-myBook8_A.mount/start failed with result 'dependency'.
Nov 12 09:06:08 IBM-T14s systemd[1]: Dependency failed for /media/myBook16_A.
Nov 12 09:06:08 IBM-T14s systemd[1]: media-myBook16_A.mount: Job media-myBook16_A.mount/start failed with result 'dependency'.
Nov 12 09:06:08 IBM-T14s systemd[1]: Dependency failed for /media/myBook16_B.
Nov 12 09:06:08 IBM-T14s systemd[1]: media-myBook16_B.mount: Job media-myBook16_B.mount/start failed with result 'dependency'.
Nov 12 09:06:08 IBM-T14s systemd[1]: Dependency failed for /media/HDD2go.
Nov 12 09:06:08 IBM-T14s systemd[1]: media-HDD2go.mount: Job media-HDD2go.mount/start failed with result 'dependency'.
In that session none of the drives has been used or connected or mounted.
In /etc/fstab these drives are defined as follows:
Just off the top, could this be failing to unmount them on shutdown? And the dependency missing is having them mounted? Because if that is the case, there is nothing to fix.
Thank you, but as I said in OP: The drives are not and were not mounted during that session:
$ umount /media/myBook16_A
umount: /media/myBook16_A: is NOT mounted.
$ umount /media/myBook16_B
umount: /media/myBook16_B: is NOT mounted.
$ umount /media/myBook8_A
umount: /media/myBook8_A: is NOT mounted.
$ umount /media/myBook8_B
umount: /media/myBook8_B: is NOT mounted.
$ umount /media/HDD2go
umount: /media/HDD2go: is NOT mounted.
$
No need, just ignore the message. This is just informative, actual no error being reported here. It tells you systemd failed in trying to mount them, that’s all. If you want to have the sticks mounted immediately upon plugging in then better use x-systemd.automount if you don’t like this message.
This isn’t something I’ve dealt with in awhile, so you might want to refer to something more official. Here is a wiki article fstab - Wikipedia
Fstab controls the mounting of drives. In my situation I have no entries for USB drives, so when I plug one in I get the Plasma notification to mount & open. Suggest you comment those lines out, reboot and see how that works out. Also System Settings has a section for drives, mine is blank.
One EASY way is to remove them form fstab. (Or comment them out, and only uncomment them when you are going to have them available to the system for mounting. As was suggested, you can use a different tool for mounting them.
PS: And I see I am NOT the only one saying that. Ignore me and attend to the others.
Whenever you plug a USB drive in, your system tray should pop-up the Disks & Devices notifier/dialog so that you can manually mount or unmount the connected device:
As others have mentioned in this topic, there is no need for any entries in fstab for removable USB drives. I don’t have any of my attached devices included in my /etc/fstab file:
❯ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=D958-561D /boot/efi vfat umask=0077 0 2
UUID=3b35a910-e6a3-4c9e-ba59-06e4eb08ed6f / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
Note though that using Plasma’s automounting feature will probably mount external devices to /run/media/<user>/, not /media/:
Remove auto from the mount options. They are removable devices, and the auto mount option means that the system will try to mount them automatically at boot time.
Nov 15 14:44:06 xxx-Txxs systemd[1]: Dependency failed for /media/myBook16_B.
Nov 15 14:44:06 xxx-T99s systemd[1]: media-myBook16_B.mount: Job media-myBook16_B.mount/start failed with result 'dependency'.