From mboxrd@z Thu Jan 1 00:00:00 1970 From: blinux-list at redhat.com (Linux for blind general discussion) Date: Thu, 27 May 2021 23:09:24 +0300 Subject: delay local file system mounting In-Reply-To: <20210527.182025.331.1@[192.168.1.100]> References: <20210527.182025.331.1@[192.168.1.100]> Message-ID: List-Id: 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.