yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pengus77:
Just as proof :D

shell@android:/sys/devices/platform/sdhci-tegra.3/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p11 # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/extasec tmpfs rw,noatime 0 0
/dev/block/mmcblk0p12 /system ext4 ro,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p9 /data ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p2 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p7 /lgdrm ext3 rw,nosuid,nodev,noatime,barrier=0,data=writeback 0 0
/dev/block/vold/179:17 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

Huge problem :/ Rebooting destroies the partition map, no matter what you choose in the power menu !! Insane...

This is the result of parted in recovery after a reboot... is it possible that the system on shutdown tries to write something to a partition that is moved/changed/no more there ?

~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Error: Can't have overlapping partitions.
[LG Optimus 2x] pengus77:
Use the default ics-partitions.cfg from topogigi or stefan and align the size of the system.img in the cm source according to the one in the partition map or it will fail miserably :D

Attaching here the one i used ;)
[LG Optimus 2x] HUELK:
Thank you, i'm using the linaro toolchain for system and kernel (gcc 4.7.3). lets see if the build will work. I'm somewhat excited atm.
[LG Optimus 2x] pengus77:
Hehehe let's see, now you made me curious to check the speed bump using 4.7 :D

Anyway once you flash it don't ever reboot it or it'll break the partition table... need to kill this one before it's even remotely usable !
[LG Optimus 2x] HUELK:
Ok, you have to patch the kernel to somewhat like this to prevent build error in "piggy.gzip.o" when using gcc 4.7:

https://github.com/shr-distribution/linux/commit/627c638794d61c27858d6220cf55c27c74dc9450

i applied this manually as i didnt find the correct file for the kernel version but its just a few lines which has to be edited / added.
[LG Optimus 2x] pengus77:
Hey thanks, i'll test it later or tomorrow...

The situation is grim though... nvflash -> first boot -> all ok... then you reboot OR pull battery and the partition map goes insane. This is really creepy and we need to understand why :confused: It's as if cm10 does something on boot after the fs are mounted. Of course in this case the changes are applied on reboot/umount...

Edit: the modified partition is mmcblk0p5... something is definitely writing to it bad stuff after the end

Fdisk dump after a reboot

Disk /dev/block/mmcblk0: 7996 MB, 7996440576 bytes
4 heads, 16 sectors/track, 244032 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 33 11232 358400 83 Linux
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 11233 13264 65024 83 Linux
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 12678 231878 7014400 5 Extended
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 232465 232768 9728 83 Linux
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 ? 12678 12677 2147483647+ ff Unknown

Parted dump in cwm after flashing

Model: MMC MMC08G (sd/mmc)
Disk /dev/block/mmcblk0: 7996MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 368MB 367MB primary ext3
2 368MB 435MB 66.6MB primary ext3
3 435MB 7617MB 7183MB extended
5 435MB 437MB 2097kB logical
6 438MB 446MB 8389kB logical
7 447MB 449MB 2621kB logical ext3
8 450MB 471MB 21.0MB logical
9 471MB 2082MB 1611MB logical ext3
10 2082MB 2093MB 10.5MB logical ext3
11 2093MB 7077MB 4984MB logical ext3
12 7078MB 7615MB 537MB logical ext4
13 7615MB 7617MB 2097kB logical
4 7617MB 7996MB 379MB primary

Edit: found the problem... the system comes up and tries to check as vfat the internal sdcard. Somehow the change from 9 to 11 as partition in vold.fstab breaks that and the check happens on the whole emmc... breaking it.

I//system/bin/fsck_msdos( 102): ** /dev/block/vold/179:0
I//system/bin/fsck_msdos( 102): ** Phase 1 - Read FAT (compare skipped)
I//system/bin/fsck_msdos( 102): Attempting to allocate 7611 KB for FAT

with vold.fstab that looks like this now

dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard0 11 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
[LG Optimus 2x] HUELK:
ok the first partition is overlaps to the second one maybe some issue with the start_location entry in nvflash configuration.
[LG Optimus 2x] pengus77:
No, read the edit in the previous post :)

It's the bloody vold that breaks it :D
[LG Optimus 2x] HUELK:
damn youre fast ;) , im still at building
[LG Optimus 2x] pengus77:
Testing with BOARD_VOLD_MAX_PARTITIONS := 20 in BoardConfig.mk as a possible fix for sdcard and partitions... stay tuned :D

Edit: no go :( on boot it still tries to check 179:0 (the whole emmc) instead of 179:11 (the internal sd) and boom !

I//system/bin/fsck_msdos( 102): ** /dev/block/vold/179:0
I//system/bin/fsck_msdos( 102): Invalid signature in fsinfo block
I//system/bin/fsck_msdos( 102): FIXED
F/libc ( 985): Fatal signal 8 (SIGFPE) at 0x000003d9 (code=0), thread 985 (fsck_msdos)

---------- Post added at 10:32 PM ---------- Previous post was at 09:48 PM ----------

Done with building ? You don't need to do a full clean build each time :D
[LG Optimus 2x] uizz:
Guys...why changing board-bssq-nv.h's LGE_NVDATA_PARTITION to /dev/block/mmcblk0p5?

It should remain mmcblk0p6.

I am looking at v30a sources.
[LG Optimus 2x] pengus77:
No need to change it indeed. Only board-star-nv.h must be modified :)
[LG Optimus 2x] uizz:
Oh okay :) i was looking at HUELK's post:

I am following your steps to build the rom :)
[LG Optimus 2x] pengus77:
Hehe maybe better if you wait a few till we resolve the sdcard/vold problem, otherwise reboot = deadphone :D

Oh well, you can help out too hehehe

---------- Post added at 11:01 PM ---------- Previous post was at 10:51 PM ----------

Yep, definitely vold not picking up correctly partitions...

I/Vold ( 93): Vold 2.1 (the revenge) firing up
I/cm ( 115): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))
D/Vold ( 93): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 93): Volume emmc state changing -1 (Initializing) -> 0 (No-Media)
I/cm ( 116): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(
D/Vold ( 93): Volume emmc state changing 0 (No-Media) -> 2 (Pending)
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 1, PARTN 1
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 2, PARTN 2
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 3, PARTN 3
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 4, PARTN 4
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 5, PARTN 5
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 6, PARTN 6
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 7, PARTN 7
D/Vold ( 93): Volume emmc state changing 2 (Pending) -> 1 (Idle-Unmounted)
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 8, PARTN 8
W/Vold ( 93): Duplicate state (1)
I/Netd ( 95): Netd 1.0 starting
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 9, PARTN 9
W/Vold ( 93): Duplicate state (1)
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 10, PARTN 10
W/Vold ( 93): Duplicate state (1)
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 11, PARTN 11
E/DirectVolume( 93): Invalid 'PARTN' value
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 12, PARTN 12
E/DirectVolume( 93): Invalid 'PARTN' value
D/DirectVolume( 93): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 13, PARTN 13
E/DirectVolume( 93): Invalid 'PARTN' value

---------- Post added at 11:20 PM ---------- Previous post was at 11:01 PM ----------

BOARD_VOLD_MAX_PARTITIONS := 20 in BoardConfig.mk actually worked... my bad i forgot to remake the system.img before reflashing hehehehe :D

Anyway, now the partition table is not corrupted anymore on reboot. Reboot to recovery still doesn't work and the system doesn't mount the internal sdcard unless we format it manually... but hey, it's a bloody good start :D

So to make it work, enter adb, go su and mount the sdcard manually with mount -t ext3 /dev/block/mmcblk0p11 /storage/sdcard0 and then in system preferences -> storage, format it. it'll work for good then !
[LG Optimus 2x] mivv:
good work!! bravo:D
[LG Optimus 2x] massimo69:
+1 way to go :good:
[LG Optimus 2x] machoman1337:
We need to nominate pengus77 as a "recognized contributor"! :)
[LG Optimus 2x] pengus77:
Here's my "repo diff" output from a fresh clone... for whoever may need it :)
[LG Optimus 2x] pengus77:
Just to test and be happier, i added some swap reusing the SWP partition that is unused and found on stefan's ics :)

mkswap /dev/block/mmcblk0p4
swapon /dev/block/mmcblk0p4

This will enable until reboot 370mb of swap on emmc for all your memory hungry stuff... of course can be persisted in init.star.rc ;)

shell@android:/ $ free -m
total used free shared buffers
Mem: 350384 305380 45004 0 23328
-/+ buffers: 282052 68332
Swap: 370172 0 370172
[LG Optimus 2x] mivv:
building :D:D
[LG Optimus 2x] HUELK:
Hmm

system/vold/main.cpp:

if ((fp = fopen("/proc/cmdline", "r"))) {
while (fscanf(fp, "%s", line) > 0) {
if (!strncmp(line, "SDCARD=", 7)) {
const char *sdcard = line + 7;
if (*sdcard) {
// FIXME: should not hardcode the label and mount_point
if ((vol = new AutoVolume(vm, "sdcard", "/mnt/sdcard", sdcard))) {
vm->addVolume(vol);
break;
}
}
}
}
fclose(fp);
}

can you do a cat /proc/cmdline after booting the system
[LG Optimus 2x] pengus77:
Works perfectly now with the change of max partitions from 10 to 20...
[LG Optimus 2x] HUELK:
sorry didnt see that. my device is still no booting up and i dont want to 'repo sync' the whole stuff again, so i dont really have an eye on the thread.

I know, but i sometimes dont trust the build without a clean $OUT folder
[LG Optimus 2x] pengus77:
Sure, but just do "make bootimage" if you're testing the init* stuff or the kernel and it's fast as hell :)

---------- Post added at 02:19 AM ---------- Previous post was at 01:50 AM ----------

Managed to get it to boot ? :)
[LG Optimus 2x] HUELK:
Pengus,

can you send me your boot.img.
[LG Optimus 2x] mivv:
im still at building :(

---------- Post added at 02:23 AM ---------- Previous post was at 02:22 AM ----------

i think i will try it tomorrow !!is late i have to go at work at 6.00 ahah
[LG Optimus 2x] pengus77:
Here it is :)

Make sure your system.img size is exactly as stated in the partitions.cfg of nvflash or it won't work...

Also check that /dev/block/mmcblk0p10 is formatted as ext3 by nvflash. I mount is at /data/ve in this boot.img ;)
[LG Optimus 2x] HUELK:
well your kernel boots, so at least my system.img is ok, i guess i have missed some kernel option for the linro toolchain, well i have a look into that if you arent faster again ;)
[LG Optimus 2x] pengus77:
Hahahaha cool ! So you got it to work properly with my boot.img ? I mean you get the whole system up and running including the sdcard fix ?

If yes, then maybe it would be safer to put gcc 4.7 aside for a moment and focus on why it's not possible to reboot into recovery from the power menu... i need to go to sleep, but if you have time and can take a look at it, i think it's the last standing bug ;)
[LG Optimus 2x] MetaIIica:
Great thing xD

in the future we can do following: When the Cyanogen-Team make a ne Version from CM10 for P990 we can here update the Version for the new Bootloader so we have every time a updated CM10 unofficially

I cant in the Moment made every time a Build while i not at home and my Netbook to slow for make a build
[LG Optimus 2x] fuxmen:
Is there will be in future step by step guide?
[LG Optimus 2x] MetaIIica:
I dont know, this can pengus77 better say us, this was just a Idea from me

I have update the first Post with the Step by Step guide
[LG Optimus 2x] RohanAJoshi:
Can we get any working built for test call audio bug.?
[LG Optimus 2x] Imperticus:
There is already one couple of pages back on how to build cm10 compaitable with new bootloader.

Building cm10.1 using the fixes.
[LG Optimus 2x] anjo88:
Só lets test a New bootloader cm10 to see if call have problems
[LG Optimus 2x] Kamui_:
Why cyanogenmod team not adapt to the new bootloader? Is there any violations using the new bootloader?
[LG Optimus 2x] swifer_lf:
usually said no need to use new bootloader and system partition if working on old bootloader and old system partition. but if call bug caused by bootloader, is NEED to change new bootloader. that's why EXPERIMENTAL thread
[LG Optimus 2x] MetaIIica:
the advantage is that you can stay with the new bootloader and layout without the cumbersome need to go to the old layout with NVFLASH or whatever.

So everyone has the new ICS easily switch to ICS via CWM, as one would expect from the old system.

The new boot loader is cracked, therefore it is not from the Cyanogen team support ...
[LG Optimus 2x] pengus77:
Hiya Metallica !

Thanks for slapping the howto in op, hopefully people will look there before the last page :D

Please, to have a fully functional cm10 on the new bl, we need to fix the reboot-to-recovery problem because i think it's messing up big time... entering recovery via power+voldown works flawlessly btw. Today i need to focus 100% on my job or, ehm, but i'll look into the recovery tonight. If anyone beats me to it drop a pm so i add the solution to the howto :)
[LG Optimus 2x] Ryukenden:
Actually, to have fully functional CM10 u need to fix call audio bug 1st :)
[LG Optimus 2x] pengus77:
LOL true ! :D
[LG Optimus 2x] tr@p:
Maybe new bootloader will fix that bug... that's the point. Only time will tell.

Whoa, nice. My new bootloader is ready and eager for some flashing and testing. :)

And big thanks to pengus77 for making all this possible! :highfive:
[LG Optimus 2x] pengus77:
Just a quick test i just made... we know that reboot commands write the status to the misc partition and the bootloader reads it back, and the opposite too. Now, i checked the bootable/recovery/bootloader.c and a block caught my eye

int get_bootloader_message(struct bootloader_message *out) {
Volume* v = volume_for_path("/misc");
if(v)
{
if (strcmp(v->fs_type, "mtd") == 0) {
return get_bootloader_message_mtd(out, v);
} else if (strcmp(v->fs_type, "emmc") == 0) {
return get_bootloader_message_block(out, v);
}
LOGE("unknown misc partition fs_type \"%s\"\n", v->fs_type);
return -1;
}
return -1;
}

Sooo, no filesystem no party ? Good, i went formatting manually the misc partition (mmcblk0p5) in ext2 with mke2fs and then i tried again to reboot into recovery. Result is my phone is now stuck in smartflash mode, but it's a bloody start, isn't it ? :)

Edit: Fixed !!!!

Edit the file device/lge/star-common/prebuilt/setup-recovery and change it to this

#!/system/bin/sh

echo "boot-recovery" | dd of=/dev/block/mmcblk0p5 seek=6144 bs=1

And it'll work right away :) My mistake, sorry, i totally missed it while checking for partitions :D

Updating the howto post accordingly that is found here: http://xdaforums.com/showpost.php?p=35661482&postcount=100
[LG Optimus 2x] BigD18t:
This is sounding great, good work penguin, cant wait to be able to flash this in cwm and try it out.
[LG Optimus 2x] pengus77:
Eh, about that... at the moment i'm just using nvflash for testing and partitioning. As soon as it's confirmed stable i'll try to make an updater script that works with this. Shouldn't be too hard ;)
[LG Optimus 2x] MetaIIica:
@pengus77

i have add your last changes from your post #100 in the first post so we have all Informations in the first post. If you have any... please send me a PM so i can edit my first post
[LG Optimus 2x] pengus77:
Hiya ! Thanks :)

There shouldn't be any more last minute changes i think, but i'll sure send you a pm if something comes up :)
[LG Optimus 2x] BigD18t:
Great, I'm willing to test it when's is available.
[LG Optimus 2x] natalya:
Just to be sure, will this have any impact on performance, smoothness etc. if you compare it to the old boorloader? I mean, it gives more memory, but will it have an impact on performance etc.?

Looks nice, so thanks for working on this ;)
[LG Optimus 2x] Imperticus:
Performance wise, it will be the same. Technically you have less usable memory with new bootloader because of the additional partitions.

Got Android 4.2.1 (CM10.1) to boot. But having issues with reboot and reboot recovery. Normal boot, and recovery boot (via power + vol-) works fine.
[LG Optimus 2x] cuttysark76:
So how`s the call bug?
[LG Optimus 2x] pengus77:
Yeah a bit less memory but mmcblk0p4 available for 370mb of swap and zram active by default as of last cm commit on lge_kernel_star :D

For reboot to recovery can you check via adb if /bin/setup-recovery is correctly fixed for mmcblk0p5 ? I've had an issue where simple brunch without a clean didn't re-copy the prebuilts yesterday...

---------- Post added at 06:36 PM ---------- Previous post was at 06:29 PM ----------

To flash the recovery.img from cm source, need to modify also the device/lge/star-common/recovery/postrecoveryboot.sh so that it looks like this

#!/sbin/sh

sleep 3
## Clear "boot-recovery...enable-wipe" flag
dd if=/dev/zero of=/dev/block/mmcblk0p5 seek=6144 count=75 bs=1

otherwise when rebooting from cwm it'll screw up the partition map again...

---------- Post added at 06:45 PM ---------- Previous post was at 06:36 PM ----------

... and the last fix... in device/lge/star-common/init.cm-star.rc modify this (at about line 120)

chmod 777 /dev/block/mmcblk0p3
chmod 644 /dev/block/mmcblk0p5

into this

chmod 777 /dev/block/mmcblk0p5
chmod 644 /dev/block/mmcblk0p6
[LG Optimus 2x] pengus77:
Ok, good news everyone !!! :D

1) After fixing all files in cm source, i flashed the recovery i built with the rest of the images and works... no usb storage though, but atm i don't care.

2) This recovery, obviously, is perfectly compatible with the new partition scheme.

3) So i went on for a test and, after checking the correctness of the updater-script in the resulting zip, i flashed it.

4) It works perfectly without changing a single line from what brunching creates ;)

So, after you built and nvflashed (also the recovery attached here, or that you built following the last pages of fixes), you can just repo sync and flash the updated zip from cwm. Do not flash official cm10 zips, only ones that are custom built for this bootloader !!!

I attach here the correct recovery.img i made that works for me and that recognizes correctly the product name ;)
[LG Optimus 2x] Imperticus:
Great news. Is the recovery using the same fixes mentioned in the previous post, or any additional fixes?
[LG Optimus 2x] pengus77:
Same stuff described around, but it's easier like this to just grab it and flash it (dd if=recovery.img of=/dev/block/mmcblk0p8) ;)

I'm also uploading a custom build i made as a flashable zip, synced at 10 minutes ago from official cm source. When it's up i'll post it :)

---------- Post added at 08:57 PM ---------- Previous post was at 08:38 PM ----------

Here it is: cm-10-20121220-UNOFFICIAL-p990

Built from source with the new partition layout... you can only flash this zip from the recovery i posted above and only if you already have nvflashed the base rom !

If your phone implodes/explodes/talks/wants a coffee/says "no thanks" when you turn it on/etc... it's not my fault, ok ? :P
[LG Optimus 2x] BigD18t:
Downloading it now :D will test and report back with my findings.

Awesome work btw.

---------- Post added at 10:13 PM ---------- Previous post was at 10:05 PM ----------

Ok, me being dumb but how do i update the Cwm you uploaded?
[LG Optimus 2x] pengus77:
Uhm for now you should compile your base rom following the howto and flash it via nvflash before being able to use this zip.

I'm also packing a nvflash base for first-flash, so i'll say hang in there and wait a little bit longer if you really want to play with the new partition layout :)
[LG Optimus 2x] BigD18t:
I get it now, via nvflash, starting to learn this phone lol.

---------- Post added at 10:28 PM ---------- Previous post was at 10:20 PM ----------

Oh ok, i have no idea when it comes to that lol, so i'll wait, trying to flash the recovery though i get permission failed !! do i have to rename the image to anything ?

and is apo tool ok to use for flashing it ?
[LG Optimus 2x] pengus77:
Don't flash this recovery if you don't have also the new cm10 ! This recovery is specifically built for this layout and with the fixes in this thread. I'll make a new thread so i can pack all these things in one place ;)
[LG Optimus 2x] BigD18t:
Ok, i'll wait, all the excitement is getting the better of me :laugh:

Have you tried making any calls ??
[LG Optimus 2x] Imperticus:
Yes cm10.1 working now, reboot and reboot to recovery working. Thanks a lot pengus for your help. Now to try and fix the sdcard.
[LG Optimus 2x] pengus77:
For sdcard just mount it in terminal with "mount -t ext3 /dev/block/mmcblk0p11 /storage/sdcard0", then go to storage preferences and mount it there. After that, click erase sdcard and confirm... twice :)

CM10 wants the sdcard as vfat, nvflash formats it as ext3 so this step is needed just once :)
[LG Optimus 2x] Imperticus:
Tried it, doesn't work. Both internal and external are not working.
[LG Optimus 2x] pengus77:
Ah crap, 4.2 uses the new /0 format for sdcard mounting... should be /storage/emulated/0 or /storage/sdcard0 or simply /sdcard (i'm looking at my gnex with 4.2.1). Of course if the mount point changes, also vold.fstab must change accordingly...
[LG Optimus 2x] Imperticus:
My bad, external is working checked by file manager but not internal.
[LG Optimus 2x] pengus77:
If the mount point is always /storage/sdcard0 for internal and you can't mount it... format it :D

in terminal "mke2fs /dev/block/mmcblk0p11" then "mount -t ext2 /dev/mmcblk0p11 /storage/sdcard0" and then in storage mount and format... should work, unless the mount point is incorrect for 4.2
[LG Optimus 2x] Imperticus:
Doesnt let me run mke2fs says it is being used by the system.

Anyway, the mounting system is slightly different in 4.2 because of the integration of multiaccounts. I'm trying something out, will let you know if i succeed.

Edit: No luck. This is the mount I get.

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/extasec tmpfs rw,noatime 0 0
/dev/block/mmcblk0p12 /system ext4 ro,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p9 /data ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p2 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/vold/179:17 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0