Cannot mount smb/cifs from fstab - Raspberry Pi Forums
okay, have been trying few days , cannot seem work.
have freenas box serving out files on cifs/smb , want automatically mount shares when pi boots.
able mount share using following command via ssh:
entering password when prompted.
so...
after looking @ several hundred recommendations others...
reading many, many pages of fstab syntax tutorials...
, trying many, many, many... lot... of different fstab configurations...
best guess fstab line should be:
saving fstab.
run command
okay, figure there might sort of issue authenticating, or users, or that...
rather fiddling credentials , trying chown everything, created user account on nas, matches default raspbian user credentials.
better test out first make sure works manually...
far good. alright! new credentials work fine!
having done that, tried new fstab line using new credentials...
think myself why dont try mount share manually name...
sudo nano /etc/fstab mount point in fstab... plain day....
mount point absolutely exists within /var/...
dedicated ip nas...
share mounts 100% correctly when done manually using either set of credentials...
lost...
please me...
ps. if have broken forum rules apologize in advance. point out error , i'll move post.
pss. have read hundreds of search results regarding samba, cifs, fstab, mtab, mount, mount.cifs, , moun -t on forum alone... google provided me many thousands of others... have done lots of homework , asking help. thankyou.
psss. if turns out stupidly easy fix eat raspberry pi
have freenas box serving out files on cifs/smb , want automatically mount shares when pi boots.
able mount share using following command via ssh:
code: select all
sudo mount -t cifs //192.168.2.119/0.5tb\ sg\ hdd\ 1 /var/0.5tbsghdd1 -o user=matthewso...
after looking @ several hundred recommendations others...
reading many, many pages of fstab syntax tutorials...
, trying many, many, many... lot... of different fstab configurations...
best guess fstab line should be:
code: select all
//192.168.2.119/0.5tb\ sg\ hdd\ 1 /var/0.5tbsghdd1 cifs user=matthew,pass=pass,uid=1001,_netdev 0 0run command
code: select all
sudo mount -a [mntent]: line 4 in /etc/fstab bad rather fiddling credentials , trying chown everything, created user account on nas, matches default raspbian user credentials.
better test out first make sure works manually...
code: select all
sudo mount -t cifs //192.168.2.119/0.5tb\ sg\ hdd\ 1 /var/0.5tbsghdd1 -o user=pi password: raspberrycode: select all
pi@raspberrypi ~ $ df -a filesystem 1k-blocks used available use% mounted on rootfs 1828696 1465252 270568 85% / /dev/root 1828696 1465252 270568 85% / devtmpfs 94488 0 94488 0% /dev tmpfs 18912 200 18712 2% /run tmpfs 5120 0 5120 0% /run/lock proc 0 0 0 - /proc sysfs 0 0 0 - /sys tmpfs 37820 0 37820 0% /run/shm devpts 0 0 0 - /dev/pts /dev/mmcblk0p1 57288 16896 40392 30% /boot //192.168.2.119/0.5tb sg hdd 1 480708340 212949452 229302224 49% /var/0.5tbsghdd1 pi@raspberrypi ~ $having done that, tried new fstab line using new credentials...
code: select all
//192.168.2.119/0.5tb\ sg\ hdd\ 1 /var/0.5tbsghdd1 cifs user=pi,pass=raspberry,uid=1006,_netdev 0 0code: select all
sudo mount -a [mntent]: line 4 in /etc/fstab bad code: select all
sudo mount /var/0.5tbsghdd1 mount: can't find /var/0.5tbsghdd1 in /etc/fstab or /etc/mtabcode: select all
proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 //192.168.2.119/0.5tb\ sg\ hdd\ 1 /var/0.5tbsghdd1 cifs user=pi,pass=raspberry,uid=1006,_netdev 0 0 mount point absolutely exists within /var/...
dedicated ip nas...
share mounts 100% correctly when done manually using either set of credentials...
lost...
please me...
ps. if have broken forum rules apologize in advance. point out error , i'll move post.
pss. have read hundreds of search results regarding samba, cifs, fstab, mtab, mount, mount.cifs, , moun -t on forum alone... google provided me many thousands of others... have done lots of homework , asking help. thankyou.
psss. if turns out stupidly easy fix eat raspberry pi
have tried using share name without spaces in not need escaping? not sure if escaping works in fstab (i have never used it).
raspberrypi
Comments
Post a Comment