[Android Q&A, Help & Troubleshooting] bethnesbitt:
Was looking at files in my tablet and noticed that mine actually has a fstab:

Fstab:

/emmc@android /system ext4 (ro,noatime,noauto_da_alloc,commit=1,data=ordered)
/emmc@usrdata /data ext4 (rw,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/emmc@cache /cache ext4 (rw,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/emmc@protect_f /protect_f ext4 (rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/emmc@protect_s /protect_s ext4 (rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)

Now vold.fstab may be able to edit it to read as follows:

Original

# Mounts the first usable partition of the specified device
dev_mount sdcard /storage/sdcard0 [B]emmc@fat[/B] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2

## Example of specifying a specific partition for mounts
dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

Now I just want to edit the vold.fstab so that it mounts /data on the partition in someway. Roadblocks i'm hitting is that, not sure how to exactly edit the line:

dev_mount sdcard /storage/sdcard0 emmc@usrdata /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host

dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host

mmcblk0p7 will have to be formatted to ext4, which can be done in linux using gparted. Issue is, doesn't brick the phone, but now you cannot read the internal storage anymore. This theory has to be played around with a little more. Now if you make the external sdcard the internal storage then formated the extra space to be ext4. Might not even work so my next idea is.

This can't work unless some editing is done through other files. You could do a few things, trick the system into thinking mmcblk1p1 (external sdcard) is mmcblk0p7. Format mmcblk0p7 to ext4, BUT, you still need to find the file that is creating mmcblk0p7. Found a few that point to it as described below[/B]

Update

:

Was looking around at files on my tablet and tried a few things just out of curiosity.

Tried a fdisk -l /devices/block/mmcblk0p7 in adb shell, failed with error saying that the file system was run in the old linux format. Remember reading that way back in the olden days, :P partitions were written as files.

Went and looked around, and low and behold, found those files.

Hope I can explain this without it sounding like babble:

If you go into sys/block you will see each mmcblk, i'm using file explore with root because, well it's easier, I would suggest getting FX and exploring this way, less confusing.

in sys/block/mmcblk0 are separate folders for each mmcblk with the partitions. So if you go into mmcblk0p6, you will see a file called start, open that, that is where mmcblk06 starts, my tablet file start number is 3262976. There are all types of loops, thinking that they are all symlinked in a way, so editing the main file may do the same in the loops.

Another place to look is /sys/fs/ext4 and /proc/fs/ are the folders for mmcblk0p3 through mmcblk0p6. Also, in the directory /proc/fs/ext4/ are folders for mmcblk0p3 through mmcblk0p6. Possibly if mmcblk0p7 is added to these folders you could do the above - emmc@usrdata /dev/block/mmcblk0p7 or /sys/block/mmcblk0/mmcblk0p7. Thinking this is going to be to tricky though. Really the most sensible way would be to fix the sizes of 0p6 and 0p7, leaving a small size for 0p7 and a larger size for 0p6.

Another link is where the actual partitions are,, mine is located in /proc/partions and looks like this:

major minor #blocks name

7 0 1254 loop0
179 0 3843584 mmcblk0
179 1 1 mmcblk0p1
179 2 504 mmcblk0p2
179 3 10240 mmcblk0p3
179 4 665600 mcblk0p4
179 5 385024 mmcblk0p5
179 6 524288 mmcblk0p6
179 7 2212096 mmcblk0p7
179 64 2048 mmcblk0boot1
179 32 2048 mmcblk0boot0

and also in /proc/emmc

emmc file:

partno: start_sect nr_sects partition_name

emmc_p1: 00000400 00000002 "ebr1"
emmc_p2: 00000010 000003f0 "protect_f"
emmc_p3: 00009800 00005000 "protect_s"
emmc_p4: 0001ba00 00145000 "android"
emmc_p5: 00160a00 000bc000 "cache"
emmc_p6: 0021ca00 00100000 "usrdata"
emmc_p7: 0031ca00 00438200 "fat"

May link to the filesystem /dev/block/platform/mtk-msdc.0/by-num there are files p1-p7

I did find another file showing what each partition was, what was on that partition and how big it was, Everthing is setup in a loop so I have to find that file again.