[Nexus 4 General] erkamt:
for those who TRIED EVERYTHING; still no solution?

just like me ;)

Check this out:

http://xdaforums.com/showpost.php?p=43164157&postcount=1

Download the neccessary files and follow the intructions after "Next steps for Nexus 4 16GB:"

A few notes:

I had to try several times...

At the part "There shouldn't be a extra line."; if there is; unmount all of them except /dev.

umount /storage
umount /mnt/secure
unount /mnt/fuse

etc...

---------- Post added at 12:58 AM ---------- Previous post was at 12:32 AM ----------

How I did it?

Install "Nexus Root Tool Kit". It helped me a lot. Use it.

Download 3 files; from here

Use Nexus Root Tool Kit for followings;

Unlock.

Flash stock rom.

Root and flash CWM recovery (You should choose CWM recovery from Options/Custom Recovery).

Install Busybox using SuperSU or Superuser.

Copy 3 files above to phone.

If "dd" got renamed to "dd.bin" rename it back to "dd".

Install Root Browser or an similar app and copy the 3 files to your /system directory.

Reboot into recovery.

Click Launch (Advanced Utilities) on Nexus Root Toolkit.

Click Launch CMD Prompt (Manuel Imput)

Type following commands, one line each time. I recomment copy/paste to avoid mistakes.

adb shell
mount /system
cp /system/dd /
chmod 755 /dd
/dd if=/dev/block/mmcblk0 of=/system/pgpt8G.img bs=512 count=34
/dd if=/dev/block/mmcblk0 of=/system/sgpt8G.img bs=512 skip=30777311
umount /data
umount /cache
umount /system
umount /storage
umount /mnt/secure
umount /mnt/fuse
df -h

If you have any problems at anytime, unplug and plug USB, start over again from first command line.

Now the output should look like this:

# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 911.7M 48.0K 911.6M 0% /dev

There shouldn't be extra lines. If there is; use "umount" command for the other lines and check the result by "df -h" command.

If there is no extra line then continue with:

mount /system
/dd if=/dev/block/mmcblk0 of=/system/DDR bs=512 skip=15267840 count=2015
/dd if=/system/DDR of=/dev/block/mmcblk0 bs=512 seek=30775296 conv=notrunc
/dd if=/system/sgpt16G.img of=/dev/block/mmcblk0 bs=512 seek=30777311 conv=notrunc
/dd if=/system/pgpt16G.img of=/dev/block/mmcblk0 bs=512 seek=0 conv=notrunc
parted /dev/block/mmcblk0

Then type p and press enter and the output should look like this:

# 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) p
p
Model: MMC 016G92 (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 524kB 67.6MB 67.1MB fat16 modem
2 67.6MB 68.2MB 524kB sbl1
3 68.2MB 68.7MB 524kB sbl2
4 68.7MB 70.8MB 2097kB sbl3
5 70.8MB 71.3MB 524kB tz
6 71.3MB 94.4MB 23.1MB boot
7 94.4MB 117MB 23.1MB recovery
8 117MB 118MB 799kB m9kefs1
9 118MB 119MB 799kB m9kefs2
10 119MB 120MB 799kB m9kefs3
11 120MB 121MB 524kB rpm
12 121MB 121MB 524kB aboot
13 121MB 122MB 524kB sbl2b
14 122MB 124MB 2097kB sbl3b
15 124MB 124MB 524kB abootb
16 124MB 125MB 524kB rpmb
17 125MB 125MB 524kB tzb
18 125MB 126MB 524kB metadata
19 126MB 143MB 16.8MB misc
20 143MB 159MB 16.8MB ext4 persist
21 159MB 1040MB 881MB ext4 system
22 1040MB 1627MB 587MB ext4 cache
23 1627MB 15.8GB 14.1GB ext4 userdata
24 15.8GB 15.8GB 524kB DDR
25 15.8GB 15.8GB 507kB grow

Notice that userdata partition is 14.1GB in size :good:

Type

quit

and hit enter to close parted.

Now reboot the phone into bootloader: type reboot and hold 'Up' button or use CMW menus to enter bootloader menu.

Then type:

fastboot erase userdata
fastboot -w

That is all :)

Reboot and enjoy your 12,92GB :good: