My goal is to have my shared network folder mount on boot.
This is the path in windows:
\\READYSHARE\mynas
I created a folder:
Code: Select all
Sudo Mkdir /media/mynasCode: Select all
Sudo chmod 777 /media/mynasCode: Select all
sudo mount //192.168.1.99/mynas /media/mynasPassword for root@//192.168.1.99/mynas: *********
I entered the password and the folder was mounted(Yay!) :
pi@raspberrypi:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 1.4G 27G 5% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 8.5M 1.9G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 52M 201M 21% /boot
tmpfs 391M 0 391M 0% /run/user/1000
//192.168.1.99/mynas 299G 99M 298G 1% /media/mynas
So I know I could mount the network drive pretty easily.
I umounted the drive and tried to mount it again like this:
Code: Select all
sudo mount -o username=pi,password=Raspberry //192.168.1.99/mynas /media/mynasBut then i tried to edit fstab to get the drive to mount on boot:
Code: Select all
//192.168.1.99/mynas /media/mynas auto username=pi,password=Raspberry,workgroup=WORKGROUP,users,auto,user_xattr 0 0cannot open access to console the root account is locked see sulogin 8 man page for more details.
I press enter and it just displays the same message.
So I'm going to reload the Raspbian image and try again and maybe some kind soul out there could give me the code for fstab I need to make it work.
I would like all user and group access and R/W access.
Being very unfamiliar with linux, it took me weeks to get to this point. If I could get this to work I would be ecstatic!
Thanks!