A new SD card - G1 Q&A, Help & Troubleshooting

My HTC Dream currently holds 4.2.5 cyan rom. I would like to change to a higher capacity SD card. Can I just plug in the SD card right away and start using? Is the 4.2.5 cyan rom installed to the phone storage or the SD card?
Do I need to first format the SD card before I use it and if so, format to what version?

are you using apps2sd? If you are not, just plug in the sd card and go. If you are, you are going to need to partition it and reflash more than likely. The rom is stored on the phone, but apps, if you are using apps2sd, is obviously on the sd card, as well as some other things that could prevent it from starting up after the switch.

Yeah using apps2SD, so how should i go about using this new SD card to my phone?

format your new sdcard and copy over all the files from the ext off the old card

Format to which format? Fat32 or?
Erm how do I copy over all the files from the ext off the old card?
Sorry, a noob here.

format the new sd card to have both an FAT32 and EXT3
to backup/restore, you can get an ext viewer such as paragons EXTfs (free) just copy and paste to the new sdcard

B-man007 said:
format the new sd card to have both an FAT32 and EXT3
to backup/restore, you can get an ext viewer such as paragons EXTfs (free) just copy and paste to the new sdcard
Click to expand...
Click to collapse
Sorry, can I check with you, how to format the new sd card to have both an FAT32 and EXT3?
This application paragons EXTfs is a windows application?

Why don't you just format your new sdcard with the Amon_Ra recovery?
Just thinking out loud here and trying to keep it as simple as possible.
Here is what I would do:
Install Amon_Ra recovery (see my signature for the link)
Go to console and enter "switchrom -s YOURROMNAMEHERE"
Wait until it finishes then reboot back into recovery again.
Mount the SDCARD to your computer and copy the directories (to include the switchrom directory) then unmount the card. No need to unplug it yet from the usb port on the computer.
Remove the old SDCARD and replace it with your new (blank) one.
While in the recovery main menu select "Partition" and then "Partition SD".
This should make your FAT32/ext2 partition.
After that has completed mount the SDCARD to the computer and copy the old sdcard data to your new card (FAT32 partition).
Unmount the SDCARD and go to console again.
Type "switchrom -r YOURROMNAMEHERE"
After it has completed then you should now have your app and app_private directories on your EXT2 parition. If you need to convert ext2 to ext3 or 4 simply select those options from the partition menu in the recovery.
If you have anything else stored to your old sdcard's ext partition just adb pull those files. (adb pull /system/sd \backupdirectory)
I think that is probably the easiest way. Just my opinion/advice.

Binary100100 said:
Why don't you just format your new sdcard with the Amon_Ra recovery?
Just thinking out loud here and trying to keep it as simple as possible.
Here is what I would do:
Install Amon_Ra recovery (see my signature for the link)
Go to console and enter "switchrom -s YOURROMNAMEHERE"
Wait until it finishes then reboot back into recovery again.
Mount the SDCARD to your computer and copy the directories (to include the switchrom directory) then unmount the card. No need to unplug it yet from the usb port on the computer.
Remove the old SDCARD and replace it with your new (blank) one.
While in the recovery main menu select "Partition" and then "Partition SD".
This should make your FAT32/ext2 partition.
After that has completed mount the SDCARD to the computer and copy the old sdcard data to your new card (FAT32 partition).
Unmount the SDCARD and go to console again.
Type "switchrom -r YOURROMNAMEHERE"
After it has completed then you should now have your app and app_private directories on your EXT2 parition. If you need to convert ext2 to ext3 or 4 simply select those options from the partition menu in the recovery.
If you have anything else stored to your old sdcard's ext partition just adb pull those files. (adb pull /system/sd \backupdirectory)
I think that is probably the easiest way. Just my opinion/advice.
Click to expand...
Click to collapse
I don't have adb installed, that's why.

bryant_16 said:
I don't have adb installed, that's why.
Click to expand...
Click to collapse
Setup ADB on your computer
Use terminal and copy the directories on your ext
Maybe consider a root file directory application (I suggest SUFBS it's a paid app but very much worth it.)

How do you setup ADB?
Compared to the earlier method, which one will be faster and easier?
Sorry, a noob here.

Look. i'm not trying to be rude but you really need to read links like:
***Informative Links*** - Read before clicking "New Thread"
and if you were to do that instead of using the "noob" excuse (hard to be a noob when you've been using this forum since 2007... but whatever. Not judging.) you would come across this:
[HOW-TO] ADB for Dummies(How-To Learner's Guide)
So... yeah. I'm finished helping for the night. Good luck. No more spoons.

So should I use adb or?

Binary100100 said:
Why don't you just format your new sdcard with the Amon_Ra recovery?
Just thinking out loud here and trying to keep it as simple as possible.
Here is what I would do:
Install Amon_Ra recovery (see my signature for the link)
Go to console and enter "switchrom -s YOURROMNAMEHERE"
Wait until it finishes then reboot back into recovery again.
Mount the SDCARD to your computer and copy the directories (to include the switchrom directory) then unmount the card. No need to unplug it yet from the usb port on the computer.
Remove the old SDCARD and replace it with your new (blank) one.
While in the recovery main menu select "Partition" and then "Partition SD".
This should make your FAT32/ext2 partition.
After that has completed mount the SDCARD to the computer and copy the old sdcard data to your new card (FAT32 partition).
Unmount the SDCARD and go to console again.
Type "switchrom -r YOURROMNAMEHERE"
After it has completed then you should now have your app and app_private directories on your EXT2 parition. If you need to convert ext2 to ext3 or 4 simply select those options from the partition menu in the recovery.
If you have anything else stored to your old sdcard's ext partition just adb pull those files. (adb pull /system/sd \backupdirectory)
I think that is probably the easiest way. Just my opinion/advice.
Click to expand...
Click to collapse
Hi there, is adb absolute necessary here?

Related

App2sd with more than one card?

I installed Cyanogen´s last version, and did a ext3 partition in my sd card...
All work fine, and now I have apps in sd card, BUT...when I try to change the card for another one, the phone hangs....
I can´t activate or deactivate sd card like I did when no app2sd before change it, because the option is disabled in settings and secondary sdcard is show with all ext3 space...
I have a lot of multimedia files and need more than one sd card, so... is not possible to change the sd card when you configured the phone for app2sd?
josepz said:
I installed Cyanogen´s last version, and did a ext3 partition in my sd card...
All work fine, and now I have apps in sd card, BUT...when I try to change the card for another one, the phone hangs....
I can´t activate or deactivate sd card like I did when no app2sd before change it, because the option is disabled in settings and secondary sdcard is show with all ext3 space...
I have a lot of multimedia files and need more than one sd card, so... is not possible to change the sd card when you configured the phone for app2sd?
Click to expand...
Click to collapse
because Cm rom automatically move your app, app-private, lost+found & dalvik-cache to your SD and when you boot your phone with a different SD it will definitely freeze because you don't have you dalvik-cache in ext partition
its a chicked & egg problem. Does anybody know if the phone can be connected to a computer when in recovery mode? Because if it can't, the phone needs to be wiped everytime the SD card goes bad or you need to replace it for some reason.
If recovery console can be connected to the computer, then the card can be backed up to a folder on the computer and restored back into another card.
devsk said:
its a chicked & egg problem. Does anybody know if the phone can be connected to a computer when in recovery mode? Because if it can't, the phone needs to be wiped everytime the SD card goes bad or you need to replace it for some reason.
If recovery console can be connected to the computer, then the card can be backed up to a folder on the computer and restored back into another card.
Click to expand...
Click to collapse
You can use adb from JF's or Cyanogen's recovery, or you can mount your card manually through the recovery console:
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
best thing to do is this while in recovery, use adb and type
Code:
adb shell mount /system/sd/
adb pull /system/sd/ system_sd_backup
turn off phone, change sd card, go back into recovery, then
Code:
adb shell mount /system/sd/
adb push system_sd_backup /system/sd/
RaiderX303 said:
best thing to do is this while in recovery, use adb and type
Code:
adb shell mount /system/sd/
adb pull /system/sd/ system_sd_backup
turn off phone, change sd card, go back into recovery, then
Code:
adb shell mount /system/sd/
adb push system_sd_backup /system/sd/
Click to expand...
Click to collapse
These are fired from the computer, right? NVM. figured that. Thanks for the command. A nudge in the right direction is always very helpful! Now I know, I will not be in dark if my SD card gives up on me.
Similar Problem
I've got a similar problem...
My SD card has corrupted a couple of times, so I've ordered a new one. However, I've now got round to setting up App2sd and all is working well. A few questions about swapping cards around:
Am I right in thinking that I can use the above method (adb shell commands) to copy the relevant info across to the new SD card? Assumably after it's been partitioned.
I was thinking that a Nanodroid backup and restore would do the trick - not so convinced now...?

Moving installed apps to a new and larger microsd card?

I am running Cynogen Mod 4.1.999.
I have 3 partitions on my stock 1GB microsdhc card.
I want to backup everything and move them to a new microsdhc card that I bought.
Is it possible to transfer the data in all the partitions to the new card without losing my installed apps? I have a friend who only transferred the files that he could see in Windows Explorer to the new microsd card but when he loaded it to his phone, all his apps were gone.
So is it possible to retain what I already have but on a new and larger microsd card?
Help is appreciated.
To move apps off of ext:
adb remount
adb pull system/sd/ %CD%\whateveryouwant
(this pulls everything off of the ext including dalvik which you can delete from the folder and puts it in your user directory. *C:\Users*)
to put back:
adb push %CD%\whateveryouwant /system/sd/
sdcard you just mount and put files into a folder and put them back.
it is not necessary to pull the swap partition.
Hope this helps!
make a ubuntu live cd, run it, mount sd, copy ext partition, put new card in make partitions in gparted since you are there and then copy files over, run fix permissions
simple
The easiest way to do what you're asking is to flash to Amon_RA's latest recovery. He's built-in "Backup and Restore Tool", which essentially does what Nandroid originally did and extended it to the ext partition of your SD card.
Run BART to backup your entire phone from the Recovery Console and you can then replace your SD card, partition it the way you want, and then run BART to restore your entire phone as well.

Copying ext2 from one SD Card to another

Here's what I am looking to accomplish. I wanted a backup sd card just in the event mine goes bad. I ran a search with 'SD Card" in the title and read each thread. Here are my roadblocks.... I installed DiskInternals Linux Reader and although it let me copy the ext3 partition files to my pc, it does not allow me to copy them back to the new card. Partition Manager does not have a 64-bit free version. Installed Ext2 IFS for Windows, however, it refused to see my sd card when mounted. I used RA-dream-v1.5.2 recovery to do a Bart + Ext Backup and verified the ext-backup.tar is on my sd card. I was going to install ADB, however, it doesn't say it works on Windows 7 64-bit. I have already partitioned the new card and have everything copied to the Fat32 partion. How now is the easiest way for me to get the ext-backup.tar untarred to my ext3 partition on the new sd card? Please don't flame me as I have been reading threads since 10 this morning. Thanks for any help!
The best thing I've found for managing the Linux partitions is a GParted Live disc. Just download and burn to a bootable CD. Pop it in and reboot your machine and you're free to do pretty much whatever you want with your SD card partitions without having to worry about Windows getting in the way.
Appreciate it. Gonna try it now. Thank you!
Well, I did as instructed. However, it failed to "Buffer I/O error on device sr0, logical block 57107. Any other way to accomplish what I am looking for?
any possibility that your USB port is flakey? Any way to try it on a differenty machine? I've got one PC that has USB problems and has been known to give similar kinds of error messages.
It seems fine for everything. It's a brand new Dell, only 2 months old. It was kinda freaky when I booted from the cd...lines of text scrolling on my screen for a couple minutes, lol. I was like...this better not be wiping my pc out Then at the end it just died on that error... The one thing I notice in reading threads...people keep giving console commands to do things on the phone using adb, however, I tried and it says adb isn't found... Here is an example. I can't believe there isn't an easy way to do this with so many folks rooted, etc.
----------------------------
best thing to do is this while in recovery, use adb and type
Code:
adb shell mount /system/sd/
adb pull /system/sd/ system_sd_backup
turn off phone, change sd card, go back into recovery, then
Code:
adb shell mount /system/sd/
adb push system_sd_backup /system/sd/
ok so I have copied an EXT from one card to another and this is how you do it. You need to be using RA recovery. Go into your console from recovery and type "bart -e -s EXT" that will create a back up of your EXT in a folder called "bart" on the fat32 partition of your SD card. Plug your phone into your PC and copy the bart folder to the PC. Now take the SD card out of your phone and put in the one that you want to restore the EXT to in. Copy the bart folder from your PC to your new cards fat32 partition. Make sure you partition the new card so that it has an EXT partition on it and then go into the recovery console and type "bart -e -r" it will ask you to select which back up to restore. Input the number for the back up that says "EXT" and restore it.
Joe333x said:
ok so I have copied an EXT from one card to another and this is how you do it. You need to be using RA recovery. Go into your console from recovery and type "bart -e -s EXT" that will create a back up of your EXT in a folder called "bart" on the fat32 partition of your SD card. Plug your phone into your PC and copy the bart folder to the PC. Now take the SD card out of your phone and put in the one that you want to restore the EXT to in. Copy the bart folder from your PC to your new cards fat32 partition. Make sure you partition the new card so that it has an EXT partition on it and then go into the recovery console and type "bart -e -r" it will ask you to select which back up to restore. Input the number for the back up that says "EXT" and restore it.
Click to expand...
Click to collapse
Worked flawlesly! Your help coupled with a PM I received from 'shadowch31' made this seamless. Thanks so much!
I tried to run the BART backup via console, but I keep getting an error message as following:
Storing app data...
tar: empty archive
Error occurred during storing of app data...
tar operation failed.
Do you have enough space on the /sdcard?
Click to expand...
Click to collapse
I have about 4 times more free space on the SD card then my ext-4 partition is. What could be the problem?

New SD Card - How to migrate data from old one?

I'm using a2sd on Fresh 2.0d, and want to move to a new class6 microSD card. Can I simply copy the data from the fat32 partition of the old card to the new one?
What about the /ext partition - I don't know how to access this. How do I move it to the new card?
Also, do I need any special commands to dismount the old card or mount the new one once it's installed?
Thanks.
check out the wiki on stickie, it's in there
Backup your apps or copy /system/sd/app, /system/sd/app-private, /system/sd/lost+found, /system/sd/xbin, if you have'm to some matching directories in the /sdcard fat32 partition.
Power down. Remove the old card. Insert the new , boot into recovery. Format the new card. Exit recovery to powerdown, or remove the battery.
Remove the new card.
Copy the contents of the fat32 from the old to the new, on a pc.
If you're linux based copy the ext2 or ext3 contents from one to the other.
Replace the new card and do a regular boot.
if you didn't copy the ext's then:
Copy the stuff from the matching directories (in the sdcard fat32 partition) into the directories in the ext2 or ext3 which should have been created for you at boot time.
If they were not created then create them. Move the stuff either from backup or from the matching directories which you created, into the appropriate new /system/sd ... directories-folders.
Reboot.
Your apps should be there. If they give symlink errors then reinstall by clicking on the apks from a file manager.
Here's another approach.
subliminalurge said:
That's a pretty good point. Upgrading isn't a huge worry, it's just a matter of creating the partitions and copying the files over to the new card (from both partitions). Having a Linux machine available would make that process a whole lot simpler. You can get ext2/ext3 drivers for Windows, but I've had, shall we say, mixed results with that over the years... (Edit: Now that I think about it, just doing a nandroid + ext backup and restore should be fine, then all that's left is the fat32 partition, and you can just copy those files back and forth from your pc....)
Click to expand...
Click to collapse
Hmmmm.. there is a MUCH easier way.
1. Do a "Nandroid +ext" back up.
2. Copy that back up to computer hd.
3. Power down phone
4. Insert new card
5. Partition correctly
6. You can do this next step a couple ways
a. USB toggle in recovery mode and copy nandroid to new sd card
b. Power down phone, insert new sd card with adapter into computer and copy nandroid
7. Power into recovery
8. Restore nandroid
9. Reboot
cptkool said:
check out the wiki on stickie, it's in there
Click to expand...
Click to collapse
could you post a direct link, cause i didn't find anything.
Danokan said:
Hmmmm.. there is a MUCH easier way.
1. Do a "Nandroid +ext" back up.
2. Copy that back up to computer hd.
3. Power down phone
4. Insert new card
5. Partition correctly
6. You can do this next step a couple ways
a. USB toggle in recovery mode and copy nandroid to new sd card
b. Power down phone, insert new sd card with adapter into computer and copy nandroid
7. Power into recovery
8. Restore nandroid
9. Reboot
Click to expand...
Click to collapse
How do I do a Nandroid +ext backup? Runnng CWM 5.0.2.0 and there is no option for ext backup. The only option is backup.

How can I delete the EXT2 partition?

I got my N1 "Froyo" updated->rooted->Titanium apps restored.
EXT2 seems useless since official app2sd is now supported,my question is,how can i delete the EXT2 partition?
Might wanna hold off on that for a bit...
Looks like the official app2sd method requires developers to set a flag on each application so that it is allowed to be installed on SD card. Any attempts to manually move current apps to the SD card only seem to work until a reboot, at which point you'll have to reinstall everything to the internal storage.
where to? in pc or mobile?
in pc: http://gparted.sourceforge.net/livecd.php
Same question here. Currently have an Ext2 partition in sd card mobile however 8 gb San Disk class 2 card doesn't fully support Apps2Sd (especially large apps 15 mb+) as I often experienced force close and slow down. Any advice how to delete it?
Thanks in advance.
Boot into recovery and connect phone to computer. Open a command prompt and navigate to the "tools" folder of the SDK. Enter the following:
1. adb shell
2. parted /dev/block/mtdblock0
3. list
This will show you the list of partitions on your card. Partition 2 should be ext. You can straight up delete it using "rm 2" but that won't reclaim the empty space to the fat32 partition. You'll have to backup files from your fat partition, delete all partitions and make one new fat32 partition using the entire space.
This is, of course, the long way. Alternatively, you can use the SD Partition utility built into the AmonRa recovery. All that requires is that you enter the amount of space you wanna allocate. That still nukes your files so make backups.

Categories

Resources