• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Guruplug Chmod uns /media/usb0 failed  (Read 927 times)
appi
Newbie
*

Karma: 0
Posts: 4


View Profile
« on: June 21, 2010, 01:05:21 AM »

hy Guys
i am searching to change the accessrights on my /media/usb0 to 0777, but after each reboot the default ist 0755 again. till the sdcard is mounted it is not possible to change the access rights.
where can i change the mount options? i found the /etc/usbmount/usbmount.conf but it's not possible to change the rights.

the original mount options give me  the following results:
cat /proc/mounts
/dev/sdb1 /media/usb0 vfat rw,nodev,noexec,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0

thanks for help.
regards
remo

ps: it's also not possible to chage the owner
Logged

fragfutter
Sr. Member
****

Karma: 12
Posts: 280


View Profile
« Reply #1 on: June 21, 2010, 02:39:23 AM »

the permissions are stored in the mounted filesystem -> on the sd card. As the sd card is formatted as vfat it knows nothing about permissions. You need to specify the permissions in the mount. See "man mount". The options you are interested are fmask, dmask, uid, gid
Logged

appi
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #2 on: June 21, 2010, 03:11:28 AM »

thank you for your help.

i found the solution wenn i added the following line in /et/usbmount/usbmount.conf

FS_MOUNTOPTIONS="-fstype=vfat,dmask=0000,fmask=0000"

now i have only to search where i can start usbmount earlier then mysql server.

thank you for help

remo
Logged

fragfutter
Sr. Member
****

Karma: 12
Posts: 280


View Profile
« Reply #3 on: June 21, 2010, 04:23:14 AM »

if the sd card is essential to run system services, then it should be mounted via /etc/fstab
Logged

Pages: [1]
Print
Jump to: