Creating Separate mount path for USB and SD - Android 6

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

Creating Separate mount path for USB and SD - Android 6

2,240 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)
5 Replies

708 Views
divyeshmarne0
Contributor III

is this issue fixed? Need some help here.. 

0 Kudos

1,103 Views
b36401
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

1,103 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

1,103 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

1,103 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