LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-02-2007, 07:20 AM   #1
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Rep: Reputation: 30
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)?
 
Old 04-03-2007, 12:13 AM   #2
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
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.
 
Old 04-03-2007, 03:19 AM   #3
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
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).
 
Old 04-03-2007, 03:18 PM   #4
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Rep: Reputation: 147Reputation: 147
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab mounting subaruwrx Linux - Newbie 5 10-25-2004 07:36 AM
mounting cdrom and fstab mikz Slackware - Installation 7 09-05-2004 12:07 PM
Mounting with /etc/fstab cpp Linux - General 4 04-09-2004 03:28 PM
fstab mounting Roy-Svork Linux - General 2 06-13-2003 11:34 AM
SMB mounting with /etc/fstab greenhornet Linux - Networking 2 01-15-2003 03:37 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration