Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

When in Linux boot process are filesystems mounted from /etc/fstab?

$
0
0

Question:

When in Ubuntu Linux boot process are filesystems (from /etc/fstab) mounted?


Rational:

I defined the following shared-folders on my Ubuntu VirtualBox VM.

openstack@ubuntu:~$ grep vboxsf /etc/fstabtmp     /home/openstack/shared/tmp      vboxsf  defaults        0       0images  /home/openstack/shared/images   vboxsf  defaults        0       0openstack@ubuntu:~$

Mounting them from the shell is no problem.

However, during the boot process, their mounting fails:

enter image description here

Upon entering maintenance mode, I verify the problem to be that the vboxsf module is not loaded in the kernel (and subsequently, after it's loaded, the mount succeeds):

enter image description here

I want to solve this by creating a new rc file, that will execute the modprobe vboxsf command before /etc/fstab is read.

So, I tried executing modprobe vboxsf at the start of run-level 2:

openstack@ubuntu:/etc/rc2.d$ ls -ls /etc/rc2.d/S10modprobe-vboxsf0 lrwxrwxrwx 1 root root 25 Apr 28 14:36 /etc/rc2.d/S10modprobe-vboxsf -> ../init.d/modprobe-vboxsfopenstack@ubuntu:/etc/rc2.d$ cat ../init.d/modprobe-vboxsf/sbin/modprobe vboxsfopenstack@ubuntu:/etc/rc2.d$ ls -ls ../init.d/modprobe-vboxsf4 -rwxr-xr-x 1 root root 22 Apr 28 14:33 ../init.d/modprobe-vboxsfopenstack@ubuntu:/etc/rc2.d$

but the shared folders still fail to mount from /etc/fstab.

Google did not bear fruit, so - my question is:

How do I load the vboxsf module to the Ubuntu kernel, before/etc/fstab is read and file-systems are mounted?


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>