Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Deleted

[Q] init.rc mount-points

OP bezo999

Prev Previous Post   Next Post Next
25th June 2014, 02:14 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jun 2014
Hello

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.

Code:
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, 4 views)
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes