Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to automount a network drive after reboot?

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!
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


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.

Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
Had same question. I found this: https://readlearncode.com/raspberry-pi/c...nas-drive/
Forum Jump:

Users browsing this thread: 1 Guest(s)