delay local file system mounting

Linux for blind general discussion blinux-list at redhat.com
Thu May 27 18:46:40 UTC 2021


Tim here.  The typical way I've heard of doing this is

1) edit your /etc/fstab so that your mount is set to "noauto" rather
than "auto".  This prevents it from automatically mounting and
causing the delay.  Then

2) create a crontab entry to mount it:

  $ sudo crontab -e

and add a line like

  @reboot mount /path/to/raid /mount/where/you/want/your/raid

This will mount the RAID device later in the boot process while still
allowing the rest of the system to boot.  This assumes that the RAID
is to be mounted by root for system-wide access.  If you're mounting
it as a user, you can do it in your ~/.xsession (or your
window-manager's startup script/file such as ~/.fluxbox/startup).

Note that (somewhat obviously) this only works if the boot process
doesn't require anything on that RAID device.

-tim


On May 27, 2021, Linux for blind general discussion wrote:
> 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.
> 
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://listman.redhat.com/mailman/listinfo/blinux-list
> 




More information about the Blinux-list mailing list