Remove All Ads from XDA
Honor 9 Lite
Post Reply Email Thread

I will try to be brief. I am trying to modify stock init.rc (ofc inside boot.img). I want to mount second partition(ext2) of my SD to root as /data. Also for performence I would like to leave /data/dalvik-cache on NAND yaffs2 partition. Issue is I dont know what options of mount I have to use.

93.  on fs
94.  # mount mtd partitions
95.     # Mount /system rw first to give the filesystem a chance to save a checkpoint
96.     mount yaffs2 mtd@system /system
97.     mkdir /system/flex
98.     mount yaffs2 mtd@system /system ro remount
99.     mount ext2 mmc@blk0p2 /data wait nosuid dev errors=continue
               or  /dev/block/mmcblk0p2
        # mount yaffs2 mtd@userdata /data nosuid nodev
100.    mount yaffs2 mtd@cache /cache nosuid nodev

102. on post-fs
168.    # create dalvik-cache and double-check the perms
169.    mkdir /data/dalvik-cache 0771 system system # <- Should it be in "on fs" section?
170.    mount yaffs2 mtd@userdata /data/dalvik-cache nosuid nodev
171.    chown system system /data/dalvik-cache
172.    chmod 0771 /data/dalvik-cache
If someone have knowledge about that, please devote me a little of your time.
Attached Files
File Type: txt stock_init.rc_.txt - [Click for QR Code] (13.2 KB, 16 views)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes