Results 1 to 5 of 5

Thread: /etc/fstab does not work but mount does....why?

  1. #1
    Join Date
    Dec 2009
    Location
    SillyCon Valley
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    /etc/fstab does not work but mount does....why?

    I can not understand why my fstab entry failed to mount, but if I then try to do in manually, the directory mounts. Any ideas?

    192.168.2.1 is able to be pinged

    /etc/fstab entry in the same file that does not work when I do a sudo mount -a

    192.168.2.1:/media/stores/store1/store1 /media/store1 nfs rw,auto,mountvers=3,rsize=8192,wsize=8192,timeo=14 ,nolock 0 0

    when I do a mount -a I get the error
    mount.nfs: an incorrect mount option was specified

    command line that does work
    sudo mount -t nfs -o nfsvers=3 192.168.2.1:/media/stores/store1/store1 /media/store1


    update: It was a typo, a period where a comma should have been that evaded me even as I transposed it into the forum. Not all was lost on stupidity. I found the VIM editor knows the syntax of /etc/fstab, knows it is editing /etc/fstab and highlights each part of the line in a different color. The error was standing out in a bright color of white while the other parts of the line were green, blue etc.

    The vim editor is a great piece of work. Thanks for the folks that gave it to us!
    Last edited by saejin; February 21st, 2013 at 05:42 AM.

  2. #2
    Join Date
    Oct 2007
    Beans
    76
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: /etc/fstab does not work but mount does....why?

    You are trying to mount a network file system. Are you sure that at the time of booting the network interface is up?

    -lordievader.
    “There is no point in using the word 'impossible' to describe something that has clearly happened.” -Douglas Adams.

  3. #3
    Join Date
    Dec 2009
    Location
    SillyCon Valley
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: /etc/fstab does not work but mount does....why?

    a
    Last edited by saejin; February 21st, 2013 at 05:43 AM. Reason: to shorten what can be gleaned for the next person

  4. #4
    Join Date
    Jan 2010
    Location
    Southaven, MS
    Beans
    187
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: /etc/fstab does not work but mount does....why?

    Change the line:

    Code:
    192.168.2.1:media/stores/store1/store1 /media/store1 nfs rw,auto,mountvers=3,rsize=8192,wsize=8192,timeo=14 ,nolock 0 0
    to this:

    Code:
    192.168.2.1:/media/stores/store1/store1 /media/store1 nfs rw,auto,mountvers=3,rsize=8192,wsize=8192,timeo=14 ,nolock 0 0
    It is missing a slash '/' in front of 'media'.

    Hope that works.

    Jerry

  5. #5
    Join Date
    Dec 2009
    Location
    SillyCon Valley
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: /etc/fstab does not work but mount does....why?

    a
    Last edited by saejin; February 21st, 2013 at 05:45 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •