isonsa.blogg.se

Respberry pi directory for usb drive
Respberry pi directory for usb drive






respberry pi directory for usb drive

Tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=76740k)ĭevpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620) Sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) Proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) Tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) Tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=38376k,mode=755) dev/root on / type ext4 (rw,noatime,data=ordered)ĭevtmpfs on /dev type devtmpfs (rw,relatime,size=183620k,nr_inodes=45905,mode=755) However this is quite easy to fix using a couple of commands:Ĭode: Select all ~ $ sudo mkdir ~ $ ls -l /mnt/ĭrwxr-xr-x 2 root root 4096 Jul 10 15:05 ~ $ sudo mount /dev/sda1 ~ $ mount Who owns the files when the flashdrive is attached to your debian box? And what permissions do they have then? If (for example) the files are owned by your account (say it is called 'user') and the files are only accessible by 'user', then when you put the drive in the Raspberry Pi the user 'pi' isn't the user 'user' and won't be able to access them (actually it doesn't matter what the usernames are - rather the uid that they map to must be the same). (If you unmount again you'll see the /mnt/usb on the sdcard again and it will still have 777 permissions). The reason that changing the /mnt/usb folder to 777 doesn't work is that the /mnt/usb folder you created on the sdcard is hidden by the root folder of your flashdrive when it is mounted and it is then the permissions on the directories and files on the flash drive that matter.

respberry pi directory for usb drive respberry pi directory for usb drive

I'm assuming the flash drive is formatted using a linux filesystem (ext2/3/4 or similar) here, so both the debian box and the raspberry pi have a concept of ownership.








Respberry pi directory for usb drive