pixelpop
Posts: 94
Joined: Mon Jan 22, 2018 8:15 am

Mounting Network Drive with FSTAB [SOLVED]

Sun Sep 29, 2019 8:38 am

I am having a problem mounting a network drive via fstab. I have tried adding both of the following in the fstab file (but not both at the same time):

//192.168.0.10/USB_Storage /mnt/sharedfolder/ cifs guest 0 0
//192.168.0.10/USB_Storage /mnt/sharedfolder/ cifs username=pi,password={mypipassword} 0 0


Neither of these options results in the drive being mounted on reboot. However, I can run mount and it works with either one:

pi@raspberrypi:~ $ sudo mount -a
pi@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 27G 3.6G 22G 15% /
devtmpfs 334M 0 334M 0% /dev
tmpfs 463M 8.0K 463M 1% /dev/shm
tmpfs 463M 6.4M 456M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p6 253M 40M 213M 16% /boot
tmpfs 93M 0 93M 0% /run/user/1000
//192.168.0.10/USB_Storage 932G 19G 913G 3% /mnt/sharedfolder
pi@raspberrypi:~ $

I also set the boot option of not booting until a network connection was established, but that also had no affect. So what have I gotten wrong here?
Last edited by pixelpop on Sun Sep 29, 2019 12:40 pm, edited 1 time in total.

LTolledo
Posts: 3432
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Mounting Network Drive with FSTAB

Sun Sep 29, 2019 11:06 am

"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

pixelpop
Posts: 94
Joined: Mon Jan 22, 2018 8:15 am

Re: Mounting Network Drive with FSTAB

Sun Sep 29, 2019 12:38 pm

LTolledo wrote:
Sun Sep 29, 2019 11:06 am
have a peek here....
https://www.raspberrypi.org/forums/view ... b#p1538145
Yes! Yes! Yes! I tried both of the suggested entries, and of course the first one didn't work (it's been one of those days). But the second one worked like magic!

//192.168.0.10/USB_Storage /mnt/sharedfolder/ cifs vers=1.0,user=<username>,password=<password>,x-systemd.automount 0 0

Thank you so much!!!

Return to “General discussion”