Creating Separate mount path for USB and SD - Android 6

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Separate mount path for USB and SD - Android 6

1,526 Views
karthikeyanraju
Contributor III

Hi All,

I am using Android - Marshmallow, version 6 for the iMX6-q sabresd platform.

I Created the Directory in init.rc file ( path: system/core/rootdir ).

Separate path is successfully created in following paths,

/mnt/media_rw/USB   -  Need to mount USB here

/mnt/media_rw/SD     - Need to mount SD here

service bootanim /system/bin/bootanimation
class core
//user graphics
user system - Added 
group graphics audio
disabled
oneshot

Then, Making the change in the fstab.freescale file,

/devices/soc0/soc.0/2100000.aips-bus/2194000.usdhc/mmc_host* /mnt/media_rw/SD auto defaults voldmanaged=sdcard:auto,encryptable=userdata
/devices/soc0/soc.0/2100000.aips-bus/2184000.usb/ci_hdrc.0* /mnt/media_rw/USB auto defaults voldmanaged=usb:auto

But, I am not getting the reflection in my mount path. This fstab.freescale file not reflecting.

Can anyone help me to resolve this issue.?

Labels (3)
4 Replies

389 Views
b36401
NXP TechSupport
NXP TechSupport

Please update vold.fstab also.

Have a great day,
Victor

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

389 Views
karthikeyanraju
Contributor III

Hi Victor,

I am using Android 6.0.1 (Marshmallow), In this Source there is no such file like -> vold.fstab.

Is this file present in some other name ?

Can you help me to find that exact file.

0 Kudos

389 Views
nguyenmr
Contributor III

Hi Raju,

did you mount SD card, USB with separate path? 

I have the same problem. I can make directorty SDcard in mnt/media_rw, but cannot mount sdcard to it:

/devices/soc0/soc.0/2100000.aips-bus/2194000.usdhc/mmc_host* /mnt/media_rw/SDcard auto defaults voldmanaged=sdcard:auto,encryptable=userdata

 

I see that it mounted to mnt/media_rw/6232-6131 name.

If you fixed already, please share me some information!

Thanks!

0 Kudos

389 Views
karthikeyanraju
Contributor III

Hi Nguyen,

I just fixed this issue based on the Major and minor numbers of SD and USB.

By tracking those number , I wrote simple code to mount in particular location.

I think is a fix. But in Android 6 version, fstab file changes are not reflected to me.

0 Kudos