You are not logged in.

#1 2013-08-08 03:04:47

brooksbp
Member
Registered: 2009-06-21
Posts: 3

Able to `mount' but /etc/fstab won't work

The following command works:

sudo mount -t nfs enzo:/volume1/share /nas

but if I reboot with this in my /etc/fstab, it wont mount /nas:

enzo:/volume1/share /nas nfs rw,hard,intr,_netdev 0 0

I have rpc-gssd, rpc-mountd rpc-statd services enabled.  What am I missing?  Thanks

Offline

#2 2013-08-15 18:29:46

clockwork
Member
Registered: 2013-08-10
Posts: 1

Re: Able to `mount' but /etc/fstab won't work

What kind of errors are you getting in dmesg?
Check dmesg after booting and try further diagnosing from there
dmesg | grep "sd[a-z]"
dmesg | grep "mount"
dmesg | grep -E "error|fail|warn"

Another option that you can consider adding after __netdev is to add file_mode=0777,dir_mode=0777 for the time being if its a permissions problem.

Offline

#3 2013-08-15 19:06:22

hibajugala
Member
Registered: 2013-01-12
Posts: 35

Re: Able to `mount' but /etc/fstab won't work

I am not that experienced with this but I believe that your fs is not btrfs. So you're pass value should be 2 unless it is the root partition.

https://wiki.archlinux.org/index.php/Fstab

<pass> - used by fsck to decide which order filesystems are to be checked. Possible entries are 0, 1 and 2. The root file system should have the highest priority 1 (unless its type is btrfs, in which case this field should be 0) - all other file systems you want to have checked should have a 2. File systems with a value 0 will not be checked by the fsck utility.

So it seems like it is not being checked by fsck.

Sorry for any errors, typed this up on my phone.
And sorry if you are btrfs not that familiar with all the filesystems

Offline

#4 2013-08-15 19:19:43

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: Able to `mount' but /etc/fstab won't work

Does the nfs share mount properly if you use "sudo mount -a" instead of manually mounting the share?

The fstab settings recommended in the wiki work for me: https://wiki.archlinux.org/index.php/Nf … b_Settings

Last edited by 2ManyDogs (2013-08-15 19:23:08)

Offline

Board footer

Powered by FluxBB