Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Motorola Atrix (MB860) device working perfectly with Debian Linux image from Linuxonadroid. I have a emmc storage on Atrix that I'd like to share with Debian. This is how it looks like the emmc on Android.

localhost / # mount | grep emmc
/dev/block/vold/179:18 on /mnt/emmc type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

I mount a new partion using bind option in order to share the files with Debian (chroot /data/local/mnt/) and it worked perfectly.

localhost / # busybox mount -o bind /mnt/emmc /data/local/mnt/emmc
localhost / # mount | grep emmc
/dev/block/vold/179:18 on /mnt/emmc type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:18 on /data/local/mnt/emmc type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

But when I tried to access from Debian I got "Permission denied".

debian@localhost:/$ l emmc/
ls: cannot open directory emmc/: Permission denied
debian@localhost:/$ ls -l | grep emmc
d--xrwxr-x  20 debian sdcard-rw  4096 Jan  1  1970 emmc

If I tried with root user it works but I'll run a webserver that it'll access the files from emmc. I don't to run the webserver as a root just to be able to access the emmc files. I tried to remount the /mnt/emmc on Android changing the permissions (-o remount,dmask=777) but no luck. :( Any idea how can I access the emmc files from Debian box with debian user?

Thanks!

share|improve this question

migrated from stackoverflow.com Mar 4 at 7:28

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.