Announcement

Collapse
No announcement yet.

fstab not loading at boot

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    fstab not loading at boot

    Why would the following smbfs entries not load at boot from the fstab file?

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' 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).
    #
    #
    proc /proc proc nodev,noexec,nosuid 0 0
    # / was on /dev/sda1 during installation
    UUID=060a4d9e-396a-4080-ab19-219991be414b / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=ed6a3fd6-9d78-4261-92ec-d914741b3359 none swap sw 0 0
    //Isacksen-TC/Shared-Back/Our\040Photos /mnt/Pictures smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,file_mode=0777,dir_mode=0777 0 0
    //Isacksen-TC/Shared-Back/Our\040Backups /mnt/Backups smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,file_mode=0777,dir_mode=0777 0 0
    //Isacksen-TC/Shared-Back/Our\040Music /mnt/Music smbfs ,rw,iocharset=utf8,uusername=uuuuuuu,password=pppp pp,file_mode=0777,dir_mode=0777 0 0
    //Isacksen-TC/Shared-Back/Our\040Movies /mnt/Movies smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,file_mode=0777,dir_mode=0777 0 0
    //Isacksen-TC/Shared-Back/Our\040TV\040Shows /mnt/Videos smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,file_mode=0777,dir_mode=0777 0 0
    //Isacksen-TC/Shared-Back/Our\040Documents /mnt/Documents smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,file_mode=0777,dir_mode=0777 0 0

    executing a sudo mount -a results in:

    //Isacksen-TC/Shared-Back/Our Photos on /mnt/Pictures type cifs (rw)
    //Isacksen-TC/Shared-Back/Our Backups on /mnt/Backups type cifs (rw)
    //Isacksen-TC/Shared-Back/Our Music on /mnt/Music type cifs (rw)
    //Isacksen-TC/Shared-Back/Our Movies on /mnt/Movies type cifs (rw)
    //Isacksen-TC/Shared-Back/Our TV Shows on /mnt/Videos type cifs (rw)
    //Isacksen-TC/Shared-Back/Our Documents on /mnt/Documents type cifs (rw)

    #2
    Re: fstab not loading at boot

    fstab happens before the network is up . you need to use the _netdev option to tell mount that its a network device and then it will wait for network to be up and mount it.
    Mark Your Solved Issues [SOLVED]
    (top of thread: thread tools)

    Comment


      #3
      Re: fstab not loading at boot

      I've added the "_netdev" to the network based fstab entries and they still don't mount. Someone mentioned the netfs package. Is that something that is missing?

      Comment


        #4
        Re: fstab not loading at boot

        Add the auto option to mount at boot.

        FYI, for me _netdev didn't work but having nobootwait as the last option did.

        Please Read Me

        Comment


          #5
          Re: fstab not loading at boot

          so, it would be something like?

          //Isacksen-TC/Shared-Back/Our\040Documents /mnt/Documents smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,_netdev,auto,nobootwait,file_mode=0777,dir_mode= 0777 0 0

          Comment


            #6
            Re: fstab not loading at boot

            I woudl try it with just the _netdev leaving out nobootwait. If it doesn't work as you wish, try the nobootwait instead of _netdev - but there is or was a small bug that required the nobootwait option to be the last option in the list - it needs to be at the end as in;

            //Isacksen-TC/Shared-Back/Our\040Documents /mnt/Documents smbfs ,rw,iocharset=utf8,username=uuuuuuu,password=ppppp p,auto,file_mode=0777,dir_mode=0777,nobootwait 0 0

            Please Read Me

            Comment


              #7
              Re: fstab not loading at boot

              Still not mounting, here is the current fstab entry.

              //Isacksen-TC/Shared-Back/Our\040Photos /mnt/Pictures smbfs ,rw,iocharset=utf8,username=uuuuuuuu,password=pppp ppp,auto,file_mode=0777,dir_mode=0777,nobootwait 0 0

              Should the mode be CIFS?

              Comment


                #8
                Re: fstab not loading at boot

                Bump...

                Comment


                  #9
                  Re: fstab not loading at boot

                  According to Ubuntu wiki, smbfs may not automount correctly. Have you tried cifs yet?

                  https://wiki.ubuntu.com/MountWindowsSharesPermanently

                  Assuming that doesn't work, another working aorund is to mount them noauto and them manually enter mount commands in rc.local

                  Also curious as to the purpose and effect of the leading comma in your options segment.

                  Please Read Me

                  Comment

                  Working...
                  X