can you partition sd card through the phones usb connection? - G1 Android Development

simply put, i cant find my sd to micro sd adapter card so i can get a direct connect to the sd card and perform the partition, can this be done using paragon partition manager through the usb connection through the phone? will it or is there a way for the program to distinguish the sd card from the phones memory in order for me to partition correctly?

i am going to assume that paragon partitioner works similar to patition editor in ubuntu. i partition mine through the USB just fine, i have a drop down menu with the names of each device and the amount of space overall on said device. it should work just fine

tubaking182 said:
i am going to assume that paragon partitioner works
Click to expand...
Click to collapse
yep used the demo version to partition and format the fat32/ext2 partitions over the usb connection, since the card reader on the pc i was useing wouldn't recognize my sd card

kllngtme said:
simply put, i cant find my sd to micro sd adapter card so i can get a direct connect to the sd card and perform the partition, can this be done using paragon partition manager through the usb connection through the phone? will it or is there a way for the program to distinguish the sd card from the phones memory in order for me to partition correctly?
Click to expand...
Click to collapse
Actually this is recommended because some users (myself included) when trying to use a microsd card adapter would have issues. Don't ask me why but although it would correctly format the partition, the phone just would not recognize the new ext2 partition. However when I used my phone as the adapter (sorta speak) it was a first time go.
Good luck and remember to read the instructions carefully.

i just partitioned mine via usb cable today. i used paragon partition manager.
it probably goes without saying, but make sure you reboot after setting it up to run apps from the sd card.
i didn't reboot and any app i tried to run said "application not installed". after the reboot everything worked perfectly.

Can I please have a step by step on how to use Paragon to partition my sdcard, I have tried and tried and cant get it done can some one help please.

I keep partitioning my card but when I go to the busybox df -h to check it it only shows the fat partition and not the linux.

Joeriginal said:
I keep partitioning my card but when I go to the busybox df -h to check it it only shows the fat partition and not the linux.
Click to expand...
Click to collapse
is it mounted to /system/sd?

LucidREM said:
is it mounted to /system/sd?
Click to expand...
Click to collapse
forgive my ignorance but how do I find/do that

I have a two gig card I formatted one gig to ex2 this is what shows up
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 67.1M 456.0K 99% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/block/mtdblock5 74.8M 20.8M 53.9M 28% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 1.0G 4.0K 1.0G 0% /sdcard
I used paragon to partition, I dont know what Im doing wrong.

Ok I have partioned both Fat32 and ext2 both as primary but when I check busybox df -h it only shows the mmcblk0p1 not the p2 what am I doing wrong.

Hi,
The fat 32 has to be made 1st and the ext2 2nd.
Both must be primary.

I just used my phone via usb connection and partitioned my 8gb class6 sd card.
worked perfect. Paragon Partition Personal Trial version.

paragon partition says partition id invalid at restart of computer.
can't create ext2 partition.

Sd Card type
I think I have a type 2 sd card and was hoping to run my apps from my g1 phone. Can I still do that with the type 2? or is it required to have a type 6?

Related

umount ext2 partition

Im having trouble formatting my sdcard back to fat32 because i think the ext2 is still mounted.
Im using paragon but it only sees my fat32 partition and i have tried a few things on the boards but nothing seems to get paragon to see that partition.
Wondering if someone knows how i can umount the ext2 partition
i have tried umount -t /dev/mmcblk0p2
but paragon still doesnt see the partition.
I know its a corrupt partition for sure though
no real access to a linux box unless i download live cd

[Q] Problem with ext4 partition on my memory card

I have kingston 32gb memory card, class 6.
I maked 30gb fat32 & 1gb ext4 partition through gparted.
Everything seems to be ok. But it's not. Ext4 is not working. Like it's invisible.
When i refresh memory card I get some error sign near ext4 partition, and when i click for more information:
Anyone knows where problem might be?
anyone with solution?
**added picture to 1st post**
hi
looks like you want to do the same thing than me but ... as i learn at this time, there is no way to use ext4 partition on external sd card, just with some tools on internal sdcard.
android doesn't have script and code to mount under /mnt ext4 partitons just FAT32 !!!!!!!! great

[SOLVED]i9003 internal sd card unavailabl

hi all
my 9003 telling me the internal and external SD unavailable as you can see on the attached photo
i have 8gb card it's working fine on my pc and other nokia phone .
when i try the parted command from adb shell i can access the external card on /dev/block/mmcblk0p1
but i can't see the internal memory on /dev/block/mmcblk1p1 as the entry shows on the /etc/vold.conf .
can't mounted or formatted from UI or recovery mode
am running XXKPH with CF-ROOT-XXKPH-21.08.2011
also tried different firmware with re-partition but no luck
i think it's internal hardware problem
please advice
thanks
problem solved for now , i can get some storage space from my external mmc
as the phone can't detect the internal mmcblk1p1 and no storage space was available internal nor external seems it's h/w issue.
1st i used parted to make partition on my external mmc from the adb shell
2nd edit the vold.fstab
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
3rd edit the /etc/fstab
/dev/block/stl11 /cache rfs rw
/dev/block/mmcblk0p2 /data rfs rw
/dev/block/stl10 /datadata rfs rw
/dev/block/stl9 /system rfs rw
/dev/block/mmcblk0p1 /sdcard auto rw
now i have 4gb from my external mmc mapped to the internal , i can install apps and use my camera again
you are my saviour. i got same prob as you. now its working after follow your step.
PLease guide me as I am new to it that how could I Reterive my Internal Memory.
look at the top post!!
Hello ahmedjust
i want to know how to 2nd edit the vold.fstab plaese help me? aed when i give # internal sdcard
says internal : not found how to solved this problem?
i solved it by changing the phone
I have this problem too, I think Internal hardisk has problem .
Same Problem, I guess
Hi all,
I think i have the same issue..my SD card is not being detected , its sayin "Mount SD Card" and that field is disabled probably because it doesnt know that its there even though i have an external 16 GB card inserted..
fyi here are the specs :
model : GT-I9003
Android version : 2.3.7
Internal Memory : 1.87GB
SD Card : Unavailable
Baseband : I9003XXKPQ
ROM : MIUI 2.3.30
Here is the thing, i have flashed my phone about a 100 times, with various ROMS including stock XXKPE,XXKPQ (latest) and still no success
Also, the funny thing is, only 12 gb of my 16 gb external sd is usable so im guessing the 4 gb is being used internally by the phone for the default 2 + 2 gb of samsung galaxy s
on reboot to recovery, when i go to --> install from sd card, it says E: cant mount \sdcard
whereas when i go to --> install from internal sd card, it shows me all the files,folders on my external sd card
Another thing ive seen is when trying to clear cache it says :
E:format_volume: rfs format failed on /dev/block/mmcblk0p3
-------------
Now all said and done, i just wanted some sort of idea whether i should go ahead with this solution because im very sure its the same problem..ive inserted my external sd card on other samsung galaxy s and it works fine..and ive tried inserting other external sd cards onto my phone but it doesnt get mounted..
Thanks!
Same Problem
I think I have the same problem! Will report back if the solution works! It seemed so bazaar, I didn't think anyone else had it.
ahmedjust said:
hi all
my 9003 telling me the internal and external SD unavailable as you can see on the attached photo
i have 8gb card it's working fine on my pc and other nokia phone .
when i try the parted command from adb shell i can access the external card on /dev/block/mmcblk0p1
but i can't see the internal memory on /dev/block/mmcblk1p1 as the entry shows on the /etc/vold.conf .
can't mounted or formatted from UI or recovery mode
am running XXKPH with CF-ROOT-XXKPH-21.08.2011
also tried different firmware with re-partition but no luck
i think it's internal hardware problem
please advice
thanks
problem solved for now , i can get some storage space from my external mmc
as the phone can't detect the internal mmcblk1p1 and no storage space was available internal nor external seems it's h/w issue.
1st i used parted to make partition on my external mmc from the adb shell
2nd edit the vold.fstab
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
3rd edit the /etc/fstab
/dev/block/stl11 /cache rfs rw
/dev/block/mmcblk0p2 /data rfs rw
/dev/block/stl10 /datadata rfs rw
/dev/block/stl9 /system rfs rw
/dev/block/mmcblk0p1 /sdcard auto rw
now i have 4gb from my external mmc mapped to the internal , i can install apps and use my camera again
Click to expand...
Click to collapse
ihave a same problem but in step 2 edit the vold.fstab
i cant because there is no way to replace vold.fstab root explorer dosent run and adb cant get sdcard for replace vol.fstab anyone can help?
kghai3 said:
Hi all,
I think i have the same issue..my SD card is not being detected , its sayin "Mount SD Card" and that field is disabled probably because it doesnt know that its there even though i have an external 16 GB card inserted..
fyi here are the specs :
model : GT-I9003
Android version : 2.3.7
Internal Memory : 1.87GB
SD Card : Unavailable
Baseband : I9003XXKPQ
ROM : MIUI 2.3.30
Here is the thing, i have flashed my phone about a 100 times, with various ROMS including stock XXKPE,XXKPQ (latest) and still no success
Also, the funny thing is, only 12 gb of my 16 gb external sd is usable so im guessing the 4 gb is being used internally by the phone for the default 2 + 2 gb of samsung galaxy s
on reboot to recovery, when i go to --> install from sd card, it says E: cant mount \sdcard
whereas when i go to --> install from internal sd card, it shows me all the files,folders on my external sd card
Another thing ive seen is when trying to clear cache it says :
E:format_volume: rfs format failed on /dev/block/mmcblk0p3
-------------
Now all said and done, i just wanted some sort of idea whether i should go ahead with this solution because im very sure its the same problem..ive inserted my external sd card on other samsung galaxy s and it works fine..and ive tried inserting other external sd cards onto my phone but it doesnt get mounted..
Thanks!
Click to expand...
Click to collapse
its the same problem mate... see my post here... now my problem solved using above method.. the only thing is, every time the device restart or on from battery drained, need to configure everything back including APN for data connectivity..
---------- Post added at 10:31 PM ---------- Previous post was at 10:19 PM ----------
kasra_eminem said:
ihave a same problem but in step 2 edit the vold.fstab
i cant because there is no way to replace vold.fstab root explorer dosent run and adb cant get sdcard for replace vol.fstab anyone can help?
Click to expand...
Click to collapse
install any root kernel into your phone 1st.. then put it into recovery mode.. connect to pc and run android sdk... type command "adb push c:\(location of vold.fstab file in your pc) \system\etc\" and enter.. type without the " and ().. this way you will push the file from your pc into your phone and it will replace the previous one..
example : adb push c:\users\anplugged\desktop\vold.fstab /system/etc/
have a try mate.. good luck...
thanks to you.
ahmedjust said:
hi all
my 9003 telling me the internal and external SD unavailable as you can see on the attached photo
i have 8gb card it's working fine on my pc and other nokia phone .
when i try the parted command from adb shell i can access the external card on /dev/block/mmcblk0p1
but i can't see the internal memory on /dev/block/mmcblk1p1 as the entry shows on the /etc/vold.conf .
can't mounted or formatted from UI or recovery mode
am running XXKPH with CF-ROOT-XXKPH-21.08.2011
also tried different firmware with re-partition but no luck
i think it's internal hardware problem
please advice
thanks
problem solved for now , i can get some storage space from my external mmc
as the phone can't detect the internal mmcblk1p1 and no storage space was available internal nor external seems it's h/w issue.
1st i used parted to make partition on my external mmc from the adb shell
2nd edit the vold.fstab
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
3rd edit the /etc/fstab
/dev/block/stl11 /cache rfs rw
/dev/block/mmcblk0p2 /data rfs rw
/dev/block/stl10 /datadata rfs rw
/dev/block/stl9 /system rfs rw
/dev/block/mmcblk0p1 /sdcard auto rw
now i have 4gb from my external mmc mapped to the internal , i can install apps and use my camera again
Click to expand...
Click to collapse
thanks mate... This solved my issue... Just one more thing can use more than 4gb from the external sd?
redcarullo said:
thanks mate... This solved my issue... Just one more thing can use more than 4gb from the external sd?
Click to expand...
Click to collapse
can I answer your question on behalf of ahmedjust....? yes you can mate as long as you have sufficient space on your external SD...
anplugged said:
can I answer your question on behalf of ahmedjust....? yes you can mate as long as you have sufficient space on your external SD...
Click to expand...
Click to collapse
how? i need guidance please
redcarullo said:
how? i need guidance please
Click to expand...
Click to collapse
1st of all, of course you'll need a larger capacity of SD.. i.e 16gb..
to increase the external memory space, edit the 1st partition of fat32 format.. in the picture posted by ahmedjust, he created :
start end
32.8kb 4702mb <--increase the end figure to get more space on external..
But the following 3 partition must have +/- space as seen on the pic..
You just need to do the math to divide the space...
Good Luck..
Help
hi,
i was flashing poseidon rom on xxkpq when suddenly my internal sd card and external sd card just disappeared ...
could this help me solve my problem .
Thanks
plz help me i am not able to partition the external sd.
My problem: modified my phone as described in #1.
Phone boots fine, but whenever I install an app it just reboots. Any ideas?
Did you know? Editing /etc/fstab is pointless. Every time you reboot, it is replaced by a default one.
oz42 said:
Did you know? Editing /etc/fstab is pointless. Every time you reboot, it is replaced by a default one.
Click to expand...
Click to collapse
That is not true. I am a user of modified fstab file and it has been very useful to me because it saved my phone from being totally useless. I used to have "pseudo resets" errors, "sd card unexpectedly removed" errors, "force closes", but now my phone is 99% OK (1% = my internal SD is destroyed already :laugh: ). But no more errors encountered after using modified fstab, very stable for 3 weeks and counting.

[Q] How to correct cylinder boundaries in microSD card

Hi everyone,
I just bought a 32GB sdhc card. At first it mounted just fine on my windows 7x64 machine. I opened up minitool partition wizard home edition to format the card with about 2GB for sd-ext and the rest for fat32. It said it was successful but now the card will not mount in windows 7 or in my optimus V phone (which supports 32gb sdhc).
So then I tried to format the card with CWM instead directly on the phone. Here is the log from that experience:
Partitioning SD Card... please wait...
checking script requirements...done
unmounting all partitions...done
partition 1 may not be aligned to cylinder boundaries.
to continue, this must be corrected.
this action will remove all data from your sdcard.
correcting cylinder boundaries...sh: 0: unknown operand
done
err: must have a fat32 partition greater than 0MB
Done!
Click to expand...
Click to collapse
Basically I think minitool screwed up my card (or i did using the wrong settings) or the card was already bricked; but not so much that my card cannot try to read it. However, I can't mount the card in my phone in CWM or if the phone had the rom loaded. Further, I can't see it when invoking fdisk -l through ADB.
Does anyone know if there is a way to somehow fix this cylinder issue or do you think this card is bricked and is not even heavy enough to be a paper weight?
thanks.
it looks like CWM uses sdparted to do these operations.
I tried running that through adb manually but it failed with the same error:
err: must have a fat32 partition greater than 0MB
Click to expand...
Click to collapse

[Q] How to mount entire internal sdcard (/mnt/sdcard2) as /data

Since I'm using a custom ROM that make the External (bigger: 14GB) SD mount as the default /sdcard, and internal (smaller) as /sdcard2 or something I don't really need it and would much rather like to mount it entirely as /data
.. something similar to this script : http://forum.xda-developers.com/showthread.php?t=1716124 except that it "Mounts **/sd-ext** to /data" but I want to mount /mnt/sdcard2 to /data
. How do I do that?
Problems: I've found that Android would neither let that internal partition be ext3 (it switches it back to FAT even if I somehow manage to format it as ext3). Nor would it mount /data to a FAT partition. What can/should I do?
iBrickYouNot said:
Since I'm using a custom ROM that make the External (bigger: 14GB) SD mount as the default /sdcard, and internal (smaller) as /sdcard2 or something I don't really need it and would much rather like to mount it entirely as /data
.. something similar to this script : http://forum.xda-developers.com/showthread.php?t=1716124 except that it "Mounts **/sd-ext** to /data" but I want to mount /mnt/sdcard2 to /data
. How do I do that?
Problems: I've found that Android would neither let that internal partition be ext3 (it switches it back to FAT even if I somehow manage to format it as ext3). Nor would it mount /data to a FAT partition. What can/should I do?
Click to expand...
Click to collapse
you can't

Categories

Resources