LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   fstab mounting order (https://www.linuxquestions.org/questions/%2Absd-17/fstab-mounting-order-542618/)

make 04-02-2007 07:20 AM

fstab mounting order
 
How can I set FreeBSD to mount NFS shares before /home?

My /home is a geli-encrypted partition. Until now, I've mounted it manually after every boot. The encryption keyfile is located on an NFS share (which is located on an encrypted partition on the server computer).

When I add the entry for the /home-partition (with the .eli-extension) to fstab, it asks nicely for the password for it at boot, but then obviously fails as the NFS share with the keyfile is not yet mounted.

Or should I just test something like pam_mount for FreeBSD (using it on Linux)?

leosgb 04-03-2007 12:13 AM

Hi, Maybe you try this:

"The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing." from http://www.die.net/doc/linux/man/man5/fstab.5.html

Hope this helps.

make 04-03-2007 03:19 AM

Quote:

Originally Posted by leosgb
Hi, Maybe you try this:

Thank you for the answer, I've read through the fstab man-page a dozen times and unfortunately it does NOT mount the filesystems in linear order. I've placed the line for /home as last and it still mounts it before the NFS mountpoint (also specified in fstab, not for automounter).

moxieman99 04-03-2007 03:18 PM

Quote:

Originally Posted by make
Thank you for the answer, I've read through the fstab man-page a dozen times and unfortunately it does NOT mount the filesystems in linear order. I've placed the line for /home as last and it still mounts it before the NFS mountpoint (also specified in fstab, not for automounter).


What if you removed /home from fstab entirely and autoloaded a script to mount /home after checking to see if all fstab mounts had been accomplished?


All times are GMT -5. The time now is 12:01 AM.