Install second partition on Android device with vold

I want to have access to the ext4 partition, without using Data2SD, on the SD card of my HTC Vision, which works with ROM Virtuous Unity 1.3.0. I modified my /system/etc/vold.fstab file as follows:

 dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.4/mmc_host/mmc2 

For this:

 #dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.4/mmc_host/mmc2 dev_mount sdcard /mnt/sdcard 1 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.4/mmc_host/mmc2 dev_mount e4vol /mnt/sdcard2 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.4/mmc_host/mmc2 

So, I can get my second section labeled e4vol, mount and use on my Android device. Two questions, and I think this obviously has something to do with the other.

  • I tried reinstalling the root record-record and creating a mount point /mnt/sdcard2 , but it rebooted. It looks like Android may have created such mounts with mount.conf in the past. Now it does not exist in Gingerbread ROMS. Thoughts?
  • Is that all I need to do to get the second partition installed on Android, or do I also need to create /sdcard2 as /sdcard ? I assume that both of them are created as vold symbolic links, as indicated in this conf file, but I have not had time to check yet.

I would ask forums, but this seems like a developer question, and this is the latest release of the OS. It seems to have changed a lot from version to OS version. Thank you in advance for your patience and help.

UPDATE:. Thus, the test mount was transferred to the SD card, and this did not work, even with a constant mount point. So, not sure where I am going wrong.

+6
source share
2 answers

You may need to look at /init.rc.

There are some "mkdir / mnt / ..." -statements. You only need to add your "mkdir / mnt / sdcard2" and "ln -s / mnt / sdcard2 / sdcard2" to this file.

But be careful when editing this file !!!

+1
source

I looked at the vold source, including Icecream-Sandwich: its final mount () system call is tightly bound to the "vfat" file system type. β€œEven if you try it, it will fail.”

I myself really want to connect my ext4 SD card to / sdcard, because I regularly suffer from FAT card file system crashes (and I'm not the only one who has Android).

An alternative is: modify the init / boot process to just mount the partition you want in bypassing vold.

0
source

Source: https://habr.com/ru/post/894736/


All Articles