SOLVED Backup EXT3 Partition - G1 Q&A, Help & Troubleshooting

I've got a new 8GB card, and I want to transfer my stuff from my 2GB card.
so they way I see it I have to:
1: backup rom using cyanogens recovery
2: backup backup onto computer
3: backup data using mybackup
4: backup this backup onto computer!
5: SDparted the sd card, (do I need to create a swap? if so how much?)
6: transfer the apps partition to the new partition using adb or terminal, (do I just use this?
To backup your sd partition:
Code:
tar -cvvzf /sdcard/systemsdbackup.tar.gz /system/sd/
and then take the file off your sdcard and copy it to your new one.
To restore your sd partition:
Code:
tar -xvvzf /sdcard/systemsdbackup.tar.gz -C /system/sd/
Or you could just adp pull system/sd \computerdirectory
then cd to computerdirectory and adb push it to system/sd again.
7: then run the permissions thing
8: install rom
9: install the backups
am I missing anything?
cheers

im having real trouble with this guys!
i formatted the sd card, parted it, put all the stuff that was on the 2GB card on the newly partitioned 8GB, but i still cant get the ext3 partition backed up.
i cant seem to use terminal i just get adb:not found
can someone give me the terminal commands please!
thanks

do u have ubuntu if u do u can just copy everything off of ur old ext3 then paste to the new one

no im using windows vista.
I got it to work in the end but it didnt copy all of my apps!

Well that stinks
Doesn't ubuntu sound like an ethnic dish?
It's yummicous and is key to getting your computer's daily value of essential vitiams and minerials
Or.........
A ubuntu a day keeps the windows viruses at bay
Just a thought

Im really strugling here!
i've backed up my ext3 partition using adb.
i'm putting this ext3 partition on my new card, but its seems to be stalling when getting to the dalvik cache, its not doing anything after this.
also when I restarted my phone (thinking it might have finished) i get FC's on some of my apps.
i ran the fix_permissions script but it doesnt seem to be helping.
any ideas??

Put back in old card, appmanager or backup for root users, backup the apks
Put in new card, clean off your ext3 and reinstall apks using either of the before
mention apks

thanks man!
all sorted!

i like it when people say that there problem is solved. It makes you feel all warm and tingily inside, opps wait. nevermind i just have to pee

gridlock32404 said:
Well that stinks
Doesn't ubuntu sound like an ethnic dish?
It's yummicous and is key to getting your computer's daily value of essential vitiams and minerials
Or.........
A ubuntu a day keeps the windows viruses at bay
Just a thought
Click to expand...
Click to collapse
lol both r very true. i had it on my pc b4 it died becuase of lame as windows. a soon as i buy a new laptop, netbook, or pc guess what will be my os of choice

Hey I am in the same boat, windows chewed up my power supply so it was already messed up before I put on ubuntu. Now I am burned out so my choice of os is gonna be the same as yours

Related

Question - migrating memory cards

I'm currently using a 2GB MicroSD card with an apps2SD partition (Ext2) and a storage partition (FAT32)
I have a 4GB card that I'd like to move everything to. I could surely partition it the same way I did my 2GB card, but then it would be a blank, partitioned card. What's a good way to get all my apps and such moved over, as I'm running windows (which won't read the Ext2 partition)
Would Norton Ghost do it?
no try Ext2IFS_1_11a
can't remember where it is: if it doesnt work DL linux and boot into it from disc (no need to install) and copy onto disc from there...
Use linux.
plug in uSD card, do NOT mount. If it automounts, UNMOUNT it. Check device name "tail dmesg".
If device name is for example, sdb, then copy contents to hard disk;
"dd if=/dev/sdb of=~/sdbackup" -- this will create a file in your home directory called "sdbackup".
pull card, insert new card. If it mounts, unmount it. Again check device path.
"dd if=~/sdbackup of=/dev/sdb"
Now pull card, the data on the new card mirrors the old card. Plug back in. Note: we pull and then reinsert to make sure that the kernel reloads the partition table. There are other ways of forcing this, but this is the easiest and most fool-proof.
You have unpartitioned free space at the end of the card.
Use a combination of "parted" and "resize2fs" to resize/move partitions, or just use gparted to handle these operations graphically.
jook11 said:
I'm currently using a 2GB MicroSD card with an apps2SD partition (Ext2) and a storage partition (FAT32)
I have a 4GB card that I'd like to move everything to. I could surely partition it the same way I did my 2GB card, but then it would be a blank, partitioned card. What's a good way to get all my apps and such moved over, as I'm running windows (which won't read the Ext2 partition)
Would Norton Ghost do it?
Click to expand...
Click to collapse
Thanks for your help.
lbcoder said:
Use linux.
plug in uSD card, do NOT mount. If it automounts, UNMOUNT it. Check device name "tail dmesg".
If device name is for example, sdb, then copy contents to hard disk;
"dd if=/dev/sdb of=~/sdbackup" -- this will create a file in your home directory called "sdbackup".
pull card, insert new card. If it mounts, unmount it. Again check device path.
"dd if=~/sdbackup of=/dev/sdb"
Now pull card, the data on the new card mirrors the old card. Plug back in. Note: we pull and then reinsert to make sure that the kernel reloads the partition table. There are other ways of forcing this, but this is the easiest and most fool-proof.
You have unpartitioned free space at the end of the card.
Use a combination of "parted" and "resize2fs" to resize/move partitions, or just use gparted to handle these operations graphically.
Click to expand...
Click to collapse
Are these directions explicit/comprehensive? Will I need to partition first? I don't know very much at all about linux, but I've got an ubuntu cd downloading. I've poked at it a little before - I can at least get a terminal and follow your directions, if this is all there is to it.
edit
I'm trying copying things manually in ubuntu's file.. explorer.. thingy. Then I'll partition the new memory stick with gparted and copy the files there.
This seems more natural to me, since I'm not familiar with command-line operations much anyway. Personally, I don't see why it won't work.
edit again:
I don't have permission to copy the folders "app" "app-private" or "dalvik-cache"
How can I do this?
edit edit again
google found me a "sudo nautilus" command which seems to open a file browser window with more permissions. I still can't actually copy the folders I mentioned before, but I recreated them in my backup location and I can copy the contents. Maybe this will take care of it.
update:
nope, that worked for "app" and some (but not all) of "dalvik-cache" but not "app-private"
How do I gain permission to copy it?
I'm willing to go back to the terminal, but I get an error on the tail command. There's nothing found, or somesuch. Sorry, I meant to copy the message exactly but I forgot before I rebooted the computer I was doing it with.
Can anybody help me out a little more with this?
The error I get right off the bat is "tail: cannot open 'dmesg' for reading: no such file or directory"
The only access to linux I have is an ubuntu live CD
Code:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
[email protected]:~$ tail dmesg
tail:cannot open `dmesg' for reading: No such file or directory
[email protected]:~$ _
MontAlbert said:
no try Ext2IFS_1_11a
can't remember where it is: if it doesnt work DL linux and boot into it from disc (no need to install) and copy onto disc from there...
Click to expand...
Click to collapse
How do I make use of this? It sounds like it should make Ext2 partitions appear in Windows Explorer just like anything else...
I installed it, but the Ext2 partition still doesn't show when I plug in the SD card. Do I need to do something particular?
I have rebooted.
Can anyone please give me more information on this, please? I've been poking at it different ways and still can't get it to work. Who knows something I don't?
jook11 said:
Can anyone please give me more information on this, please? I've been poking at it different ways and still can't get it to work. Who knows something I don't?
Click to expand...
Click to collapse
Code:
dmesg | tail
All the information to do this has been stated in this thread by now.

questions on nandroid and new sdcard...

ok so im on the latest JF rom with appstosd. everything is working great and i'm actually on the stock sd card partioned obviously. I was wondering, if I buy a bigger SD card and partion it, how would i go about making this new sd card exactly like the old sd card? would I make a nandroid backup of the old sdcard and then restore it on the new sdcard? could someone help me with this? is there extra steps i need to take to make the new sdcard just like the old one?
Thanks,
Boricua_Ace
Please try and search before posting a new thread. We all had to read way more than we wanted to figure this stuff out, there's no reason you shouldn't either.
To answer your question.
NANDroid doesn't touch your sdcard except to place the backup of your phone on it. You'll need a linux machine or adb to do what you want. If you're using linux it should be self explanatory. If you're using adb, try this:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
reformat your new card using whatever method you used for the stock card.
adb /push app /system/sd/app
adb /push app-private /system/sd/app-private
i did search for what i was looking for specifically but need not come back with good results. thanks for the info! and i do not have a linux machine so i will be using adb which i have.
after i do those steps, do i then restore a backup from nandroid on the phone? i would also have to use apps2sd app again correct? and do i also moved everything from the Fat32 to the new sd card?
If all you're doing is replacing the sdcard and not wiping your phone (alt-w), then those are the only steps you'll have to take.
Considering all of the hybrid ways to get apps2sd i can see how this could be confusing. I'd suggest using just the sdsplit script to repartion/format your card since you probably used marcusmaximus's app to do it all initially.
Oh, and yes, you'll need to copy the stuff off of your fat32 and move them to a tempory folder on your pc too. Just copy it all back manually once it's repartitioned.
great thanks! i actually used partion manager to partion the old card. So i'll do it that way again. works for me. just wanted to make sure i dont miss any steps. i will not be wiping the phone. i'll also have to adb the dalvik-cache since i do have that on the old card correct?
No point in moving dalvik-cache since it will recreate itself anyway.
Just make sure, if you're using unionfs instead of symlinks, that you create the /system/sd/dalvik-cache directory before you reboot your phone.
thanks for all your help and patience in answering my questions. really appreciate it.
last question, im using the old appstosd app not appstosd 2 app. i believe this app uses symlinks correct?
boricuaace said:
last question, im using the old appstosd app not appstosd 2 app. i believe this app uses symlinks correct?
Click to expand...
Click to collapse
Unfortunately, I don't remember. I think that's correct, but you'd have to read through that thread to be sure.
I don't think symlinks are that picky and creating the /system/sd/dalvik-cache directory before you boot the phone with the new card will work in either case.
Someone should correct me if I'm wrong.
great, thanks again!
no problem. Good luck.

Removed SD Card

Sorry if this has been adressed before, but i did use the search and i cannot quite figure out what to do next. I might have dropped my phone the other day, and since then none of my apps run from the SD becase it thinks that it was ejected. So, i wiped and installed a clean JackXrom again, and it was fine for about 20 min, then phone locked up, and when i restarted, i get the same problem. Should i format the partitions on the card perhaps? I was trying to avoid that, so any work around would be helpfull.
Latest radio, spl. Class 6 8 gig SD card.
Thanks.
te5ter said:
Sorry if this has been adressed before, but i did use the search and i cannot quite figure out what to do next. I might have dropped my phone the other day, and since then none of my apps run from the SD becase it thinks that it was ejected. So, i wiped and installed a clean JackXrom again, and it was fine for about 20 min, then phone locked up, and when i restarted, i get the same problem. Should i format the partitions on the card perhaps? I was trying to avoid that, so any work around would be helpfull.
Latest radio, spl. Class 6 8 gig SD card.
Thanks.
Click to expand...
Click to collapse
sounds like a corrupted partition try repair ext file systems if that dosent work youve got to format partition and reinstall all apps.
btw does youre fat32 partition work?
te5ter said:
Sorry if this has been adressed before, but i did use the search and i cannot quite figure out what to do next. I might have dropped my phone the other day, and since then none of my apps run from the SD becase it thinks that it was ejected. So, i wiped and installed a clean JackXrom again, and it was fine for about 20 min, then phone locked up, and when i restarted, i get the same problem. Should i format the partitions on the card perhaps? I was trying to avoid that, so any work around would be helpfull.
Latest radio, spl. Class 6 8 gig SD card.
Thanks.
Click to expand...
Click to collapse
If it only happened once it shouldn't be an issue, but if it does it wouldn't hurt to format your ext.
In recovery
mount -o rw /dev/block/mmcblk0p2 /system/sd
rm -r /system/sd/*
I tried repairing my ext, no luck.
Whenever i try to mount in recovery console i get error : No such file or directory
te5ter said:
I tried repairing my ext, no luck.
Whenever i try to mount in recovery console i get error : No such file or directory
Click to expand...
Click to collapse
Sounds like you need to delete the partition and make a new one, as it can't be read. If you're going to use parted from you're phone then you'll probably have to start over and recreate fat (and linux-swap if you had one) too. If you're using paragon or Gparted you should be able to recreate just your ext.
I cant recall which tutorial i fallowed, but it was all done through the terminal or recovery. Could you possibly point me to the right thread?
AdrianK said:
Sounds like you need to delete the partition and make a new one, as it can't be read. If you're going to use parted from you're phone then you'll probably have to start over and recreate fat (and linux-swap if you had one) too. If you're using paragon or Gparted you should be able to recreate just your ext.
Click to expand...
Click to collapse
if you can remember the start and end of youre ext partition i think you can do this in parted by typing print then note down the start and end then type mkpartfs primary ext2 start - end
te5ter said:
I cant recall which tutorial i fallowed, but it was all done through the terminal or recovery. Could you possibly point me to the right thread?
Click to expand...
Click to collapse
Here you go, follow the second section.
http://android-simplicity.blogspot.com/2009/08/how-to-6-how-to-partition-your-sdcard.html
Everytime i try to mount in recovery i get "mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: device or resource busy"
I'm lost.
pull your battery our for 30 seconds or so. remove your sd card then reinsert it and then try again. if that doesnt work then do what the others guys have said and try to reformat your sd card and start from scratch.
AdrianK said:
Sounds like you need to delete the partition and make a new one, as it can't be read. If you're going to use parted from you're phone then you'll probably have to start over and recreate fat (and linux-swap if you had one) too. If you're using paragon or Gparted you should be able to recreate just your ext.
Click to expand...
Click to collapse
Actually, with Parted you can just rm and mkpartfs any partition you want without affecting the other partitions.
I bit the bullet and just formated all the partitions.
Thanks anyways guys.
My advice for next time or any body else reading would be to download a live CD for ubuntu or fedora or similar and boot your PC off that - it's graphical and v. easy.
Or just dump windows altogether and go for linux ;-)
Smiffy.
Lordsmiff said:
My advice for next time or any body else reading would be to download a live CD for ubuntu or fedora or similar and boot your PC off that - it's graphical and v. easy.
Or just dump windows altogether and go for linux ;-)
Smiffy.
Click to expand...
Click to collapse
Yeah Gparted is amazing problem is then you have to walk the person through downloading, burning the image...which can be painful.
This is still happening, fresh format on sd card partitios and a wipe and clean install of Jacxrom.
Bad sd card? Or the phone?
JACxROM [v1.3]
I am attempting to flash to this ROM. Everything seems to go as describen in other posts, but when I power up the phone, I never make it past the splash screen. Any thoughts??
sorry
Sorry I posted this in the wrong place, I will move it.
rberger13 said:
I am attempting to flash to this ROM. Everything seems to go as describen in other posts, but when I power up the phone, I never make it past the splash screen. Any thoughts??
Click to expand...
Click to collapse
Bump, dead SD card?
partition corrupted anyway to recover?
I need help please!
I was running cyanogen 4.0.3.1 just installed today morning then changed theme to enoch 1.12 the newest one that worked fine. Updated the browser to loccys Then installed the HTC music and when finally rebooted the phone it was working fine until I noticed I had none of my apps on the sdcard.
All I have is syste/app folder which runs internally I think everything else does not work. It's like my sdcard is not in.
I shutdown rebooted and waited. Then removed sdcard rebooted and inserted the card one fully powered on and it is saying it wants to format it.
I get home turn my ubuntu system on and it detects it as a ext3 partition yet nothing inside. and now no fat32 partition or linux-swap.
anyways to recover or am I SOL?

How do i Backup my Apps2SD via Windows?

I just got my 8gb SDHC class 6 card, but i've no idea how to backup my apps2sd ext partition over since i'm having Windoughs Se7en :X.
Anyone got any ideas?
Phone : Nexus one AmonRA root/ Enom's TheOfficial Rom
Download astro file manager n use dat to backup all ure apps...thats what I did anyways..
After that, copy everything to ure desktop
I usually use amon_ra's recovrey mode to do a nandroid+ext backup+titanium
RinTinTigger said:
I usually use amon_ra's recovrey mode to do a nandroid+ext backup+titanium
Click to expand...
Click to collapse
Best answer so far :]
Thanks everyone, i finally managed it.
But i did it without titanium.
Here's what i did :
Boot to recovery, do a nandroid backup + ext
return to phone mode, MOUNT while on USB, copy all contents out to NEW Micro SD card (Via card reader or w/e you have handy. if not, just copy it to windows first then to your NEW card after you swapped it).
After that, swap the cards (of course, the new card needs to be partitioned if you want to use APPS2SD) into the phone and start in Recovery.
Nand restore, then just start the phone as usual
Or you can use ADB:
adb pull /sd-ext/* C:\SDBACKUP
(think that's right)
This should copy all the files in the ext partition of your SD card to folder SDBACKUP on the C: drive. You can later 'push' them back using:
adb push C:\SDBACKUP\* /sd-ext/
drewstiff said:
Or you can use ADB:
adb pull /sd-ext/* C:\SDBACKUP
(think that's right)
This should copy all the files in the ext partition of your SD card to folder SDBACKUP on the C: drive. You can later 'push' them back using:
adb push C:\SDBACKUP\* /sd-ext/
Click to expand...
Click to collapse
adb pull /sd-ext/ c:\sd-ext-backup\
worked for me, havent tried pushing back

How to install data partition on sdcard partition

I install a lot of application so I constantly run out of space on NAND. So I tried to install Myn's Warm Donut using the following method so the system stuffs will be on NAND and the data will be on the sdcard. It is slower but I can install lots of applications now.
Requirement:
-You have to have Myn's Warm Donut or other android rom installed already on NAND. This means that both the system and the data is on NAND.
-A USB reader for your micro sdcard
Overview:
The main steps are 1) install adb 2) partition your sdcard into three partitions 3) reinstall the rom.
Steps:
1- Install the Android SDK here http://developer.android.com/sdk/index.html. This will give you the adb tool which is a remote terminal program. You will have to locate the adb binary to run it.
2a- Connect you vogue to the desktop. Make sure that USB debug is enable on the vogue. It should be by default.
2b- Run the adb:
Code:
adb shell
2c- Repartition the sdcard using parted. You need some experience with parted which is very popular in linux. Remember, this step will destroy the data on the sdcard.
Code:
parted /dev/block/mmcblk0
print
At this point you should see the list of all partitions on the sdcard. For most of you, there will be one partition. Remove all the partition using the rm command with the partition number.
Code:
rm 1
Now your print should return empty. So create three partitions using the following commands. Basically, you want three partitions. The first one is your sdcard folder which you always had. The third one is for your data. The second one is just filler because the current installer only install to the third partition.
Code:
mkpartfs primary fat32 0 6500
mkpartfs primary linux-swap 6500 6756
mkpartfs primary ext2 6756 8168
set 1 lba
Note that the size is depended on you. I want around 6.5GB on my 8GB card to be the sdcard partition for musics and videos. So what's left is around 1.5GB for the data partition. I just give the filler 256MB so maybe I can do something with it later. The partition number might be different with other rom. You have to play with it.
After this step you should see something like this when you do print:
Code:
Number Start End Size Type File system Flags
1 32.3kB 6500MB 6500MB primary fat32 lba
2 6500MB 6756MB 256MB primary linux-swap(v1)
3 6756MB 8168MB 1412MB primary ext2
Now you can quit parted and exit the console by:
Code:
quit
exit
3a-Turn off your phone and put the sdcard into a USB reader so you can copy the andboot installation files over.
3b-Put the card back, run the installer and choose the data on sdcard option. You should be good to go.
As you usual, you are solely responsible for your phone and your data.
Hope this helps.
I have another solution in the works that will solve the out-of-space on data very easily on ANY build and also have some other nice advantages: http://forum.xda-developers.com/showthread.php?t=750768
So you put the apps on to ext2 partion and the data stay in NAND? In that case it would be better. The problem for the vogue is that the installer on the Myn's rom only put everything on the data partition on to an ext2 partition. On the vogue other rom is slow IMO. Maybe someone can separate the data and apps in the next build?
Anyway, do you know how can I extend the system partition so it can span to 256MB? Right now it is only 128MB because the data presumably should extend the other 128MB.
kallt_kaffe said:
I have another solution in the works that will solve the out-of-space on data very easily on ANY build and also have some other nice advantages: http://forum.xda-developers.com/showthread.php?t=750768
Click to expand...
Click to collapse
Hi csbert,
I am new to ADB. When I typed adb shell, I got device not found. Maybe I need a driver or something? thanks
update: I think I found the instruction on how to obtain the usb driver, going to try now
When you connect to vogue to your computer, it has to say "USB debugging connect". If it doesn't, maybe you need to enable USB debugging in Settings -> Application Settings -> Development.
Cookiekaikai said:
Hi csbert,
I am new to ADB. When I typed adb shell, I got device not found. Maybe I need a driver or something? thanks
update: I think I found the instruction on how to obtain the usb driver, going to try now
Click to expand...
Click to collapse
partition program
i am looking for a good free partition program for windows xp that can partition my sd card from a card reader
i have used paragon partition but it always ask to restart the pc and then partitions the sd from there
i have had it causes my laptop to crash twice now and both time had to have a friend repair my laptop
i am looking for a program that can partition the sd with out restating the computer if that is possible
thank you
nate
Hi,
I don't think you can partition the sdcard for the phone using an xp computer. That's why I wrote this instruction. The partition android uses is from linux. You can try a linux machine but i heard that doesn't work. You can still connect to the phone using adb and format the sdcard as I explained.
Cheers
evilclosetmonkeynate said:
i am looking for a good free partition program for windows xp that can partition my sd card from a card reader
i have used paragon partition but it always ask to restart the pc and then partitions the sd from there
i have had it causes my laptop to crash twice now and both time had to have a friend repair my laptop
i am looking for a program that can partition the sd with out restating the computer if that is possible
thank you
nate
Click to expand...
Click to collapse
evilclosetmonkeynate said:
i am looking for a good free partition program for windows xp that can partition my sd card from a card reader
i have used paragon partition but it always ask to restart the pc and then partitions the sd from there
i have had it causes my laptop to crash twice now and both time had to have a friend repair my laptop
i am looking for a program that can partition the sd with out restating the computer if that is possible
thank you
nate
Click to expand...
Click to collapse
You could boot from a Live CD of any Linux distro. Or download and burn Gparted Live CD, all free

Categories

Resources