LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2004, 03:48 PM   #1
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Rep: Reputation: 0
automount vs fstab


How do I configure Machine1 to auto mount /mydir from Machine2? Or, what should the fstab look like?

Should I use the automount or fstab?

I'm using Fedora Core 2.
 
Old 08-09-2004, 04:47 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Code:
machine2:/mydir /mydirfrommach2 nfs auto   0       0
 
Old 08-10-2004, 09:04 AM   #3
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Original Poster
Rep: Reputation: 0
Doc:/home3 /home3 nfs auto,rw 0 0

This is exactly how my fstab looks and it still won't mount at bootup.
 
Old 08-10-2004, 09:34 AM   #4
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Original Poster
Rep: Reputation: 0
During bootup when it tries to mount nfs filesystems it pauses and then returns "can't get address for Doc" and fails. Yet once the machine is up and running I can do a mount -a, it reads the fstab and mounts Doc:/home3. I am confused...
 
Old 08-10-2004, 10:16 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
You have to put the IP of the machine named 'Doc' in your fstab, say it is 10.0.0.1, try :

10.0.0.1:/home3 /home3 nfs auto,rsize=8192,wsize=8192,rw 0 0

I added rsize=8192 and wsize=8192 to accelerate file transfer rate, feel free to remove them
 
Old 08-10-2004, 02:36 PM   #6
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Original Poster
Rep: Reputation: 0
I used the fully qualified name instead and it worked... with one exception. The first nfs mount won't mount, the rest do. Here's a copy of my fstab:

[root@Bubba etc]# more fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
Doc.dville.com:/home3 /home3 nfs auto,rw 0 0
Doc.dville.com:/home3/pres /pres nfs auto,rw 0 0
Doc.dville.com:/red /red nfs auto,rw 0 0

/home3/pres and /red will mount on bootup but, /home3 will not. What the frag?
 
Old 08-10-2004, 02:44 PM   #7
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Does the mountpoint exist? Is there any errors in dmesg or syslog?
Is your /etc/exports on the server ok? Does it mount afterwards when you say
"mount /home3"?
 
Old 08-10-2004, 04:02 PM   #8
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Original Poster
Rep: Reputation: 0
Yes. No. Yes. Yes.
 
Old 08-10-2004, 07:23 PM   #9
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Very strange indeed.

If you permutate the order of the mounts in fstab, is it still the /home3 that is not mounted, or is it the first one that doesn't get mounted?
 
Old 08-11-2004, 11:01 AM   #10
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Original Poster
Rep: Reputation: 0
Just the first one... whatever it may be.
 
Old 08-16-2004, 09:23 AM   #11
Walter Sobchek
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: RedHat 9
Posts: 13

Original Poster
Rep: Reputation: 0
The workaround is to copy the first line.

server:/dir1 /dir1 nfs auto 0 0
server:/dir1 /dir1 nfs auto 0 0
server:/dir2 /dir2 nfs auto 0 0
server:/dir3 /dir3 nfs auto 0 0

With it written this way it mounts dir1 on bootup. Still don't know why though.
 
  


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 problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
fstab/automount/dvd-ram problem cjnodell SUSE / openSUSE 3 08-08-2005 02:48 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
Automount network smb share with fstab phatboyz Linux - Networking 2 11-03-2004 12:05 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:02 PM.

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