Safestrap & unused Webtop partition - Motorola Droid 4

tried to use the webtop partition as system partition with timangus' altpart-safestrap, unfortunately the partition has a size of 0 MB
tried also Mentor's Modified safestrap, where (logically) the data partition has 0 MB
tried to repair the file system as recommended by Mentor, but unsucessful
I started from a new stock rom (4.1.2 flashed via SBF)
Any help on how to repair the webtop partition is appreciated

Related

???resizing partition..

Question?
1st i want to ask f i chaNGE my partition size to 768mb (for ICS) and restore my data from my old partition which is 300plus mb,(GB partition), it is posible?
2nd if i want to restore my cwm backup (the gb partition) i need to flash again my old partition? Right? My question is can i restore my back up even f my old partition size (361mb exact) is not exactly the size of my new gb flash partition? (Ex. 350mb or above)
And lastly can i flash GB rom, cm7 or cm10 rom even my partition size is 768mb? Or i need gb partition which is 350+ mb?
THANKS IN ADVANCE...
follow this tutorial for resizing partitions...
http://forum.xda-developers.com/showthread.php?t=1594844

[HELP]Problem resizing partitions

I have a problem. I have try to resize the partition using nvflash. I have use guide from modaco and also the preconfigured files. The problem is that /system is always at ~360mb (stock size). All other partitions are resized propertly.
Any help?
doctoralex said:
I have a problem. I have try to resize the partition using nvflash. I have use guide from modaco and also the preconfigured files. The problem is that /system is always at ~360mb (stock size). All other partitions are resized propertly.
Any help?
Click to expand...
Click to collapse
I'm facing the same problem. I think I know what the problem is but I cannot solve it!
I currently have installed Stefan 28G ics rom (2nd edition) and my goal is to add about 100mb to the system partition, reducing internal /sdcard.
If I use fdisk command from adb shell I find out that the partion IS actually resized, but the file system on it isn't!!
So: partition now is 650Mb, but file system on it is 550Mb!
That's because nvflash simply makes a dd of the system.img (which has the old partition size) to the partition so in my opinion there are two solutions:
a) open system.img in a linux environment, add some stuff to reach 650Mb on it and repack it with the new size
b) backup system data, formata the partition (which is already resized) to get 650Mb file system and then restore your system data
I think that all "resizing guide" doesn't talk about this second step because in that case the system.img has always the right size.
Any ideas?
Raffaele80 said:
I'm facing the same problem. I think I know what the problem is but I cannot solve it!
I currently have installed Stefan 28G ics rom (2nd edition) and my goal is to add about 100mb to the system partition, reducing internal /sdcard.
If I use fdisk command from adb shell I find out that the partion IS actually resized, but the file system on it isn't!!
So: partition now is 650Mb, but file system on it is 550Mb!
That's because nvflash simply makes a dd of the system.img (which has the old partition size) to the partition so in my opinion there are two solutions:
a) open system.img in a linux environment, add some stuff to reach 650Mb on it and repack it with the new size
b) backup system data, formata the partition (which is already resized) to get 650Mb file system and then restore your system data
I think that all "resizing guide" doesn't talk about this second step because in that case the system.img has always the right size.
Any ideas?
Click to expand...
Click to collapse
I solved my problem!
As explained before I have just added some stuff to the system.img file and then resized the file system:
dd if=/dev/zero bs=4096 count=35328 >> system.img
e2fsck -f system.img
resize2fs system.img
PS: bs and count depend on the partition size that you have set before in the .cfg file
Then NVFlashing again solve the problem!
doctoralex said:
I have a problem. I have try to resize the partition using nvflash. I have use guide from modaco and also the preconfigured files. The problem is that /system is always at ~360mb (stock size). All other partitions are resized propertly.
Any help?
Click to expand...
Click to collapse
Backup your rom with cwm.
Format /system in cwm.
Restore your cwm backup.
Sent from my LG-P990 using xda app-developers app

Webtop on ics/JB

Hi there thanks for the reply, I have not tried this particular rom yet, but I have installed the .233 ics on 4.0.4 and I have found that the webtop had been converted from the webtop linux version to an app, that is probably why most of you guys running custom roms are not getting webtop to work. The bionic webtop.img or /dev/block/mmcblk1p24 is now only holding a 150 MB of memory and they are mostly just the webtop.apk's
here is a link to a rooted webtopv2 if you want to try to get it to mount and run for webtop you will also need almost all the original scripts that launch the webtop when an hdmi cable is connected from version 5.904 or 838 or what ever the versions were before ics. but here is a link to a rooted webtop if you are on a rom before ics you can do dd if=/sdcard/webtop.img of=/dev/block/mmcblk1p24 and get a rooted full ubuntu desktop version of webtop, I do not know how this will work if you overright the current webtop because there is no scripts to mount the webtop.img or /dev/block/mmcblk1p24 currently. if someone gets webtop to work correctly this could really make a hudge difference in the new jellybean roms.
Webtop v2 rooted for bionic ubuntu with apt-get, firefox installed
Click to expand...
Click to collapse
http://www.4shared.com/zip/txsvRdah/webtopimg.html
Also I have found that our bionic has alot of free space now because of the updates shown below:
vendor has 1.3 GB memory, 156 Mb used, this is linked to webtop or /dev/block/mmcblk1p24
Webtop is not like webtop 1, or webtop 2 this is just an app version not a ubuntu based webtop
Cache has 696 or so memory maybe 50 Mb used.
Preinstall has 283MB 50-100 megs used, you can delete most of these apps though, and videos
I have added swap on my cache partition of 512Mb, I would like to see original webtop v2 rooted like the link I posted above on webtop, and maybe Vendor.img to be shrunk to 200 MB and add the excess 700 megs to /data to increase data to over 4GB or add 700 megs to sdcard-ext, either way there is alot of room for improving the free space on our device shrink webtop if you cant add original webtop, and shrink cache because there probably won't be any more updates and cache is only really used for updates.
shrink cache 500 megs would be about 200 Mb after shrunk
shrink webtop/vendor or re-add Linux based webtop should only be about 175 Mb after being shrunk
shrink preinstall 200 Mb should be 25-50 Mb after shrink
add this 1Gb - 1.5Gb to data, or sdcard-ext
to do this you would need to use fdisk
WARNING THIS IS NOT A TUTORIAL, using fdisk on a running system can ruin/brick your phone this would should only be used by devs, and hopefully rom creaters to better our phone in custom roms.
fdisk /dev/block/mmcblk1
mbmloader mmcblk1p1
mbm mmcblk1p2
mbmbackup mmcblk1p3
ebr mmcblk1p4 this is the extended partition for the rest of the partition table
bploader mmcblk1p5
cdt.bin mmcblk1p6
pds mmcblk1p7
lbl mmcblk1p8
lbl_backup mmcblk1p9
logo.bin mmcblk1p10
sp mmcblk1p11
devtree mmcblk1p12
devtree_backup mmcblk1p13
bpsw mmcblk1p14
boot mmcblk1p15
recovery mmcblk1p16
cdrom mmcblk1p17
misc mmcblk1p18
cid mmcblk1p19
kpanic mmcblk1p20
system mmcblk1p21
cache mmcblk1p22
preinstall mmcblk1p23
webtop mmcblk1p24 has been linked to vendor on ICS and up
userdata mmcblk1p25
emstorage mmcblk1p26
sgpt mmcblk1p27
then change the start point of each partition and end point of each partition adding the excess memory to either data or sdcard-ext
Would like help to bring back the original webtop for bionic on jellybean and ics not to use the webtop3 wich is based on apk's not linux like it was before
anyone try this on 4.2.2 ASOP for bionic?
If you wanted a custom kernel download the jelly bean source for the bionic compile your custom kernel as long as its compiled on an x64 machine with the stock jelly bean source you should be able to use dd command in cwm or touch recovery from adb on your computer
First you need to create a boot.img from your zimage you can Google that I believe its mkboot from koush make the boot.img then copy if to your sdcard then once you have your custom kernel in a bionic jelly bean stock boot.img on your sdcard from recovery type in adb shell.
adb shell:
#dd if=/sdcard/boot.IMG of =/dev/block/mmcblk1p15
Were the boot.IMG is your custom kernel compiled from bionic jelly bean source
Here is link to source
http://sourceforge.net/projects/droidbionic.motorola/files/droidbionic/9.8.2O-72_VZW-22/
If you get this far add swap/zram in the config.gz its one line
CONFIG_SWAP=y
CONFIG_ SWAP_PREFETCH=y
You don't need prefetch its just supposed to help with read speed.

How to resize the system partition?

I want to increase the system partition to 1.5 GB as possible to make?
the system partition is already at 2GB by deafult! what possible reason do you have to increase it by 1.5GB?
Oh, sorry, i thought that he 1GB, so I have to be increased to 2.5 or up to 3 GB that I could fit all GApps
even the biggest gapps package with a rom wont take more that about 1200MB(from experience)
are you by any chance using a lollipop rom? cuz i have faced a bug where flashing one changes your /system size to 990MB though it actually is around 2200MB. Flashing a fresh rom, backing it up with TWRP,then formatting /system( which resets the partition to the original 2gb) and finally restoring the backup will fix the size problem and you will have around 1.5gb left for the gapps.
I use cm 12.1 and cm recovery.
I'll try your recommendation to flash twrp
flash this: http://forum.xda-developers.com/xperia-z1/general/twrp-v2-8-6-0-f2fs-support-t3092316
then check the size of the /system partition after flashing cm12 (from twrp > wipe > advanced wipe > select 'system' then > fs options > it will show some info about /system.if it shows the size as somewhere around 990MB and Free Space = 0mb , then thats your problem
Yes, this method worked for me.
As I understand it is required after each reset to backup and recovery.

Re-using the cache partition

Having flashed the extended partition zip, no problems at all with customer ROMs :good:
However, looking at the Mi3's mounted partitions, I see Cache is always heavily under-used. It always shows 372MB free, out of 378MB. I have never seen this value change.
Could some of this be switched to the /data partition?
Or to rebuild system1 and system2 to eg 750MB each, so we can safely have dual boot again?

Categories

Resources