[Q] Noobish question on CWM , partition sizes and restores - HD2 Android Q&A, Help & Troubleshooting and Genera

So, if I have a ROM (CMYLXGO's Stock Desire) w/ 425 MB system partition and I back it up with CWM , then install another ROM with 150MB system partition (installing the 150MB partition prior to install of course), do I need to repartition back to the 425MB prior to restoring the 425MB partitioned backup?
Common sense would tell me yes, BUT, I figured I would ask just in case I am wrong!

JWhipple said:
So, if I have a ROM (CMYLXGO's Stock Desire) w/ 425 MB system partition and I back it up with CWM , then install another ROM with 150MB system partition (installing the 150MB partition prior to install of course), do I need to repartition back to the 425MB prior to restoring the 425MB partitioned backup?
Common sense would tell me yes, BUT, I figured I would ask just in case I am wrong!
Click to expand...
Click to collapse
Yes, you definitely need to re-partition.

Thank you - thats just what I needed to know!

JWhipple said:
Thank you - thats just what I needed to know!
Click to expand...
Click to collapse
glad I could help....

What will be the problem if i dont perform repartition?

I had been wondering if a nandroid backup would restore old partition sizes, since it backs up everything, but yeah i guess it makes sense that it can't change the size of the recovery partition, since that's what cwm is running from at the time of backup/restore. But does nandroid restore system and cache partition sizes?
Sent from my HTC HD2 using XDA App

huggs said:
I had been wondering if a nandroid backup would restore old partition sizes, since it backs up everything, but yeah i guess it makes sense that it can't change the size of the recovery partition, since that's what cwm is running from at the time of backup/restore. But does nandroid restore system and cache partition sizes?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
No, the restore just loads the partition contents into the partition, it doesn't adjust the sizes, or recreate them,, just loads the backed up contents into it.

Related

Check your file system partitions

I recently flashed the new 4EXT Mod of ClockworkMod Recovery. The 4EXT Recovery is based off of Koush's CWM Recovery but offers additional power options, one of which is the ability to show the file system format your partitions are formatted in. To my surprise my system was formatted in the Ext 4 format and my data and cache partitions were formatted in Ext 3. The new 4EXT Recovery offers the option to convert the format without deleting any of the data. Your ROM will stay intact after the conversion. I selected that option and changed my data and cache partitions to ext 4 to match my system, rebooted, and notice quite an improvement in speed and smoothness in my current CM7 Nightly. After looking into it further I found out that the SuperwipeG2 that many of us have been flashing is formatting our partitions in the Ext 3 format. The reason only my system was formatted in ext 4 is because I used ClockworkMod Recovery the last time I did a full wipe to first flash the Superwipe, and then I immediately formatted system again with ClockworkMod Recovery. If you've used SuperwipeG2 to do a wipe, more than likely your system, data, and cache partitions are now Ext 3. You might want to check with your ROM developer to see if your ROM will run on the Ext 4 format. If its a CM7 based ROM, it will.
You can find more information about the Ext 4 format here.
Tsubus has since modified SuperwipeG2 so that it now formats the partitions into ext 4 when you flash it. I've used it and it also includes the EFS wipe. You can find it here. As I said, if there is no reason to wipe right now the new 4EXT Recovery can convert your partitions if you choose if they are in currently Ext 3. At the very least you can see what format they're currently in with 4EXT. I highly recommend it. You can always flash back to CWM Recovery if and when you choose. The partitions will remain Ext 4 once you choose to convert.
UPDATE: Several users have reported that checking partition information with Terminal Emulator is not reliable.
i just caught this issue this morning as well, all my partitions are in ext3, going to convert today. thanks for this post and the links to the new superwipe! +1
Sent from my HTC Vision using xda premium
Thanks for pointing this out. I have all of mine in ext3 right now and plan on converting to ext4 here in a minute.
if ive never used superwipe my partitions are still in EXT4?
nonione said:
if ive never used superwipe my partitions are still in EXT4?
Click to expand...
Click to collapse
Probably yes, but it wouldn't hurt to check. The new 4EXT Recovery will display your current partition status. Then you'll know for sure.
Sent from my HTC Vision using xda premium
So could someone clarify my understanding of this? If we are currently using ext3 we have 2 options to move to ex4 and keep CWM:
1) keep CWM, use the new superwipe+ext4, flash cm7
2) switch to 4ext recovery, convert fs to ext4, go back to CWM recovery
Alternatively, I would consider switching to 4EXT recovery permanently, but I am a bit reluctant to ditch CWM just because I'm so used to it. Is it worth the switch?
c00ller said:
So could someone clarify my understanding of this? If we are currently using ext3 we have 2 options to move to ex4 and keep CWM:
1) keep CWM, use the new superwipe+ext4, flash cm7
2) switch to 4ext recovery, convert fs to ext4, go back to CWM recovery
Alternatively, I would consider switching to 4EXT recovery permanently, but I am a bit reluctant to ditch CWM just because I'm so used to it. Is it worth the switch?
Click to expand...
Click to collapse
ClockworkMod is using the Ext 4 format. Its just that currently there is no way to tell what format your partitions are formatted in with CWM. If you flash the SuperWipeG2+ext4 from tsubus with CWM and don't ever use the original Superwipe and don't restore a backup, you're all set and done. BUT, if you restore a backup created by CWM that was partitioned at the time you created the backup in Ext 3, you'll be back to Ext 3 again. IE you've got to scrap all your old backups....all of us do if we want to stay with Ext 4. So, if you're willing to do a full wipe with the new SuperWipeG2+ext4 and CWM, you're good to go.
edit: yes to your number two. You can convert your Ext 3 partitions to Ext 4 with the new 4EXT Recovery and then go back to CWM. As I said above, after you do this you need to get rid of the original Superwipe and not restore old backups made in the Ext 3 format.
Sent from my HTC Vision using xda premium
I think I've just made the switch to 4EXT, it was very painless and I like the features of the recovery. Now I'm wondering, with the 4EXT recovery, do we still need the superwipeg2 zips (including the new, ext4 modified one)? Also, is there a thread with discussion about the SuperWipeG2+ext4.zip (i.e., where did you find the link to download it)?
c00ller said:
I think I've just made the switch to 4EXT, it was very painless and I like the features of the recovery. Now I'm wondering, with the 4EXT recovery, do we still need the superwipeg2 zips (including the new, ext4 modified one)? Also, is there a thread with discussion about the SuperWipeG2+ext4.zip (i.e., where did you find the link to download it)?
Click to expand...
Click to collapse
Use the new Superwipe just like you did and when you needed the old one. Tsubus modified it to format the partitions in ext 4. You can find his thread in the Development section. Its the CM7 ILWT thread. He modified the Superwipe right befor he went away for the weekend. The original link is in the OP of that thread. Be sure and hit his "thanks" button.
Sent from my HTC Vision using xda premium
Thanks very much for the info and links, Ed. I will make the switch and give you a proper 'thanks' later tonight.
Sent from my HTC Vision using XDA App
typing the following in terminal
Code:
mount
will tell you what filesystem types like ext2 ext3 ext4 etc, so u dont really need the other recovery to check if you're using ext3.
Code:
/dev/block/mmcblk0p25 [B]on /system type ext4 [/B](ro,relatime,barrier=1,data=ordered)
/dev/block/mmcblk0p26 [B]on /data type ext4 [/B](rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/mmcblk0p27 [B]on /cache type ext4 [/B](rw,nosuid,nodev,noatime,barrier=1,data=ordered)
/dev/block/mmcblk0p28 [B]on /devlog type ext4 [/B](rw,nosuid,nodev,noatime,barrier=1,data=ordered)
Still, I never even noticed that it was formatted as ext3 until i saw your post. Used the new superwipe and a fresh cm7 nightly. Everything flies now! Thanks for noticing the issue
Just checked via terminal emulator and mine are all in EXT4. Never used Superwipe before so I guess that's why.
sephiroth1439 said:
Still, I never even noticed that it was formatted as ext3 until i saw your post. Used the new superwipe and a fresh cm7 nightly. Everything flies now! Thanks for noticing the issue
Click to expand...
Click to collapse
Glad it worked out for you.
sephiroth1439 said:
typing the following in terminal
Code:
mount
will tell you what filesystem types like ext2 ext3 ext4 etc, so u dont really need the other recovery to check if you're using ext3.
Click to expand...
Click to collapse
martonikaj said:
Just checked via terminal emulator and mine are all in EXT4. Never used Superwipe before so I guess that's why.
Click to expand...
Click to collapse
WARNING: Ptesmoke and Ditamae have reported that this method wasn't accurate for them. Results reported by terminal emulator didn't match the actual file system ext's when they booted into 4EXT Recovery. After converting they have both posted that they noticed an improvement in performance.
Strange... so I checked thru Terminal and all partitions were EXT4, but after flashing the 4EXT Recovery and booting into recovery I discovered that data and cache were in fact EXT3. Hmm... I'm converting now, at any rate. Thanks again, Ed.
Just to clarify...
So the original Superwipe changes our partitions to ext3, and the new Superwipe up above changes/keeps it at ext4.
If that is correct it seems like we should remove the other instances of the original Superwipe in the forum and switch everyone over to the new Superwipe. What does reformatting via CWM change the file system to?
Nospin said:
Just to clarify...
So the original Superwipe changes our partitions to ext3, and the new Superwipe up above changes/keeps it at ext4.
If that is correct it seems like we should remove the other instances of the original Superwipe in the forum and switch everyone over to the new Superwipe. What does reformatting via CWM change the file system to?
Click to expand...
Click to collapse
Yes, the original Superwipe changes the partitions to Ext 3. I'm not sure if there are other ROMs out there doing the same thing. It depends on the scripting. Many ROMs are scripted to format the partitions first when you flash them. If users reading this thread take the information and post it to their ROM thread in the Development section of the forum that would help to get the news out to check to see if their partitions are formatted correctly.
Thanks OP! I used (my new friend) 4EXT Recovery and converted my data and cash partitions to ext4, got rid of my old SuperWipe and Dow loaded the new Superwipe.
CM7 does indeed seem smoother, and overall a bit faster.
Big thanks for the heads up!
Sent from my HTC Vision using xda premium
Also noticed the "eccentricity" of my /data and /cache being ext3, conversion to /ext4 was painless and the phone does seem to be running more smoothly.
(Then again, I utterly love this recovery--so powerful, and yet so simple to use )
Aaaand interestingly, at least if ROM Manager is any guide, they've finally pulled the 5.0.0.x "Seppuku Builds" of CWM. Which is nice, but 4EXT has sold me
I have a question that maybe someone in this thread could answer. As I said previously, I flashed the 4EXT Recovery last night and changed my data and cache from ext3 to ext4. Afterward, I noticed that my internal memory usage had decreased by approximately 70Mbs. Is this a result of less fragmentation? I'm assuming it's just a benefit of the way fourth extended filesystem works. Can anyone confirm this? Thanks in advance.

[Q] Resize rocovery partition

If I resize my recovery partition on my HD2, is all data on my SD card lost? and would i have to reflash a new NAND ROM?
Repartitioning your internal memory will not affect the data on your sd card in any way.
Yes, you would have to flash a new ROM, or restore a backup.
so i take it the recovery partition clockwork uses it not on that sd card
which leads to my other question, if my rom requires a 169mb recovery and i use a 400mb recovery, will it work?
yes it will work, but you will waste 231mb of rom space. This is because you will set a system partition of 400mb, and load into it 169mb of files, BUT once the rom is running, all your user data, installed apps, etc get put into different partitions. Nothing will use the extra 231mb in the system partition, so it will be completely wasted and unuseable.
abdalla21 said:
so i take it the recovery partition clockwork uses it not on that sd card
which leads to my other question, if my rom requires a 169mb recovery and i use a 400mb recovery, will it work?
Click to expand...
Click to collapse
is there any sense rom that will work on a 150mb recovery? if so please share the link
Very unlikely. Why not just change the size?
samsamuel said:
Very unlikely. Why not just change the size?
Click to expand...
Click to collapse
bored on my help desk job, was gonna mess with my rom,but if im goin to resize i rather do it at home....lol
think im gonna try the bliss rom, any takes on it?
well you could always flash the rom, play with it, then when you get home, do a cwm backup, change the part size, reflash the rom, then in cwm do an advanced restore and just restore the sd-ext and data partitions. hey presto, system size changed and any settings you configure today will be restored into the new flash.
CAnt comment on the rom, i only use typhoon.
abdalla21 said:
so i take it the recovery partition clockwork uses it not on that sd card
which leads to my other question, if my rom requires a 169mb recovery and i use a 400mb recovery, will it work?
Click to expand...
Click to collapse
CAUTION; the CWM partition make it is for the SD and it WILL ERASE ALL DATA ON SD , for partition internal memory u have to use other tools on a PC (my favorite its HD2 toolkit)
Enviado desde mi HTC HD2
Typhoon has a nice stable sense rom.?
Send me a link
Sent from my HTC HD2 using XDA App
Typhoon is a cm7 rom. Cm7 roms don't have sense.
I CAN highly recommend it, though. I've been on an older version typhoon for over a month now, and the only bug is the occasional failed video capture. Annoying, but doesn't happen often.

What are the partitions used for?

So, I see that different roms needs different size of the partition layout of the built in drive.
But what is it actually used for?
I use my freespace app to look up how much space I got left. Since it is very limited space on the blade, and I want a couple of apps I need to learn more about this.
These are mine running on ColdfusionX latest release.
Cache 37mb (1 used)
Data 162mb (131 used)
System 220mb (202 used)
Where are the gapps installed? I flashed normal ICS gapps. Are these put in system or data? Both partitions used more space after installation?
Is cache just for the apps running? And like temporarly downloaded files from google play?
How come my data is used up so much? I thought this was all the space for my downloaded+installed apps? I have installed just a few, maybe 15mb worth of apps.
What about system? I was using like 179mb just after install. But now its up to 202 used. Are the 18 remaining MB wasted space?
Also, if I uninstall apps that came with the systems. would the system be more unused and more unused space would be wasted on that partition?
Need a clarification please
sliddjur said:
So, I see that different roms needs different size of the partition layout of the built in drive.
But what is it actually used for?
I use my freespace app to look up how much space I got left. Since it is very limited space on the blade, and I want a couple of apps I need to learn more about this.
These are mine running on ColdfusionX latest release.
Cache 37mb (1 used)
Data 162mb (131 used)
System 220mb (202 used)
Where are the gapps installed? I flashed normal ICS gapps. Are these put in system or data? Both partitions used more space after installation?
Is cache just for the apps running? And like temporarly downloaded files from google play?
How come my data is used up so much? I thought this was all the space for my downloaded+installed apps? I have installed just a few, maybe 15mb worth of apps.
What about system? I was using like 179mb just after install. But now its up to 202 used. Are the 18 remaining MB wasted space?
Also, if I uninstall apps that came with the systems. would the system be more unused and more unused space would be wasted on that partition?
Need a clarification please
Click to expand...
Click to collapse
The cache is where temp play store downloads go, but most roms now redirect it to the data partition so it's safe to have a 2mb cache partition like most of us do. The data partition stores the app itself plus all data created by the app. The system partition stores the rom itself, the files needed for the phone to run, the system! Most gingerbread roms you'll be safe to have a 150-160mb system partition and 2mb cache, aloowing a much larger data partition for your apps. your 162mb data partition is very small! so no wonder you're running out of space. To create more data partition space you can install your apps on the sd card, either directly and to .android_secure or to an sd-ext partition so you can mount your phone to the PC and the apps will still run. gapps are installed in the system partition although some you can uninstall and download through the play store and then would be on your data partition. To make best use of your internal memory if you're on a gingerbread rom create a 150-160mb partition and if you're on an ICS rom then 200-210mb is best, so be prepared to give up a bit of data/app space. Also 2mb for cache will always be fine
hi guys, what if i want to re partition my sd card what would happened to my installed app on my sdcard. i mean what is the safest way to clean up my sd card then repartion it.
raizor6th said:
hi guys, what if i want to re partition my sd card what would happened to my installed app on my sdcard. i mean what is the safest way to clean up my sd card then repartion it.
Click to expand...
Click to collapse
Backup all your apps+data using titanium or go backup.
Partitioning WILL FORMAT YOUR SD CARD
QuantumFoam said:
Backup all your apps+data using titanium or go backup.
Partitioning WILL FORMAT YOUR SD CARD
Click to expand...
Click to collapse
thanks mate , but will ultimate backup do the same as titanium backup? i dunno how to use those backup tools, after the partition will i just install titanium backup then restore all my apps? how about my mp3s, image and videos?
I recommend go backup. Run the backup, partition the card then reinstall go backup and click the restore button
QuantumFoam said:
I recommend go backup. Run the backup, partition the card then reinstall go backup and click the restore button
Click to expand...
Click to collapse
I see, how about the backup I made earlier using ultimate backup? this way I don't have to reflash a rom?
thanks a lot mate.
raizor6th said:
I see, how about the backup I made earlier using ultimate backup? this way I don't have to reflash a rom?
thanks a lot mate.
Click to expand...
Click to collapse
U don't need tto reflash a rom to partition SD card
QuantumFoam said:
U don't need tto reflash a rom to partition SD card
Click to expand...
Click to collapse
yeah, well I uh.. got the problem solved using the application called SDmaid, my Sdcard has a free space now. thanks again.

Restoring NANDROID Backups

Hello HD2 users,
This may seem like very basic information but got me confused so i want to share it with you. Its about restoring nandroid backups.
The Experiece:
I had the typhoon rom working very well. Its fast and smooth and i like it alot. Anyways, being a flash junkie and wanting to try out different roms all the time i wanted to try a sense 3.5 rom. It required a greater internal memory partition 200 or 245mb. I currently had 150mb.
So anyways, i made a nandroid backup in CWM and then flashed a new partition size, flashed the new sense rom and it was working. I didnt like it. I wanted the typhoon rom back. I booted into CWM and restored the backup. BUT it didnt work. The backup restored successfully but due to low internal memory, it didnt even go to the boot animation. Just stayed on the boot image.
The lesson:
To restore your nandroid backups and run them u need to restore them on the SAME partition size that you made them on.
If u made a backup with 200mb partition, the restored backup will ONLY WORK if your partition is still 200mb.
Just some basic info. Hope it helps people out
Peace
Sent from my HTC HD2 using xda app-developers app
adil1508 said:
The lesson:
To restore your nandroid backups and run them u need to restore them on the SAME partition size that you made them on.
If u made a backup with 200mb partition, the restored backup will ONLY WORK if your partition is still 200mb.
Click to expand...
Click to collapse
I would dispute that, and say that it is more likely that your increased system partition size resulted in the data partition being too small to restore fully.
Did you make sure you did a 'wipe data factory reset' before restoring? since leftovers on the sd card could be causing problems too.
did you try 'fix permissions'?
(Always happy to be proven wrong, of course, i'm no great mind when it comes to android, but i'm ((fairly) sure ive restored to larger partitions before)
samsamuel said:
I would dispute that, and say that it is more likely that your increased system partition size resulted in the data partition being too small to restore fully.
Did you make sure you did a 'wipe data factory reset' before restoring? since leftovers on the sd card could be causing problems too.
did you try 'fix permissions'?
(Always happy to be proven wrong, of course, i'm no great mind when it comes to android, but i'm ((fairly) sure ive restored to larger partitions before)
Click to expand...
Click to collapse
Yes i did fix permissions and wipe data/cache and dalvik cache too.
When i was using the typhoon rom i had like 200something used internal memory. And some 37 left. Not exact figures. So roughly 240mb is available after the partition. When i increase the partition, less than 240 is available. Maybe thats the reason?. Im not too sure too. Lets wait for some expert guy
Sent from my HTC HD2 using xda app-developers app
adil1508 said:
Yes i did fix permissions and wipe data/cache and dalvik cache too.
When i was using the typhoon rom i had like 200something used internal memory. And some 37 left. Not exact figures. So roughly 240mb is available after the partition. When i increase the partition, less than 240 is available. Maybe thats the reason?. Im not too sure too. Lets wait for some expert guy
Sent from my HTC HD2 using xda app-developers app
Click to expand...
Click to collapse
I am no "expert guy" but I have proved your theory wrong because I had a jelly bean Rom installed with a 150 mb partition and backed it up. Then this afternoon I remembered I needed a number from a text I received on that rom. I had since already repartitioned my phone to 250 mb and flashed a sense 3.5 Rom. I just restores my back up of jb made in a smaller partition and worked like a charm. Don't know the logistics behind it, just know it works
rawdaddymagraden said:
I am no "expert guy" but I have proved your theory wrong because I had a jelly bean Rom installed with a 150 mb partition and backed it up. Then this afternoon I remembered I needed a number from a text I received on that rom. I had since already repartitioned my phone to 250 mb and flashed a sense 3.5 Rom. I just restores my back up of jb made in a smaller partition and worked like a charm. Don't know the logistics behind it, just know it works
Click to expand...
Click to collapse
Ok thanks for the clarification. Ill look into it again.
Meanwhile, i urge other members to share their experiences too. To confirm.
Sent from my HTC HD2 using xda app-developers app

[Help] How do I perform a proper Nandroid Backup with Link2SD installed with created

I'm just curious if the data will be backed up and restored in sdcard partition.
jeffcleds said:
I'm just curious if the data will be backed up and restored in sdcard partition.
Click to expand...
Click to collapse
Only if you use a kernel that has a cwm that can back up to sd-ext
From memory for stock rom whitexp kernel cwm can
Cm 11 kernel with cwm6 can
You will just have to try
marcussmith2626 said:
Only if you use a kernel that has a cwm that can back up to sd-ext
From memory for stock rom whitexp kernel cwm can
Cm 11 kernel with cwm6 can
You will just have to try
Click to expand...
Click to collapse
so. should i move apps into internal memory before i perform a nandroid backup?
jeffcleds said:
so. should i move apps into internal memory before i perform a nandroid backup?
Click to expand...
Click to collapse
Well you don't have to as long as you don't format sd-ext a nandroid backup wouldn't touch that partition unless the CWM is able to but it wouldn't get backed up or restored so if you changed roms and then restored your nandroid backup your sd-ext apps should still be there as long as that partition isn't formatted
But if you want to backup apps for if you change roms it's best to use titanium backup app
marcussmith2626 said:
Well you don't have to as long as you don't format sd-ext a nandroid backup wouldn't touch that partition unless the CWM is able to but it wouldn't get backed up or restored so if you changed roms and then restored your nandroid backup your sd-ext apps should still be there as long as that partition isn't formatted
But if you want to backup apps for if you change roms it's best to use titanium backup app
Click to expand...
Click to collapse
thankyou sir. pressed
i get it now. so i'll just not configure anything on sd-ext then.
so, after restoring the nandroid backup. i will relink the application files again?
jeffcleds said:
so, after restoring the nandroid backup. i will relink the application files again?
Click to expand...
Click to collapse
Nope they will already be there unless you have updated the app since making the backup

Categories

Resources