Rockbox General > Rockbox General Discussion

linux file permissions

(1/1)

foonix:
I am trying to access the files on an ipod rockbox on an ubuntu 14.04 system; but can only seem to do so as root as the mount command does not seem to pay any attention to the mounting options I give it. 

I mount with:
sudo mount -t vfat /dev/sdc2 /media/wjason/Zen-Black/ -o rw,uid=1001,gid=1001,umask=000,dmask=000

My understanding is that this should mount a FAT system read/write with all files owned by user wjason (uid 1001) and group wjason (gid 1001) and such that file and directory permissions for owner, group, and others are read, write, and execute

and yet, ls -l shows these permissions:
drwxr-xr-x 2 root root 4096 Nov 28  2010 Calendars
...
and for files on the device:
-rwxr-xr-x 1 root root 10704477 Sep 18 07:54 Bill Yosses _ Christine Kalafus.mp3

Since the owner/group are still root and group and others do not have write permissions, I can only sync files to the rockbox as root.

[Saint]:
This really has nothing to do with Rockbox besides the fact that the device just happens to be running Rockbox.

Rockbox does not, and can not, govern where or how or under which user the device is mounted as. It simply presents itself as generic removable storage and your host does the rest.


[Saint]

yithar7153:
Rockbox has nothing to do with this issue. FAT doesn't store file permissions like EXT4 so it's something wrong with your system. I'm not sure what could be wrong, but personally I just mount it with it "-o uid=1000". Are you sure your uid is 1001? You might want to check the /etc/passwd file. Other than that, I'm sure there are programs that automount it for you. For example, PCManFM mounts my drive for me.

Navigation

[0] Message Index

Go to full version