Page 1 of 1

Rpi 2 4.1.3 FStab won't automount at start.

Posted: Tue Aug 11, 2015 8:54 am
by skywatch
As you can see below, my entry in fstab is not automounting a NAS share on reboot. Running sudo mount -a *does* mount the share, so it's not the config that's the problem.

/etc/fstab contains the following........

proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
//192.168.1.222/media /mnt/server/ cifs username=pi,password=XXXX,iocharset=utf8,sec=ntlm, 0 0
#

Here is the output of df -h after reboot......and again after issuing sudo mount -a......

pi@raspberrypi2 ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.2G 2.9G 4.0G 42% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 93M 364K 93M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 186M 0 186M 0% /run/shm
/dev/mmcblk0p1 56M 20M 37M 36% /boot

pi@raspberrypi2 ~ $ sudo mount -a

pi@raspberrypi2 ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.2G 2.9G 4.0G 42% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 93M 364K 93M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 186M 0 186M 0% /run/shm
/dev/mmcblk0p1 56M 20M 37M 36% /boot
//192.168.1.222/media 2.7T 2.1T 627G 78% /mnt/server
pi@raspberrypi2 ~ $

Anyone have a solution or suggestion to solve this please?

As a work around I have put 'mount -a' into /etc/rc.local, and this works as expected.
But shouldn't it not need this and work from /etc/fstab anyway?

Re: Rpi 2 4.1.3 FStab won't automount at start.

Posted: Mon Aug 24, 2015 3:27 pm
by skywatch
I guess not! :lol:

Re: Rpi 2 4.1.3 FStab won't automount at start.

Posted: Mon Aug 24, 2015 3:34 pm
by Joe Schmoe

Re: Rpi 2 4.1.3 FStab won't automount at start.

Posted: Mon Aug 24, 2015 3:35 pm
by RaTTuS
I've seen a couple of posts on this but cannot find then ATM
but
either look at autofs or nfs-common