nfs filesystems can not be mounted automatically after reboot
Peng Yu
pengyu.ut at gmail.com
Thu Jul 22 01:03:40 UTC 2010
On Wed, Jul 21, 2010 at 10:23 AM, Preston Hagar <prestonh at gmail.com> wrote:
> On Wed, Jul 21, 2010 at 12:09 AM, Peng Yu <pengyu.ut at gmail.com> wrote:
>> Hi,
>>
>> I have the following fstab. The nfs filesystem can not be
>> automatically mounted after reboot. I have to run 'mount -a' to mount
>> them. Does anybody know how to enable automatic mount?
>>
>> $ cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # Use 'blkid -o value -s UUID' to print the universally unique identifier
>> # for a device; this may be used with UUID= as a more robust way to name
>> # devices that works even if disks are added and removed. See fstab(5).
>> #
>> # <file system> <mount point> <type> <options> <dump> <pass>
>> proc /proc proc nodev,noexec,nosuid 0 0
>> # / was on /dev/sda1 during installation
>> UUID=11bf0413-4054-492e-b5f3-b1b074fc4ea4 / ext4
>> errors=remount-ro 0 1
>> # swap was on /dev/sda5 during installation
>> UUID=685e3202-fe16-424f-bf7f-8d562ed29e16 none swap sw
>> 0 0
>>
>> xxx.xxx.xxx.xxx:/home /home nfs rw 0 0
>> xxx.xxx.xxx.xxx:/data /data nfs rw 0 0
>> #pearson nfs
>> yyy.yyy.yyy.yyy:/pearson/data /pearson/data nfs rw 0
>>
>>
>> --
>> Regards,
>> Peng
>>
>
>
> You might try adding auto to the options in your fstab line:
>
> yyy.yyy.yyy.yyy:/pearson/data /pearson/data nfs rw,auto 0
>
> Also, as a side note, you might want to try using nfs4 if your nfs
> server supports it. It is generally faster and more reliable (there
> are other good things about it like better locking as well)
>
> Here is my fstab entry (bob is my servername):
>
> bob:/var/data/samba /var/data/nfs/bob nfs4 rw,auto 0 0
I'm not sure if the server support nfs4 or not. Do you know how to check it?
--
Regards,
Peng
More information about the ubuntu-users
mailing list