1

The only way I have managed to mount the drive is by typing the command:

> sudo mount -t cifs //"IP"/hdd1 /home/pi -o uid=1000,iocharset=utf8,username="USERNAME",password="PASSWORD",sec=ntlm

However, I have to do this every single time I reboot.

Can this command run automatically?

1

Edit you fstab file:

sudo leafpad /etc/fstab

Add this line:

//"IP"/hdd1 /home/pi cifs uid=1000,_netdev,iocharset=utf8,defaults,rw,username=username,password=password 0 0

Save the file and reboot your Pi. It should automatically mount the shared folder.

  • I thought this would work but it still didnt mount after reboot – user19414 Aug 4 '14 at 2:09
  • Check /var/log/messages for errors related to the mount; or, to verify the entry, type "sudo mount /home/pi" after rebooting -- if the entry is set up correctly, it should mount; if not, you may get a message indicating the problem. – TomG Nov 30 '14 at 1:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.