User avatar
skywatch
Posts: 46
Joined: Tue May 21, 2013 8:17 pm

Rpi 2 4.1.3 FStab won't automount at start.

Tue Aug 11, 2015 8:54 am

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?

User avatar
skywatch
Posts: 46
Joined: Tue May 21, 2013 8:17 pm

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

Mon Aug 24, 2015 3:27 pm

I guess not! :lol:

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

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

Mon Aug 24, 2015 3:34 pm

And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

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

Mon Aug 24, 2015 3:35 pm

I've seen a couple of posts on this but cannot find then ATM
but
either look at autofs or nfs-common
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Troubleshooting”