LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 15 not mounting NFS shares from fstab (https://www.linuxquestions.org/questions/fedora-35/fedora-15-not-mounting-nfs-shares-from-fstab-883242/)

PreacherBill 05-28-2011 04:52 PM

Fedora 15 not mounting NFS shares from fstab
 
I have just upgraded to F15 as well as switching from Gnome to XFCE, so I don't know where this problem originates. NFS shares that were previously mounted via the fstab file in F14 don't now. Based on the log file, it appears that they are attempting to be mounted before the network interface is brought up. They mount fine manually after logon.

I expect that there are a few ways to hack around this, but I think mounting nfs from fstab should be a common enough thing that it should work without hacks. Any ideas?

TIA

Bill

webbch 05-29-2011 02:00 AM

I'm having an identical problem trying to mount my Windows shares using fstab. I can mount manually after boot (mount -t cifs //WINDOWSBOX01/C /mnt/WindowsBox01/C), but not using fstab. Also, 'mount -a' doesn't appear to reload the fstab either. Instead, I get a message,
"mount: sysfs already mounted or /sys busy"
"mount: according to mtab, /sys is already mounted on /sys"

falcom 05-30-2011 09:16 AM

if your partition or HD is windows NTFS system, first you need
Quote:

yum install -y ntfd-3g
after you agree in your /etc/fstab file
it's all !!
works perfect!

PreacherBill 05-30-2011 02:57 PM

Quote:

Originally Posted by falcom (Post 4371023)
if your partition or HD is windows NTFS system, first you need

It's all linux I'm afraid, so that's not it.

I just wish I knew if it was a Fedora or Xfce issue.

Thanks anyway!

falcom 05-31-2011 08:18 AM

sorry i have a error the correct command is
Quote:

yum install -y ntfs-3g ntfs-config
ok i have 3 hd in my pc and many partitions, lock my fstab
Quote:

/dev/sdb1 /media/Rafha ext3 defaults 0 0
or
Quote:

/dev/sdb2 /media/Rafha2 ntfs defaults 0 0

falcom 05-31-2011 08:19 AM

Quote:

Originally Posted by PreacherBill (Post 4371298)
It's all linux I'm afraid, so that's not it.

I just wish I knew if it was a Fedora or Xfce issue.

Thanks anyway!

is not a problem in linux is only configuration problem

falcom 05-31-2011 08:21 AM

Quote:

Originally Posted by punt (Post 4371553)
falcom, I am encountering the same issue with NTFS mounts (pretty sure you meant ntfs-3g) and I am in the same boat as PreacherBill. The mounts are being brought up before the network interface is being brought up. How does one prioritize differently? I have so many mounts that it locks up my computer....

you can try to boot fedora you can press the space bar and go priority or discarding the services you up if that's what you want?

michaelk 05-31-2011 08:58 AM

NTFS and nfs are completely different. NTFS is a filesystem and nfs is a networking protocol.
ntfs-3g is for mounting local NTFS file systems and not for networking. samba is an implementation of the MS SMB/CIFS protocol which is used to share files and printers with windows.

I'm not sure what Fedora had implemented/changed in its start up scripts etc.
There are several methods.

Check out the -o _netdev option which delays mounting network shares. See man mount for details.
The quickest an easiest method would be to put the mount command in /etc/rc.local
or using autofs:
http://fedoraproject.org/wiki/Docs/Drafts/AGBeta/NFS

webbch 06-02-2011 12:37 AM

I had a syntax error in my fstab....All is well now. Here's the syntax for my mount
//WINDOWSBOX01/C /mnt/WindowsBox01/C cifs credentials=/etc/cifspw 0 0

where "cifspw" file just has two lines:
username=myusername
password=mypassword

Still get the odd warning message when I issue a "mount -a", but it does re-mount my shares just fine.

blackjackshellac 06-03-2011 09:17 PM

Quote:

Originally Posted by PreacherBill (Post 4369666)
I have just upgraded to F15 as well as switching from Gnome to XFCE, so I don't know where this problem originates. NFS shares that were previously mounted via the fstab file in F14 don't now. Based on the log file, it appears that they are attempting to be mounted before the network interface is brought up. They mount fine manually after logon.

I expect that there are a few ways to hack around this, but I think mounting nfs from fstab should be a common enough thing that it should work without hacks. Any ideas?

TIA

Bill

I think you have to enter a comment=systemd.mount option in fstab, haven't tried it yet but this seems to be what one needs,

Check this out: https://fedoraproject.org/wiki/User:.../Systemd.mount

skiyengar 06-05-2011 05:15 AM

Quote:

Originally Posted by PreacherBill (Post 4369666)
I have just upgraded to F15 as well as switching from Gnome to XFCE, so I don't know where this problem originates. NFS shares that were previously mounted via the fstab file in F14 don't now. Based on the log file, it appears that they are attempting to be mounted before the network interface is brought up. They mount fine manually after logon.

I expect that there are a few ways to hack around this, but I think mounting nfs from fstab should be a common enough thing that it should work without hacks. Any ideas?

TIA

Bill

I've the same problem.. Connection times out. But works fine if firewall is stopped. It definitely is a firewall configuration issue.

PreacherBill 07-05-2011 03:16 PM

Sorry about leaving this thread hanging. I have been out of town far more than in for the last month.

I solved this problem (for now) by reverting back to F14. This gives me some time to figure out where I'm going to go. I am simply not satisfied with the options offered in F15. I'm not saying the changes are bad, but they don't allow me to work the way I need/want to. So it's time to look at other distros.

Thanks for all the comments!


All times are GMT -5. The time now is 07:25 AM.