permission problem of usb on sabresd board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

permission problem of usb on sabresd board

579 Views
beomseokoh
Contributor I

I am trying to write any file to usb (/mnt/udisk) on sabresd board

When dettaching usb memory stick.................

in init.rc

    mkdir /mnt/udisk 0777 system system  -> drwxrwxrwx system   system            1970-01-02 20:49 udisk

    symlink /mnt/udisk /udisk

root@sabresd_6dq:/mnt # ls -al                                                

drwxr-xr-x root     system            1970-01-02 20:49 asec

d--------- system   system            1970-01-02 20:49 extsd

drwxr-xr-x root     system            1970-01-02 20:49 obb

lrwxrwxrwx root     root              1970-01-02 20:49 sdcard -> /storage/emulated/legacy

drwx------ root     root              1970-01-02 20:49 secure

drwx------ shell    shell             1970-01-02 20:49 shell

drwxrwxr-x system   graphics          1970-01-02 20:49 shm

drwxrwxrwx system   system            1970-01-02 20:49 udisk

When attaching usb memory stick.................

in fstab.freescale

     /devices/platform/fsl-ehci /mnt/udisk vfat defaults voldmanaged=sdcard:auto

root@sabresd_6dq:/mnt # ls -al

drwxr-xr-x root     system            1970-01-02 20:49 asec

d--------- system   system            1970-01-02 20:49 extsd

drwxr-xr-x root     system            1970-01-02 20:49 obb

lrwxrwxrwx root     root              1970-01-02 20:49 sdcard -> /storage/emulated/legacy

drwx------ root     root              1970-01-02 20:49 secure

drwx------ shell    shell             1970-01-02 20:49 shell

drwxrwxr-x system   graphics          1970-01-02 20:49 shm

d---rwxr-x system   media_rw          1970-01-01 00:00 udisk

Which file do i modify to add +w at udisk permission?

Thank you in advance...

Labels (3)
0 Kudos
1 Reply

393 Views
Yuri
NXP Employee
NXP Employee

Hello,

  As I understand the problem is automounting of an USB  device, when inserted.

The following may be helpful.

http://unix.stackexchange.com/questions/134797/how-to-automatically-mount-an-usb-device-on-plugin-ti...

http://linuxconfig.org/automatically-mount-usb-external-drive-with-autofs


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos