0

I just installed Debian 10 from disk. Whenever I shutdown, I get a single message displayed on screen, "Failed to unmount /usr/". What can I do to correct this? Is this error likely causing damage to the drive or data in /usr?

I have separate partitions for /boot (ext2), /usr/ (ext4), /var/ (ext4), /usr/local/ (ext4), /tmp/ (ext2), and /home (ext4).

0

From what I see in other posts, having the OS installed on two serperate drives or partitions may cause this. Kali and Ubuntu users have reported the same issue. The problem is journald and how it is still logging to /var while systemd is trying to unmount it. According to this thread, there are two ways to go about it:

  1. Make journald log to a volatile location in /run so it doesn't lock /var, but the tradeoff is that you lose logs at shutdown.

    Edit /etc/systemd/journald.conf to change the Storage= line to

    Storage=volatile

  2. Or set up a shutdown hook to unmount /var later. This won't remove the failed message as systemd will still try to unmount /var but will indeed unmount /var properly at the end of the shutdown sequence. You just won't see it.

    Add a shutdown hook to mkinitcpio's HOOKS= array, e.g. :

    HOOKS="base udev autodetect block keymap encrypt lvm2 filesystems usbinput fsck var shutdown"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.