tengo un disco duro formateado en NTFS conectado al puerto USB del router Livebox de Orange y también tengo una raspberry pi con Raspbian instalado.
Lo que quiero conseguir es montar una carpeta del disco duro en la raspberry
creo la carpeta en home /home/pi
Código: Seleccionar todo
mkdir mySharedFolder
drwxr-xr-x 2 pi pi 4096 Oct 31 17:10 mySharedFolder
Código: Seleccionar todo
sudo mount -t cifs -o vers=1.0,_netdev,username=pi,password=mypassword,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 //192.168.1.1/discosUSB/WDElements_10B8/Elements/hdFolder /home/pi/mySharedFolder
Código: Seleccionar todo
ls -la
drwxrwxrwx 2 pi pi 0 Oct 31 17:20 mySharedFolder
Código: Seleccionar todo
ls -la mySharedFolder/
-rwxrwxrwx 1 pi pi 5 Oct 31 17:17 file.txt
drwxrwxrwx 2 pi pi 0 Oct 31 17:18 folder1
Código: Seleccionar todo
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 14G 1.4G 12G 11% /
devtmpfs 213M 0 213M 0% /dev
tmpfs 217M 3.1M 214M 2% /run
tmpfs 217M 0 217M 0% /sys/fs/cgroup
tmpfs 44M 0 44M 0% /run/user/1000
//192.168.1.1/discosUSB/WDElements_10B8/Elements/hdFolder 8.0G 2.5G 5.5G 32% /home/pi/mySharedFolder
Código: Seleccionar todo
cat mySharedFolder/file.txt
Hola
Código: Seleccionar todo
sudo cp a.jpg mySharedFolder/
cp: error writing 'mySharedFolder/a.jpg': Permission denied
El fichero lo llega a crear pero con 0 bytes
Código: Seleccionar todo
ls -la mySharedFolder/
-rwxrwxrwx 1 pi pi 0 Oct 31 17:32 a.jpg
-rwxrwxrwx 1 pi pi 5 Oct 31 17:17 file.txt
drwxrwxrwx 2 pi pi 0 Oct 31 17:18 folder1
Si ejecuto sudo smbclient -L //192.168.1.1
Código: Seleccionar todo
Sharename Type Comment
--------- ---- -------
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL
discosUSB Disk Share Folder
IPC$ IPC Remote Inter Process Communication
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
¿Qué hago mal?
Gracias