Bought another micro sdcard, how to transfer things? - Nexus One General

Hi, i use an 8gb sdcard with ext partition but I bought a 32gb sdcard and I´d like to copy the content from the fat and ext partitions to the new 32gb sdcard...
I have ubuntu in vmware because I´m a windows´ user.
Can I format the 32gb sdcard in the bootloader with fat and ext partition then copy the ext content of the 8gb directly to the 32gb ext partition so as the fat content?
thanks!

paolobacci said:
Hi, i use an 8gb sdcard with ext partition but I bought a 32gb sdcard and I´d like to copy the content from the fat and ext partitions to the new 32gb sdcard...
I have ubuntu in vmware because I´m a windows´ user.
Can I format the 32gb sdcard in the bootloader with fat and ext partition then copy the ext content of the 8gb directly to the 32gb ext partition so as the fat content?
thanks!
Click to expand...
Click to collapse
How this relates do you using things in a VM I'm not going to try to figure out, but you should be able to attach the device in whatever method necessary..
Partition the new card the way you want it, format the ext3, and I suggest formatting the FAT partition in your phone directly. If you need help here you can ask...
Then simply rsync the contents of one to the other.. I'd use your hard drive as the intermediate storage location... Let's say your card is sdc when mounted..
# Created the paths we need to use..
mkdir ~/oldcard ~/oldcard-ext /mnt/sdcard /mnt/sdcard-ext
# old fat files to intermediate storage location
mount /dev/sdc1 /mnt/sdcard
rsync -va /mnt/sdcard ~/oldcard/
umount /dev/sdc1
When it's done, poke through ~/oldcard, make sure it appears to all be there, particularly make sure there's no extra layer of subdirectories, ie: if you ls ~/oldcard you see just one directory which contains the rest of the stuff. If so, fix it.
Do the exact same for the ext partition, but make it a different directory of course..
# old ext files into intermediate storage location
mkdir ~/oldcard-ext
mount /dev/sdc2 /mnt/sdcard-ext
rsync -va /mnt/sdcard-ext ~/oldcard-ext
umount /dev/sdc2
To note, you SHOULD already be doing this on a regular basis. Memory cards DO die sometimes.
Then swap cards and reverse..
# move fat files into new card
mount /dev/sdc1 /mnt/sdcard
rsync -va ~/oldcard /mnt/sdcard/
umount /dev/sdc1
# move ext cards into new card
mount /dev/sdc2 /mnt/sdcard-ext
rsync -va ~/oldcard-ext /mnt/sdcard-ext
umount /dev/sdc2
I've broken things out into sections to make it more readable, some steps could be combined etc but didn't want to obfuscate anything.

Thanks, it´s the way I thought
I mentioned the linux in the vm because windows can´t read ext partitions

Related

Apps On Sd Card EXT2 Partition

How can I view the files on my sd card in the ext2 partition?
I have one fat32 and one ext2 which my apps are on but every file viewer app in my G1 phone or computer only lets me see whats in the fat32 one, so how could I access it it?
I have windows vista and ubuntu (which I dont know how to use well) pc
and my sd card is an 8gb class 6 with 500 mb of the ext2 and rest is fat32, I just want to access the ext2 and view its files
someone please help and thank you
tanner2007 said:
How can I view the files on my sd card in the ext2 partition?
I have one fat32 and one ext2 which my apps are on but every file viewer app in my G1 phone or computer only lets me see whats in the fat32 one, so how could I access it it?
I have windows vista and ubuntu (which I dont know how to use well) pc
and my sd card is an 8gb class 6 with 500 mb of the ext2 and rest is fat32, I just want to access the ext2 and view its files
someone please help and thank you
Click to expand...
Click to collapse
You would have to load ubuntu and use a card reader to view the files on your ext2 partition.
Or, as an alternative, you could download terminal emulator from the market. Open up the app, then type this:
$su
#cd /system/sd
to view the files in your ext2 partiton.
while your in /system/sd you may want to change to a different directory, such as app or data, you could use this command:
$su
#cd /system/sd
#cd app
#ls
where you would substitute app for another directory such as app-private, data, dalvik-cache, etc.
when you want to move up a directory type this:
#cd ..
and whenever you want to view whatever folders or files are present in the directory you're in, type this:
#ls
hope this helps.
if you are using ubuntu, you will need an sdcard reader, you won't be abel to ea dthe ext2 partition form windos (not that am aware of) inserd the sd card or i think if you plug the phone nd u have teh drivers ubuntu will read and mount the sd card should appear in yoru desktop both partitions with an icond of a hard drive
thanks but I wannna see and be able to move files and etc like in windows..well im new to ubuntu and not sure how but yes I have my phone and an sd card reader
so where are they located
am i just an idiot or what? i made an ext2 partition on my sdcard, and it wont let me put anything on it. i'm doing this half for my apps and half to install debian. but why the f cant i do anything with it?? it wont let me change permissions so am i in the reference to south park "f'd in the a?"

Stale NFS File Handle

Can it be deleted?
on a linux distro
fsck -p /your sdcard partition/
On windows I don't know.
i have the same problem.
same answer .
In fact you have 2 solutions:
1) repair your partition ON A LINUX DISTRIBUTION with : fsck -p /sdcard partition
2) reformat the partition.
so i just format both the fat32 and ext2 partitions?
m00b3rt said:
so i just format both the fat32 and ext2 partitions?
Click to expand...
Click to collapse
Usually Stale NFS file handles only appear on ext2 so just formatting that should be enough.
format is really windowish as a linux user.
I'm not the type : " oh it doesn't work... FORMAT !!!!"
Sorry ...
thanks for the help everyone.
i just repartition my sd card on Knoppix.
Hey, just found a program that formats your sd card(fat32 and ext2). It's called SDFormatter. Unlike others, Paragon would not format my sd card's ext2 for some reason. This helped out a lot. And thanks to LucidREM for getting me set back up with apps to sd via his superb script.

? partion

i have a ext 2 partitioned 8gb card and would like to dump the extension and reformat in fat 32 only. Any tips on how to do this
Use the same application that you created the ext2 partition with. If you're running the Cyanogen recovery, just use Parted via the recovery console.
If you have Cyanogens Recovery Console
Then drop to console
And press enter
Then type
parted /dev/block/mmcblk0
then print to see how many partitions you have
then press
rm 1
rm 2
rm 3 if you have one
then press print to verify you removed them
then enter
mkpartfs primary fat32 0 ???? (whatever the end size of your memory card is and then your done
then press quit
reboot
that be great but i just unrooted phone as i'm givin to my sister any other way to recover my 8gb card
Paragon partition manager... If you can find a copy I'm sure you can reformat the card or redistribute the free space.
or you could just do a full memory card format from windows
jf4888 said:
or you could just do a full memory card format from windows
Click to expand...
Click to collapse
a format won't recover the partitions, but you can do this in XP, from the Disk Manager (Control Panel:Administrator Tools:Computer Managementisk Management)...delete partitions and then create 1 partition, and then format.
mm0
get a linux live CD and use gparted to delete the ext2 partition then just extend the FAT32 partition, you won't lose any data except that on the ext2 and it is extremely user friendly
I would work ive done it before with a card that had 3 partition on it
i did a full memory card format using vista
then formated it to fat32 and all went well i got back all my memory

[Q] Easier way to move media to my sd card?

I am running CM7 on SD card that has a storage partition of about 6 gig.
When I run stock Nook Color USB, it's easy to set up folders in My Files and fill them with magazines, ebooks, pdf files, videos, etc. on the EMMC.
Then under CM7, I have been using File Manager to move the files one by one to the SD card.... a tedious process.
Or I have been able to use DropBox to export the files one by one to the SD card .... even slower and more tedious
I've tried to get EASEUS Partition Master to activate the storage partition so I could just drop files in there, but all I can ever see is the boot partition on my PC.
There has to be an easier way, right ?
Just plug the Nook in via USB and then you need to open your status bar and mount as USB. You will then have two new drives on your PC, one for EMMC and one for your SD card.
Sent from space
THATS more like it. Working great now and thanks!
edit /system/etc/vold.fstab on stock and change first auto for SDCARD to 4 and you can use the same partition for stock and sd ROM for the SDCARD
in your CM7...
either use terminal app or adb shell:
mkdir /sdcard/tmp
mount /dev/block/mmcblk0p1 /sdcard/tmp
Then edit /sdcard/tmp/etc/vold.fstab to make the following change:
Code:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
CHANGE TO
dev_mount sdcard /mnt/sdcard 4 auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1

Kernel with ext(2,3,4) support?

Hio
I wanted to ask gently, if someone is in a position to build a kernel that allows the SD card to be formatted in ext(2,3,4)?
I've pushed a 32GiB card into the tablet, and it would be very nice to move more than 4GiB sized data on the sd card.
Other file systems would of course possible
I have the P6810.
I don't think you need a custom kernel. The internal flash memory is already formatted with ext4 and supports files larger than 4GB. The problem is with the Samsung automatic sd-card mounting which forces fat32 only.
Is it possible to manually unmount/remount the external sd card with ext4 file support via shell or custom app/script?
The kernel's got ext4 support.
To mount the SD card, run the following in a terminal (as root):
mkdir /mnt/sdcard/ext
mount -t ext4 /dev/block/mmcblk1p1 /mnt/sdcard/ext
Your SD card will then be mounted in the ext directory on your Internal drive.

Categories

Resources