Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My sda1 is mounted to /boot after booting, and I can manually mount it just fine. But something is automatically unmounting that partition, even after I've manually mounted it.

These are the current permissions when it's unmounted:

drwxr-xr-x   2 root root    0 Sep 24 14:15 boot/

and when it's mounted:

drwxr-x---   4 root root 2.0K Jan  1  1970 boot/

Is there supposed to be a discrepancy between these two?

This is what's in /etc/fstab

UUID=32AC-72EA          /boot       vfat        nodev,nosuid,noexec,rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

The UUID is correct, I've checked it.

journalctl:

Sep 24 18:45:31 StoraArch systemd[1]: Unmounting /boot...
Sep 24 18:45:31 StoraArch systemd[1]: Unmounted /boot.
share|improve this question
    
Look in syslog? I've once had a similar issue with removable drives, and it turned out to be a udev/systemd issue. – Tom Hunt Sep 24 '15 at 16:39
    
What init system are you using? – Elixir of Love Sep 24 '15 at 16:46
1  
Seems to be systemd... Sep 24 18:45:31 StoraArch systemd[1]: Unmounting /boot... Sep 24 18:45:31 StoraArch systemd[1]: Unmounted /boot. – Nordic Sep 24 '15 at 16:46
    
@Nordic: That is why I asked... It sounds like systemd... – Elixir of Love Sep 24 '15 at 16:47
    
Yeah nice find, I hadn't even thought of journalctl – Nordic Sep 24 '15 at 16:50
up vote 3 down vote accepted

This is the expected behaviour, introduced in systemd 220.

systemd-efi-boot-generator automounts your ESP on demand and then automatically unmounts it after 2 minutes of it not being used.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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