delay local file system mounting

Linux for blind general discussion blinux-list at redhat.com
Thu May 27 20:09:24 UTC 2021


27.05.2021 21:20, Linux for blind general discussion пишет:
> I have a raid array that I use for storage, and it takes a while for it to be mounted. This causes a delay, sometimes quite significant, before the login prompt appears.
> Is there a way to cause a
> /etc/fstab
> entry to be delayed? I know I could always mount the array manually after login, but I'd rather not if I can avoid it.
>
>
it's not hard to do if your distribution uses systemd as init.

you need to add the x-systemd.automount option to the mountpoint entry 
in your fstab.
then the disk will be automatically mounted when some process writes to it.
you can also set the time to unmount with the x-systemd.idle-timeout = 
by default the disk will not be unmounted.

-- 
Sincerely, Alexander.




More information about the Blinux-list mailing list