noauto option ignored in /etc/fstab?
Xen
list at xenhideout.nl
Mon Dec 4 16:44:27 UTC 2017
Josef Wolf schreef op 04-12-2017 17:13:
> On Fri, Dec 01, 2017 at 10:14:18AM -0500, Tom H wrote:
>> On Fri, Dec 1, 2017 at 5:36 AM, Josef Wolf <jw at raven.inka.de> wrote:
>> > On Fri, Dec 01, 2017 at 05:12:58AM -0500, Tom H wrote:
>> >> On Fri, Dec 1, 2017 at 2:50 AM, Josef Wolf <jw at raven.inka.de> wrote:
>> >>>
>> >>> I have the following line in /etc/fstab:
>> >>>
>> >>> UUID=XXXX-XXXX-XXXX-XXXX /boot ext4 noauto,relatime 0 2
>> >>>
>> >>> The noauto option should prevent the fs to be mounted during boot.
>> >>>
>> >>> That worked great in every distro I have touched in the last 20 years.
>> >>>
>> >>> But since I reinstalled this box with 16.04 LTS, this FS is mounted
>> >>> during boot.
>> >>>
>> >>> Any ideas what causes this FS to be mounted during boot?
>> >>
>> >> Is this an EFI system?
>> >>
>> >> If it is, you'll have to set "/boot/efi" as "noauto" too.
>> >
>> > Before the reinstall, I had 14.04 with EFI and everything worked fine.
>> >
>> > The the disk failed. I reinstalled 16.04 WITHOUT EFI.
>> >
>> > Thus, no. There's no /boot/efi anymore on this system.
>>
>> Here's the output from my laptop before and after adding "noauto" to
>> the "/boot" line in "/etc/fstab" ("/boot" is my EFI partition). It
>> works. You must have misconfigured something or hit a bug.
>
> Well, it might work for you, but it doesn't work for me...
>
> So, how do I find out what's the cause?
Have you tried disabling automatic updates already?
sudo vi /etc/apt/apt.conf.d/10periodic
and
sudo vi /etc/apt/apt.conf.d/20auto-upgrades
and/or
systemctl stop unattended-upgrades.service
and/or
systemctl disable unattended-upgrades.service
I don't know exactly how it works.
You can also remove /boot from /etc/fstab and create your own mount
command.
Systemd will not touch what it does not know about.
But I would try the former first.
Also if your system if different:
systemd-analyze dot | grep boot.mount
More information about the ubuntu-users
mailing list