Posts: 2
Threads: 2
Joined: Apr 2018
Reputation:
0
I can mount a network drive using command below:
sudo mount -t cifs //wb/Plexlib /home/pi/DRIVE/share -o username=xxxxxxxx,password=xxxxxxxx,vers=1.0
but couldn't figure out a way to automount again after reboot raspberry pi
May I ask for help from you all? Thanks ahead!
Posts: 1,047
Threads: 42
Joined: Mar 2012
Reputation:
25
Add to your /etc/fstab file:
//wb/Plexlib /home/pi/DRIVE/share cifs guest,uid=1000,iocharset=utf8,username=xxxxxxxx,password=xxxxxxxx,vers=1.0 0 0
DO NOT REBOOT
When you add that, type: sudo mount -a
If it worked, GREAT. You can now use that and reboot and whatever. If however it fails, you can do a bit of searching to figure out what's up (obviously I have not tested the above line).
The reason I say do not reboot is so you can first make sure it works with mount -a. Rebooting with a broken /etc/fstab file will cause your system to hang on boot and you won't be able to boot.
Cheers,
Robbie
Robbie Ferguson // The Bald Nerd
Did I help you out? Appreciate what I do? Please consider saying thanks: