Fedora iTOps Tube

Wednesday, May 16, 2012

How to Auto Mount Network Attached Storage (NAS) at Boot?

I am quite new to Fedora.



[What I am trying to do]

On Fedora 16 (Gnome 3), I am trying to mount network drives at boot automatically. What I have done is adding lines like below in /etc/fstab.


Code:


192.168.1.11:/shared_folder /media/nas cifs username=yep,password=yep,iocharset=utf8,noperm 0 0

I also tried nfs option instead of cifs option.



[Symptoms]
  • It does not auto mount //192.168.1.11/share at boot.

  • Manual mounting ("sudo mount -a" from the terminal) does not work either. Responds no error message.

  • However, I sometimes observe the system mounts network drives all of sudden far after the boot. Strange...



[Questions]
  • Is syntax in /etc/fstab correct?

  • What are other possible reasons that prevent auto mount? SELinux, firewall, etc...





No comments:

Post a Comment