reallocate /preinstall partition - Motorola Droid 4

Is there a way to reallocate /preinstall partition?
I deleted all there was in /preinstall and now i have 500 mb free space.

Solved by me using BMM with this patch.
#postedit
i also built this version of safestrap that install a rom in these partitions

Related

[Q] Can't convert /system to ext4?

As of last night I'm running CF Root 3 JVK on Gingerbread 2.3.3.
When I tried using the ext4 App to convert the file systems to ext4, it was successful for:
/dbdata
/data and
/cache
However for /system, it says:
Code:
Using: internal sdcard
Converting /system
- Backing up files ...
- Creating ext4 filesystem ...
- Restoring files ...
- Restore failed ! Not enough space ?
- Performing rollback ...
- Creating rfs filesystem ...
- Restoring files...
- Rollback success!
I cleared up some space on my phone and now I have 1.87GB available space on the sd card, and 13.26GB Available space on the USB storage.
and 1.75GB Available Space on System storage.
However I still can't convert /system to ext4.
Any ideas why this might be the case?
You need to free some space on /system to be able to successfully convert it to ext4. Apparently, ext4 needs some extra space for the conversion.
This is explained in the CF-Root main post, or in the CF-3.0 release information.
Okay thanks for that!
All the answers were in the original thread. I was just searching for the wrong terms.
I eventually downloaded Super Manager, activated its root mode and deleted the Aldiko eBook app from /system/app
That freed up enough space to convert /system to the ext4 filesystem!
mercifulhop said:
Okay thanks for that!
All the answers were in the original thread. I was just searching for the wrong terms.
I eventually downloaded Super Manager, activated its root mode and deleted the Aldiko eBook app from /system/app
That freed up enough space to convert /system to the ext4 filesystem!
Click to expand...
Click to collapse
you're right.
that works.
greetings
andcooper
mercifulhop said:
As of last night I'm running CF Root 3 JVK on Gingerbread 2.3.3.
When I tried using the ext4 App to convert the file systems to ext4, it was successful for:
/dbdata
/data and
/cache
However for /system, it says:
Code:
Using: internal sdcard
Converting /system
- Backing up files ...
- Creating ext4 filesystem ...
- Restoring files ...
- Restore failed ! Not enough space ?
- Performing rollback ...
- Creating rfs filesystem ...
- Restoring files...
- Rollback success!
I cleared up some space on my phone and now I have 1.87GB available space on the sd card, and 13.26GB Available space on the USB storage.
and 1.75GB Available Space on System storage.
However I still can't convert /system to ext4.
Any ideas why this might be the case?
Click to expand...
Click to collapse
Tell me pls where can i find the ext4 tool, for download.
kunacs said:
Tell me pls where can i find the ext4 tool, for download.
Click to expand...
Click to collapse
It is attached on the first page of the CF-Root thread.

How to increase /data partition?

There is 1.35GB free space in /system partition but only 40MB free space in /data partition on my phone.
Is there a way to repartition the internal storage so as to make use of the large free space in /system partition?
Using CM10 20120820 nightly build
getmore2012 said:
There is 1.35GB free space in /system partition but only 40MB free space in /data partition on my phone.
Is there a way to repartition the internal storage so as to make use of the large free space in /system partition?
Using CM10 20120820 nightly build
Click to expand...
Click to collapse
I've got the answer. The /data and /system partition is swapped in CM10 20120820 nightly build.
May be I should use CM10 20120814 version to get the bigger /data partition back.
That would slow down your apps and you wouldn't be able to make use of new features and fixes. Move some of your apps to sdcard and remove unused ones and there shouldn't be a problem.
You could, by that defeats the purpose of what pawitp just did. Move apps to sd.
Sent from my GT-I9000 using xda premium
If you need the extra space create an ext4 partition of around 1gb on your external sdcard and install Link2sd from the play store. That's a universal solution for all phones with limited storage.
Someone has also created a script that does practically the same thing, except it uses the internal movinand where /system is stored instead. http://forum.xda-developers.com/showthread.php?p=30568246
Use Datafix app from market, it makes /data/data directory, where all app cache can be stored.
zmagas1 said:
Use Datafix app from market, it makes /data/data directory, where all app cache can be stored.
Click to expand...
Click to collapse
That doesn't work with JB anymore because of the partition change. Hopefully they update it to make it work.

[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.

Safestrap & unused Webtop partition

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

Categories

Resources