Create New Swap...? - G1 Q&A, Help & Troubleshooting

How would I upgrade my linux Swap to say 96mb without erasing SD card?
I know there is a way I saw the thread before but now I can't find it.
Thanks
Nick
Also is there a way to upgrade to ext3 or 4 without deleteing content on sd card?
If there is not a way to do this part how would I take apps off sd card and then push them back onto sd card so they run as if installed once again?
Considering I have to re format sd card in order to upgrade to ext3 or 4.
I'm doing my friends sd card for him and he doesnt want to re install apps and plus its knowledge I would like to know
Thanks,
Nick

You would use the resize command in parted to change the swap size. Also, if you use RA's 1.3.2 recovery, you can easily upgrade to ext4 without losing anything
none of the above should cause dataloss as long as its done right

bansawbanchee said:
How would I upgrade my linux Swap to say 96mb without erasing SD card?
I know there is a way I saw the thread before but now I can't find it.
Thanks
Nick
Also is there a way to upgrade to ext3 or 4 without deleteing content on sd card?
If there is not a way to do this part how would I take apps off sd card and then push them back onto sd card so they run as if installed once again?
Considering I have to re format sd card in order to upgrade to ext3 or 4.
I'm doing my friends sd card for him and he doesnt want to re install apps and plus its knowledge I would like to know
Thanks,
Nick
Click to expand...
Click to collapse
If you can, look in to loading an Ubuntu or Gparted live CD. It's makes everything soooo much easier than using parted, and it will allow you to do everything you asked about.

Is moving to 96 a larger or smaller partition than what you have now? And if it is larger, do you have the space to resize it w/o disturbing the other partitions?

PsychoPomp said:
Is moving to 96 a larger or smaller partition than what you have now? And if it is larger, do you have the space to resize it w/o disturbing the other partitions?
Click to expand...
Click to collapse
I am at 32mb on this specific sd card now. I would like to change it to 64mb and if it runs smoothly change it to 96mb and see how that goes.
-I would prefer to do everything on the phone directly and not on computer.
where could I find these commands in order to change my swappyness?
-I have 2gb ext2 and the rest fat32 on an 8gb card. 32 mb is swap.
-I want to upgrade ext2 to ext4 and then swap from 32mb to 64 mb.
-I want to do all of this without using computer and only parted.
-Also if it happens to be easier to reformat and do it the original way through parted than fine but then where could I find the commands to push apps from root of sd card to the apps2sd area that cyan pulls them from so I dont have to reinstall all apps. I have over 260 apps on this card that are installed and it would be a pain to install agian.
Thanks,
Nick

Related

1 fried SD card - A2SD

First of all, I normally don't post new threads. I've been using this site for a long time, and have always found the answers I need by simply searching and reading. I have searched, and read a lot, but have not found answers that I believe will help my specific problem. So here goes, thank you.
I am running CyanogenMod-4.0.4. I had A2SD set up on a 16GB micro SD card, using the sdparted utility. Everything worked perfectly for about 2 weeks, then my phone suddenly froze up. Pulled the battery, but it would not boot past the "T-Mobile G1" screen. I removed the SD card and everything was fine. I tried to repartition the card using both Mac Disk Utility and Gparted, then tried to set up a new partition table, but I got a corrupted filesystem error each time. That's old news, I've wiped my phone and found a new card, so now I need to know if I can safely set up A2SD.
The card is a 16GB Sandisk micro SD card - class 2.
I've done some reading suggesting that I do not need a linux-swap partition. Can I do this with just a Fat32 and ext3/4 partitions? Or because the card is class 2, do I need the swap?
Thanks again.
Swap is for the OS, not applications on the sd card. The only reason I use swap is for Hero, I have yet to go back to a donut filled cupcake rom with it on.
A2SD is pretty safe for the card, it's swap that you take the risk of shortening the lifespan of the card.
I assume you have cyan's recovery image, you should try to partition the card with parted instead of a computer utility. I really don't think a2sd is the reason for the card failure.
Your old card should still be under warranty.
I've done some reading suggesting that I do not need a linux-swap partition. Can I do this with just a Fat32 and ext3/4 partitions? Or because the card is class 2, do I need the swap?
Click to expand...
Click to collapse
Swap is not related to apps2sd, they are completely separate entities. "because the card is class 2" swap probably isn't a good idea, since it will likely be slow.
Apps2sd isn't particularly taxing to the SD card, particularly with ext2, writes are most damaging to a flash device.
Awesome. Thanks for the quick reply guys. I think I'll go ahead and use the sdparted utility to set up a partition for my apps, but leave off the swap.
Thanks again.

I'm using a 1gb sd card with dwangs superD and it is partitioned, but.....?

This is probably a dumb question. Do I need to do anything different to enable it to utilize the sd card to run apps off of it or is it built in? I read that cyanogen's rom was built in like that. I keep downloading apps and I don't want to run out of memory on the phone. Do I need to do anything to also use the sd card as ram?
I am using SuperD and jus partation your SD card and should all go well
Yeah it is working fine.
ilostchild said:
I am using SuperD and jus partation your SD card and should all go well
Click to expand...
Click to collapse
I was just wondering if I need to do something different or is it automatically using the sd card as ram and runing apps off of it.
jeffrimerman said:
I was just wondering if I need to do something different or is it automatically using the sd card as ram and runing apps off of it.
Click to expand...
Click to collapse
What do you mean by "something different" Different from what? In order for CM to automatically do apps2SD you need to have an EXT partition as your second partition. This can be an EXT2, EXT3 or EXT4 type partition and can be easily created by using the latest Amon_Ra Recovery Image (available here http://forum.xda-developers.com/showthread.php?t=566669).
Nothing else is needed. I see most signatures showing 512MB of EXT partition. I use the same and it has been more than enough for me.
Also, it is recommended that you use a class 6 SD card because the class 2 that came with the phone may not be fast enough and may cause some lag.
Thanks QMAN.
QMAN101 said:
What do you mean by "something different" Different from what? In order for CM to automatically do apps2SD you need to have an EXT partition as your second partition. This can be an EXT2, EXT3 or EXT4 type partition and can be easily created by using the latest Amon_Ra Recovery Image (available here http://forum.xda-developers.com/showthread.php?t=566669).
Nothing else is needed. I see most signatures showing 512MB of EXT partition. I use the same and it has been more than enough for me.
Also, it is recommended that you use a class 6 SD card because the class 2 that came with the phone may not be fast enough and may cause some lag.
Click to expand...
Click to collapse
I think you answered my question perfectly. When I put the Dwang rom on and updated to Amon Ra Recovery Image I followed instructions that had me partition the sd card and put ext2 or ext3 type partition. If I buy a class 6 SD card I imagine I can just partition it and put it in.
So to be clear, does then enable the apps to run off the sd card or to install onto the sd card and run off the card also? I mean is it using the sd card as some sort of ram or is it just using it as more of a hard drive? I'm going to guess it is just as a hard drive. I didn't designate anywhere to tell the phone to use the sd card as the installation place for apps. That's why I am kinda wondering.
Thanks
jeffrimerman said:
I think you answered my question perfectly. When I put the Dwang rom on and updated to Amon Ra Recovery Image I followed instructions that had me partition the sd card and put ext2 or ext3 type partition. If I buy a class 6 SD card I imagine I can just partition it and put it in.
So to be clear, does then enable the apps to run off the sd card or to install onto the sd card and run off the card also? I mean is it using the sd card as some sort of ram or is it just using it as more of a hard drive? I'm going to guess it is just as a hard drive. I didn't designate anywhere to tell the phone to use the sd card as the installation place for apps. That's why I am kinda wondering.
Thanks
Click to expand...
Click to collapse
It will both install on and run from sdcard. you don't have to enable anything.
dwang's rom does it automatically as long as you have the ext partition. His however does not support ext4.
Ok great.
djn541 said:
It will both install on and run from sdcard. you don't have to enable anything.
dwang's rom does it automatically as long as you have the ext partition. His however does not support ext4.
Click to expand...
Click to collapse
Is there a way to see how full the partitioned part of the sd card is getting? When I use settings I can see the fat 32 part I believe, and the internal phone memory. I have Astro, but I don't see an option to view the entire sd card's usage.
jeffrimerman said:
Is there a way to see how full the partitioned part of the sd card is getting? When I use settings I can see the fat 32 part I believe, and the internal phone memory. I have Astro, but I don't see an option to view the entire sd card's usage.
Click to expand...
Click to collapse
In rec mode goto console type...
parted dev/block/mmcblk0
print
this will tell you how much space is used by each partition
Is that what you want to know?
jeffrimerman said:
Is there a way to see how full the partitioned part of the sd card is getting? When I use settings I can see the fat 32 part I believe, and the internal phone memory. I have Astro, but I don't see an option to view the entire sd card's usage.
Click to expand...
Click to collapse
Go into settings and look under sdcard and phone storage.
djn541 said:
Go into settings and look under sdcard and phone storage.
Click to expand...
Click to collapse
Only cyan has that ,dwang doesnt use that.I think...
Ace42 said:
Only cyan has that ,dwang doesnt use that.I think...
Click to expand...
Click to collapse
With Dwang, you can still see 2 partitions, not all 3.
ok
Ace42 said:
In rec mode goto console type...
parted dev/block/mmcblk0
print
this will tell you how much space is used by each partition
Is that what you want to know?
Click to expand...
Click to collapse
That is exactly what I wanted to know. If I keep installing apps till it runs out of memory I'm guessing I won't know till it says it can't install anymore at some point.
Hey Djn I can't see the partitions with Dwang or do I need to specify something. I only see total space 449mb(i'm guessing that is the fat 32), available space 334mb. There is the internal phone storage section also.
this is what I see
number start end size type file system
1 512 472 472 primary fat 32
2 472 984 512 primary ext2
3 984 1016 31.8 primary linux-swap(v1)
So does it mean I've only used 40mb from fat32 section, but I believe I've used more than that? The ext2 part ended with more than it started, so does that mean when I partitioned it, the memory was increased? From number 3 it looks like 32mb was taken right off the top for ram?
jeffrimerman said:
That is exactly what I wanted to know. If I keep installing apps till it runs out of memory I'm guessing I won't know till it says it can't install anymore at some point.
Hey Djn I can't see the partitions with Dwang or do I need to specify something. I only see total space 449mb(i'm guessing that is the fat 32), available space 334mb. There is the internal phone storage section also.
Click to expand...
Click to collapse
Crap!, Ace is right, you can only see sd and internal with dwang, sorry about that. I haven't used dwang in quite some time.
P.S. Sorry Ace, My bad
Hey Ace
Ace42 said:
Only cyan has that ,dwang doesnt use that.I think...
Click to expand...
Click to collapse
Can you tell me what that info is telling me? It is a couple posts up. I understand the total sd card, -32 for swap yada yada. Just not sure if when it says "end" if that means that is what I have available now.
1 512 472 472 primary fat 32
2 472 984 512 primary ext2
3 984 1016 31.8 primary linux-swap(v1)
Block Start End
Well the above tells you what its for, and amount of space for each partition from starting point to end. 1 app is less than 3MB excluding games so if you have 150 apps you still have a good deal of space left.
Thanks Ace
Ace42 said:
1 512 472 472 primary fat 32
2 472 984 512 primary ext2
3 984 1016 31.8 primary linux-swap(v1)
Block Start End
Well the above tells you what its for, and amount of space for each partition from starting point to end. 1 app is less than 3MB excluding games so if you have 150 apps you still have a good deal of space left.
Click to expand...
Click to collapse
I don't put mp3s, so other than wanting a little faster load app speed with class 6 I am probably fine with my 1gb class 2 for now. I think most of the apps I have were less than 1mb. I imagine games are larger. If I happen to add mp3 and games will the phone warn me as I get close to filling up the sd card?
jeffrimerman said:
I don't put mp3s, so other than wanting a little faster load app speed with class 6 I am probably fine with my 1gb class 2 for now. I think most of the apps I have were less than 1mb. I imagine games are larger. If I happen to add mp3 and games will the phone warn me as I get close to filling up the sd card?
Click to expand...
Click to collapse
Music/vids/pics/docs will go onto the Fat32 partition...So your comp or phone will warn you that the FAt32 is full.

Replacing Old SD card.

[Solved]Okay, I currently have a 2gb (don't even know the brand) MicroSD in my rooted Dream/G1. I am running SuperD 1.10.2. I have Apps2SD setup already. I just bought a PNY 4gb Class 4 MicroSD yesterday and I want to use it. How do i transfer EVERYTHING to it? And will I have to re-install all the apps that were installed on the 2gb card?
Thanks, xKr4zex
Krician said:
Okay, I currently have a 2gb (don't even know the brand) MicroSD in my rooted Dream/G1. I am running SuperD 1.10.2. I have Apps2SD setup already. I just bought a PNY 4gb Class 4 MicroSD yesterday and I want to use it. How do i transfer EVERYTHING to it? And will I have to re-install all the apps that were installed on the 2gb card?
Thanks, xKr4zex
Click to expand...
Click to collapse
The possibilities.....
You could do it the hard way or the easy way.
Hard way is by using adb and do
command prompt
adb pull /system/sd /sdbackup/sd
and partition your new card using amon_ra recovery
then
command prompt
adb shell
mount -a
exit
cd c:\sdbackup
adb push sd /system/sd
and that should do it.
Easy way
Make a nandroid backup with ext,
save the contents of you sdcard (especially nandroid folder)
partition your new sdcard with amon_ra recovery with your desired ext partition,
restore your backups from your old card,
place new card in phone,
nandroid restore and reboot.
You should be good.
Thanks for the reply. I also wanted to know, if I already have apps2sd and Linux swap enabled, do I have to disable>power off>new card>restore>re enable apps2sd and Linux?
Krician said:
Thanks for the reply. I also wanted to know, if I already have apps2sd and Linux swap enabled, do I have to disable>power off>new card>restore>re enable apps2sd and Linux?
Click to expand...
Click to collapse
You shouldn't have to re-do anything once your partitions are in place.
If your card is setup like FAT/SWAP/EXT3 (using EXT3 for example) for card 1 then as long as your partitions are FAT/SWAP/EXT3 for card 2 then everything should work just fine. Even if your swap partition is a different size it should be alright. The only thing is that if card 1 (old card) EXT3 partition is 500mb and if you are using 300mb of that card you need to have 300mb+ on card 2 EXT3 partition so that all of your data can fit on there after you do your nandroid restore.
I did this method personally when I went from a 8gb to a 16gb.
Old card was 8gb composed of ~7gb (FAT)/64mb (swap)/500mb (ext3)
New card is 16gb composed of ~13gb (FAT)/96mb (swap)/1gb (ext3)
I simply performed a nandroid+ext backup
Backed up my entire sdcard onto my desktop (including nandroid directory)
Put the new card in and repartitioned with Amon_RA recovery as posted above.
Restored the data from my backup that was on my desktop
Performed a nandroid+ext restore
Done. Very easy.
Just do it. You'll be amazed how complicated your making this.
I just did this this morning before seeing this thread and i did exactly as it says here. I only encountered one problem...My Music playlists didnt transfer how do i get those? I still have my old sd card with all the stuff in it by the way.
Thanks! Solved.
Krician said:
Thanks! Solved.
Click to expand...
Click to collapse
Remember to edit the title of your original post with FIXED or SOLVED
kalpa11 said:
I just did this this morning before seeing this thread and i did exactly as it says here. I only encountered one problem...My Music playlists didnt transfer how do i get those? I still have my old sd card with all the stuff in it by the way.
Click to expand...
Click to collapse
I think there are third party apps that will do that. I'm not sure what file that is exactly.

Tips After Purchasing New MicroSD Card

OK, so I just upgraded to a Transcend 8GB Class 6 MicroSD card from the stock card that was included with the phone originally.
Now, my issue is I have it partitioned for APP2SD and such for Nightlys.
If I partition the new card, I know I'll obviously take all the base data off my old card and put it on the new one. Now, all the apps and stuff on my ext3 part of the card....
Should I just:
A) Do nandroid backup +ext, put new card in and restore (I'm just taking a shot in the dark and assuming this would work)
B) Other method?
Any advice would be great
Shoot, my apologies.
I posted this in the development section by mistake. I had too many tabs open!
Well i just recently got a 32GB card. All i done was any apps i had on the sd card i moved back to the phone. Backed-up anything i had on old card (mp3s, photos etc). Plugged in new sd card, formatted it then thats about it.
Only thing that changed was beautiful widgets, but all that had to do is download some little file again.
Also, when partitioning, how much do you suggest for ext3? I was thinking about 32MB SWAP, 256MB Ext3.....ext3 is used for apps, right?
Thanks.
uoY_redruM said:
Also, when partitioning, how much do you suggest for ext3? I was thinking about 32MB SWAP, 256MB Ext3.....ext3 is used for apps, right?
Thanks.
Click to expand...
Click to collapse
personally i don't think 256 is enough. i currently have 756 and have 100mb free.
you can just do a nandroid +ext backup and it will restore it correctly as all it does is tar the sd ext directories then extract them on restore. obviously the partition has to be larger or equal in size.
i didnt partition my card at all. Is that bad? Wont the phone do it when you format it?
zok-star said:
i didnt partition my card at all. Is that bad? Wont the phone do it when you format it?
Click to expand...
Click to collapse
Are you using the FroYo FAT method or the A2EXT method?
wdfowty said:
Are you using the FroYo FAT method or the A2EXT method?
Click to expand...
Click to collapse
?? No idea, i just formatted the card via the phone. so im guessing froyo fat?

[Q] Change the SD card partition of verygreen´s CM7 bootable SD card - How?

Hello,
Ok, first, the briefing:
I used verygreen´s Size-agnostic SD Card image and CM7 installer for SD Cards to run CM7 (installer 1.3 -> nightly 87 + gapps) on my nook. Works great. Kudos verygreen.
I tested 3 different SD cards to do so. Sadly, none of my Class 4 cards worked and only an old Class 2 2g Toshiba did the trick. Since I don´t intend to have a big fight with my wife about why I need to buy a 2nd. class 4 SD card this week, I am keeping the 2g Toshiba. (I know, I know, I should´ve bought a Sandisk Class 4 to begin with but they're a not easy to come by here in Brazil. At least, not a real Class 4).
And this is my problem:
The CM7 sees only 350 - 400 MB available in the "SD Card". That is hardly enough for HD games. Meanwhile, the "internal" memory has over 700 MB available.
What I'd like to do is:
Change the SD card partition to move some of the available space from the "internal" memory to the "SD card" on CM7.
Question:
Is it possible? How? Is it gonna mess up the CM7?
Alternatively, I was considering WobbleTheHutt method to swap SDcard and emmc. But, before I do it, I need to know if this method would affect the booting of the stock Nook. Does anyone knows?
Thnx.
I freaking did it!
I freaking did it! And it's running smoothly!
Ok! For those who want to give it a try.
First, I used Gnome Partition Editor for Windows to decrease the size of the EXT partition. Then, I used Minitool Partition Wizard Home edition to increase the FAT partition.
I actually created a image of my original SD card, just in case, but it was unnecessary since it didn't mess any of my data or apps. Still, as a security measure, I suggest who ever try this to also create a backup image of the original SD card.
santosacm said:
I freaking did it! And it's running smoothly!
Ok! For those who want to give it a try.
First, I used Gnome Partition Editor for Windows to decrease the size of the EXT partition. Then, I used Minitool Partition Wizard Home edition to increase the FAT partition.
I actually created a image of my original SD card, just in case, but it was unnecessary since it didn't mess any of my data or apps. Still, as a security measure, I suggest who ever try this to also create a backup image of the original SD card.
Click to expand...
Click to collapse
Hey! Nice idea.
I was looking for a method to backup my CM7(verygreen) SD card but I don't have a card reader with me currently.
Is is possible to backup complete SD card(all 4 CM7 partitions) using just the nook and windows??
P.S. I have Clockworkmod recovery installed onto emmc, if it's possible through that?
thanks.
santosacm said:
I freaking did it! And it's running smoothly!
Ok! For those who want to give it a try.
First, I used Gnome Partition Editor for Windows to decrease the size of the EXT partition. Then, I used Minitool Partition Wizard Home edition to increase the FAT partition.
I actually created a image of my original SD card, just in case, but it was unnecessary since it didn't mess any of my data or apps. Still, as a security measure, I suggest who ever try this to also create a backup image of the original SD card.
Click to expand...
Click to collapse
Why didn't you use GPE for both steps? I use it all the time and it works fine.
____________________________________________________
Sent from NookColor CM7 uSD using Tapatalk

Categories

Resources