OK So I have tried to set up a network drive:
Here is what I appended to the /etc/samba/smb.conf file
[EXTERNAL]
comment = Toshiba 1TB Drive
browseable = yes
path = /EXT_TOSH_1TB
writeable = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = yes
When I run sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
I get:
UUID NAME FSTYPE SIZE MOUNTPOINT LABEL MODEL
sda 931.5G 2105
0826237926236742 └─sda1 ntfs 931.5G /EXT_TOSH_1TB
mmcblk0 14.7G
0298-4814 ├─mmcblk0p1 vfat 41.5M /boot boot
d4f0fd64-ad9d-4cfd-aa76-8d3541fbf008 └─mmcblk0p2 ext4 14.7G / rootfs
I have restarted the samba server using sudo /etc/init.d/samba restart
Then I try to map to the drive using windows' map drive function:
192.168.1.67/EXT_TOSH_1TB
And then I get an error that the drive can't be found. Trying to access the folder using cd EXT_TOSH_1TB
I get:
-bash: cd: EXT_TOSH_1TB/: Permission denied
Doing sudo su
, cd EXT_TOSH_1TB
gets me in, but when I try to create a folder I get:
mkdir: cannot create directory ‘dd’: Read-only file system
After that, if I try to remount, using sudo mount -o remount,rw /dev/sda1 /EXT_TOSH_1TB
I get:
mount: cannot remount dev/sda1 read-write, is write-protected
Does anyone know how I can:
a) Get my drive to be mounted read-write?
b) Get my drive found by windows when mapping a network drive?
PS - As a little extra; The drive also doesn't show up under "Network" in Windows either. If that helps figure out what's going on.