i need help on this to install apps on my sd card
I've been meaning to ask this for a while as well, but was shy to ask and make a thread about it.
How would you create one on a mac?
im wondering how to create them on WINDOWS XP
I have read all around on this subject and from what I've read its not possible for windows xp users.
you can create it on windows using Paragon Partition Manager 9. Make sure you partition the sd card using a microSD reader, because issues will arise if you try to partition with your memory card still connected to your G1.
85Mario85 said:
im wondering how to create them on WINDOWS XP
Click to expand...
Click to collapse
Use Paragon Patition Manager 9 for XP then you can make all the partitions you want
Is this the program i need? I want to be sure you say use a disk reader i have the one built into my P.C is that o.k?
http://www.partition-manager.com/
I had problems with this to both the ubuntu live cd and partition maneger works for me. But i had to make sure my init.rc had
mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime
not
mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime
Finaly to mwke the partitions in windows i used HP USB format tool to format the card as fat16 and then detleted the partition in partiton maneger and created my FAT32 and EXT2 partitions (*make shure you hit apply*) in partition maneger
manup456 said:
Is this the program i need? I want to be sure you say use a disk reader i have the one built into my P.C is that o.k?
http://www.partition-manager.com/
Click to expand...
Click to collapse
Yes that is the program you use. It is very easy to use. Good Luck!
cchap07 said:
Yes that is the program you use. It is very easy to use. Good Luck!
Click to expand...
Click to collapse
I used this program to try to partition my sd card, I made the partitions, applied them, it finished. I put all my stuff back on my sd card, put it back in my G1 I tried to flash the update.zip and it said no update.zip. I was like wtf, so I put the sd card back in my comp and it said this card is not formatted. I had to use a program to recover everything on it, and havent tried again since. What went wrong?
do you got root? if so, then check the partition table using fdisk:
# fdisk /dev/block/mmcblk0
Command (m for help): p
the "p" option prints the partition table for the device you specified when invoking fdisk (your SD card). you should have two partitions listed - one using a Win95 FAT32 filesystem (hex ID "b"), and a second partition labeled as a Linux partition (hex ID "83). Here's my partition table if you want to try to match it up to your own:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 218751 7000024 b Win95 FAT32
/dev/block/mmcblk0p2 218752 249296 977440 83 Linux
So long as that all looks good, it *should* work. I think i used gparted when i partitioned my SD card. I have a theory that you can do it through fdisk too, directly on the G1, but i didn't really spend too much time trying this.
.haNk said:
do you got root? if so, then check the partition table using fdisk:
# fdisk /dev/block/mmcblk0
Command (m for help): p
the "p" option prints the partition table for the device you specified when invoking fdisk (your SD card). you should have two partitions listed - one using a Win95 FAT32 filesystem (hex ID "b"), and a second partition labeled as a Linux partition (hex ID "83). Here's my partition table if you want to try to match it up to your own:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 218751 7000024 b Win95 FAT32
/dev/block/mmcblk0p2 218752 249296 977440 83 Linux
So long as that all looks good, it *should* work. I think i used gparted when i partitioned my SD card. I have a theory that you can do it through fdisk too, directly on the G1, but i didn't really spend too much time trying this.
Click to expand...
Click to collapse
Thanks, but wtf, it says I have 4 partitions, and it doesnt know the system, on Partition Manager it says 1 last time I checked
AsaSpades said:
I used this program to try to partition my sd card, I made the partitions, applied them, it finished. I put all my stuff back on my sd card, put it back in my G1 I tried to flash the update.zip and it said no update.zip. I was like wtf, so I put the sd card back in my comp and it said this card is not formatted. I had to use a program to recover everything on it, and havent tried again since. What went wrong?
Click to expand...
Click to collapse
I have no idea, but the same thing happened to me and I just repartitioned it and retried it with only the update.zip and it worked. If you dont have your sd card partitioned just copy everything you have on it to your computer, erase the current formatting and try it again. It should work. Good luck!
AsaSpades said:
Thanks, but wtf, it says I have 4 partitions, and it doesnt know the system, on Partition Manager it says 1 last time I checked
Click to expand...
Click to collapse
You can try to follow these instructions that I wrote on another thread.
Back up any data that you can because this will erase it all.
Ok so Open Paragon, click ADVANCED PARTITIONING on bottom right, on your sd card right click on the partition and click Delete partition. Then Delete all other partitions on the SD card.
After you have deleted them all, click on the apply button on the top of Paragon. Then after that is finished, right click on the sd card and click create partition. The first drop down box will say: Create Partition as: and select Primary Partition. Then select the size you want the FAT32 Partition to be and on the Second drop down box select FAT 32. Then click yes.
Then Right click on the sd card again on the part that says (unallocated) and click Create partition. Select the partition as primary, and this time select the Linux Ext2 option of the second drop down box. Then click yes. Finally, Click on the top button to apply changes (Green Check mark) and you are done partitioning. Then just follow these instructions.
BTW the Ext2 partition has to be less than 2GB.
Good Luck!
yeah dude, i would say just give it another try in partition manager. if that don't work, then i guess you can try using a Linux live CD (or USB...) to partition it. just don't accidentally reformat your hard drive. make sure you select the option to manually setup your partition table, and then make sure you're working with the SD card and not your HDD. i've seen too many people wipe their hard drives on accident.
alright ill jus try it again, after its partitoned correctly will the sd card directory be different? Like would there be a folder for Ext2 or no?
nah, you won't see an additional folder. the second partition (EXT2) will be mounted under /system/sd, so you won't see it unless you specifically browse to it. if you want to make sure that it partitioned and mounted correctly, run the 'mount' command as root on your phone. you should see /dev/block/mmcblk0p2 mounted to /system/sd.
hmmm its not letting me create a partition after I deleted what was on it. When I click the sd card in "Create Partition" it says "A new partition cannot be created on this hard disk. Most probably/all primary slots are occupied and there is no extended partiton."
Hi Asa,
Check out this diagram I made when I was transferring my apps and caches to the sdcard.
You should run the busybox command and see if your ext2 partition shows.
In the diagram, it is the one that has a size of 1.6 gb.
So you should see something similar in your phone.
After I transfered all my caches and apps the ext2 partition no longer shows up in partition manager but I know it is working and present by the busybox output shown in the diagram.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let me know if it helps.
Do i need the full version? Because the demo does not give the create partition option its there but disabled.
Related
Ok I finally got a large SDCARD and browsed through all the tutorials on here pertaining to moving apps to sdcard and they all were either windows centric or required that the android build environment be installed.
I don't use windows and I don't have the android build environment loaded. I DO have Linux and a rooted phone. So here goes
Partitioning your sdcard into fat32/linux
What you'll need:
1) linux terminal
2) a micro sd card reader that you can connect to your computer
3) fdisk
From a terminal window as root, plug your sdcard into your computer. You can not do this while the sdcard is mounted, you only want it to be given a device node by linux so we can edit the partitions via fdisk.
So once you have it on connected, check what the device name is. For me 'dmesg' told me the device nodes name was /dev/sdc .
So using good ol FDISK we do the following:
1) fdisk /dev/sdc
2) proceed to delete all the partitions
3) hit 'n' to create a new partition. This will be a primary partition as large as you want it. Be sure and remember to leave some space for the linux partition we'll be creating.
4) Next create the linux partition by once again pressing 'n' and choosing primary partition
5) now we need to fix the system labels for the fat32 partition by pressing 't'
Select partition 1 and change it to HEX code 'c' which is WIN95 FAT32 (LBA)
6) Now that you have both partitions created go ahead and write them by pressing 'w'
Now we need to write a filesystem to the partitions
So you've created the partitions but they are raw with no filesystem. We need to format them to their respective filesystems.
Assuming your device node for the sdcard is /dev/sdc you will have the following partition layout
Device Boot Start End Blocks Id System
/dev/sdc1 1 1816 14586988+ c W95 FAT32 (LBA)
/dev/sdc2 1817 1949 1068322+ 83 Linux
Of course your start/end blocks will be different if you don't have a 16gb microsd card like me.
First we'll format the fat32 partition using the following command
mkfs.vfat /dev/sdc1
Next we'll format the linux partition to ext2. I've noticed a lot of people talk about ext2 as if its a partition type, ITS NOT. It's a filesystem type. It should be worded "Creating a fat32 & linux partition" not "Creating a fat32 & ext2 partition". Anyways, moving along we use the following command to format the linux partition to ext2
mkfs.ext2 /dev/sdc2
You're now ready to proceed to following the other guides for moving apps to the sdcard. If enough people request I can finish this to include actually moving the /data/app to /system/sd . Not really much to it. Anyways enjoy
Nice tutorial, but one thing. You mentioned the difference between a file system and a partition. While that is correct, do you see that knowledge making things easier or harder for the average user? Lots of times we simplify things so we dont have to explain stuff that the user need not know later.
shafty023 said:
Next we'll format the linux partition to ext2. I've noticed a lot of people talk about ext2 as if its a partition type, ITS NOT. It's a filesystem type. It should be worded "Creating a fat32 & linux partition" not "Creating a fat32 & ext2 partition". Anyways, moving along we use the following command to format the linux partition to ext2
mkfs.ext2 /dev/sdc2
Click to expand...
Click to collapse
And fat32 is a file system type and not what you refer to as a partition type either, what is your point? You are creating an ext2 (formatted) partition and a fat32 (formatted) partition. Semantics aside, call one a dos partition and one a linux partition if that would make you happy, either way you are creating two separate partitions and formatting one as fat32 and the other as ext2. What you call them, or how you label the partition type vs. file system, doesn't make you any smarter than anyone else.
The fact that you would take the effort to point out that ext2 is not a partition type, yet neglecting to point out the same about fat32, kind of makes you seem ignorant. I may sound like a prick, but I have had a few drinks tonight, and seriously...... if you took the time to say "fat32 and linux partition", it really seems as if you are trying to make other people look stupid.
I leave you with some "light" reading.
And... file systems.
Darkrift said:
Nice tutorial, but one thing. You mentioned the difference between a file system and a partition. While that is correct, do you see that knowledge making things easier or harder for the average user? Lots of times we simplify things so we dont have to explain stuff that the user need not know later.
Click to expand...
Click to collapse
Oh I completely understand and agree. It's just in my line of work I find that there's still some people that want to know and learn about the gritty details of whats going on. I figured there's plenty of other articles on here explaining things for the simpleminded, I wanted to create one article that actually explained the correct terms. Didn't mean it in any way as a put down to anyone else's tutorials that were in laments terms.
daveid said:
And fat32 is a file system type and not what you refer to as a partition type either, what is your point? You are creating an ext2 (formatted) partition and a fat32 (formatted) partition. Semantics aside, call one a dos partition and one a linux partition if that would make you happy, either way you are creating two separate partitions and formatting one as fat32 and the other as ext2. What you call them, or how you label the partition type vs. file system, doesn't make you any smarter than anyone else.
The fact that you would take the effort to point out that ext2 is not a partition type, yet neglecting to point out the same about fat32, kind of makes you seem ignorant. I may sound like a prick, but I have had a few drinks tonight, and seriously...... if you took the time to say "fat32 and linux partition", it really seems as if you are trying to make other people look stupid.
Click to expand...
Click to collapse
Please take the time to read my previous reply. And the reason I pointed out ext2 was a filesystem type and not for fat32 was no matter where someone in windows tries and creates a partition, either thru disk management or partition magic, it will present them with the option of creating a pre-formatted partition. This means they can create a fat16/fat32/ntfs partition. I doubt anyone can create a 200gb dos partition though I've never tried so won't state that as a fact. I know fat32 within windows limits to 180, then other apps like partition magic are able to utilize more. Only using fdisk are you presented with the option of over 80 different un-formatted partition types. Even in there they list fat32 but do not list ext2 or ext3.
And did you ever stop to think that perhaps some people actually thought ext2 was a partition? That maybe they'd hop into their partitioning tools looking for ext2? Then they'd come back looking all over xda for information why they can't find ext2 as a valid partition? Then they come across my lonely tutorial that explains they need to first format as Linux and then FORMAT as ext2? Did you think about that whilst you were ranting on about me being a prick? No you didn't. I was only trying to help and provide information without bringing anyone else down. Now, let's move past this and do what we're all here to do and that's help those who don't understand these technologies.
daveid said:
And fat32 is a file system type and not what you refer to as a partition type either, what is your point? You are creating an ext2 (formatted) partition and a fat32 (formatted) partition. Semantics aside, call one a dos partition and one a linux partition if that would make you happy, either way you are creating two separate partitions and formatting one as fat32 and the other as ext2. What you call them, or how you label the partition type vs. file system, doesn't make you any smarter than anyone else.
The fact that you would take the effort to point out that ext2 is not a partition type, yet neglecting to point out the same about fat32, kind of makes you seem ignorant. I may sound like a prick, but I have had a few drinks tonight, and seriously...... if you took the time to say "fat32 and linux partition", it really seems as if you are trying to make other people look stupid.
Please take the time to read my previous reply. And the reason I pointed out ext2 was a filesystem type and not for fat32 was no matter where someone in windows tries and creates a partition, either thru disk management or partition magic, it will present them with the option of creating a pre-formatted partition. This means they can create a fat16/fat32/ntfs partition. I doubt anyone can create a 200gb dos partition though I've never tried so won't state that as a fact. I know fat32 within windows limits to 180, then other apps like partition magic are able to utilize more. Only using fdisk are you presented with the option of over 80 different un-formatted partition types. Even in there they list fat32 but do not list ext2 or ext3.
And did you ever stop to think that perhaps some people actually thought ext2 was a partition? That maybe they'd hop into their partitioning tools looking for ext2? Then they'd come back looking all over xda for information why they can't find ext2 as a valid partition? Then they come across my lonely tutorial that explains they need to first partition as Linux and then FORMAT as ext2? Did you think about that whilst you were ranting on about me being a prick? No you didn't. I was only trying to help and provide information without bringing anyone else down. Now, let's move past this and do what we're all here to do and that's help those who don't understand these technologies.
Click to expand...
Click to collapse
shafty023 said:
Please take the time to read my previous reply. And the reason I pointed out ext2 was a filesystem type and not for fat32 was no matter where someone in windows tries and creates a partition, either thru disk management or partition magic, it will present them with the option of creating a pre-formatted partition. This means they can create a fat16/fat32/ntfs partition. I doubt anyone can create a 200gb dos partition though I've never tried so won't state that as a fact. I know fat32 within windows limits to 180, then other apps like partition magic are able to utilize more. Only using fdisk are you presented with the option of over 80 different un-formatted partition types. Even in there they list fat32 but do not list ext2 or ext3.
And did you ever stop to think that perhaps some people actually thought ext2 was a partition? That maybe they'd hop into their partitioning tools looking for ext2? Then they'd come back looking all over xda for information why they can't find ext2 as a valid partition? Then they come across my lonely tutorial that explains they need to first partition as Linux and then FORMAT as ext2? Did you think about that whilst you were ranting on about me being a prick? No you didn't. I was only trying to help and provide information without bringing anyone else down. Now, let's move past this and do what we're all here to do and that's help those who don't understand these technologies.
Click to expand...
Click to collapse
for someone who has never really posted on XDA before you're being a little testy .. not to mention the fact that the guy never called you a prick .. all technicalities aside let's be civil here .. if we need an all out discussion on the differences of linux and dos then feel free to move on to another forum .. because honestly i haven't seen much know-how here on either front
i'm sure the moderators would agree that bickering about OS's wastes effort for everyone
LucidREM said:
for someone who has never really posted on XDA before you're being a little testy .. not to mention the fact that the guy never called you a prick .. all technicalities aside let's be civil here .. if we need an all out discussion on the differences of linux and dos then feel free to move on to another forum .. because honestly i haven't seen much know-how here on either front
i'm sure the moderators would agree that bickering about OS's wastes effort for everyone
Click to expand...
Click to collapse
Agreed. I post heavily on linuxquestions so given that Android's os is linux it made sense to help out on here wherever possible. I was a little stoned when I responded to his message, lol. But anyways if anyone else stumbles on this tutorial feel free to msg me with questions.
shafty..thanks so much.
btw.
i have a few questions.
when setting up my new g1, should i have added the linux partition on the SDcard. if my goal is to use this SDcard for rooting purposes...
which leads to another question (why in tarnation is there a fat32 card on my g1 ?)
btw..
heres some screenshots of the flow...if yall want em.
the write up is perfect and this is the only way i could add to it...
if its too convoluted, i can re-do it with only the terminal screenshots
please disregard the terminals on the right...on the left is the report after typing dmesg, and you can see df -h was not the best choice
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this highlight reports the found SD cards location for fdisk, and the su command. (yes, i really do have a password)
3rd step (don't laugh..u do it too) i typed the "p" and missed the enter, than tried to fix it with backspace, and i think i missed the delete button too..but enter works regardless as fdisk only sees the 1st entry.
4th i accidentally made the sbc1 a fat 12, and deleted it , remade it w/n and it went dutifully from linux to fat32, and you can see here, that i have more space to fill the rest with linux.
the "p" is for print...i learned long ago to always print before continuing..
5th here it how the end result should be reported after "p" ( in fdisk)
6th, 7th this is the 2 lines to actually formatting commands (and results)
well...
i poked around in the g1, and the card was "unreadable", and asked to "format " it..
so, sure. i hit ok.."format"..it did
then i checked my eterm again.
heres what i got (thinking my pc is right...the formatting is gone.
or
am i just being to much....i shouldn't be poking around the sdcard when i should be rooting it....(think i just answered myself)
is this the 1st step to getting root on my g1 ?? (the vfat32 thing)
and what am i missing ?
or, HOW is fdisk NOT finding ANY type of filesystem AFTER the G1 formats....
does the G1 format an invisible (or new) type of filesytem ?
I think that those drinks went to your head. There are a plethora of different partition "types". In actual fact, a partition is a partition no matter how you look at it, but the different types are an identification byte which can be used to show what type of system/partition type is responsible for or expected to be found within the partition. It helps to keep retards (like mswindoze) on track.
According to the reference YOU provided, fat32 *IS* a partition type. This is true. It is ALSO a filesystem type. I.e., you place a fat32 FILESYSTEM within a fat32 PARTITION.
Here is the list of partition types for your reference:
0 Empty
1 FAT12
2 XENIX root
3 XENIX usr
4 FAT16 <32M
5 Extended
6 FAT16
7 HPFS/NTFS
8 AIX
9 AIX bootable
a OS/2 Boot Manag
b W95 FAT32
c W95 FAT32 (LBA)
e W95 FAT16 (LBA)
f W95 Ext'd (LBA)
10 OPUS
11 Hidden FAT12
12 Compaq diagnost
14 Hidden FAT16 <3
16 Hidden FAT16
17 Hidden HPFS/NTF
18 AST SmartSleep
1b Hidden W95 FAT3
1c Hidden W95 FAT3
1e Hidden W95 FAT1
24 NEC DOS
39 Plan 9
3c PartitionMagic
40 Venix 80286
41 PPC PReP Boot
42 SFS
4d QNX4.x
4e QNX4.x 2nd part
4f QNX4.x 3rd part
50 OnTrack DM
51 OnTrack DM6 Aux
52 CP/M
53 OnTrack DM6 Aux
54 OnTrackDM6
55 EZ-Drive
56 Golden Bow
5c Priam Edisk
61 SpeedStor
63 GNU HURD or Sys
64 Novell Netware
65 Novell Netware
70 DiskSecure Mult
75 PC/IX
80 Old Minix
81 Minix / old Lin
82 Linux swap / So
83 Linux
84 OS/2 hidden C:
85 Linux extended
86 NTFS volume set
87 NTFS volume set
88 Linux plaintext
8e Linux LVM
93 Amoeba
94 Amoeba BBT
9f BSD/OS
a0 IBM Thinkpad hi
a5 FreeBSD
a6 OpenBSD
a7 NeXTSTEP
a8 Darwin UFS
a9 NetBSD
ab Darwin boot
b7 BSDI fs
b8 BSDI swap
bb Boot Wizard hid
be Solaris boot
bf Solaris
c1 DRDOS/sec (FAT-
c4 DRDOS/sec (FAT-
c6 DRDOS/sec (FAT-
c7 Syrinx
da Non-FS data
db CP/M / CTOS / .
de Dell Utility
df BootIt
e1 DOS access
e3 DOS R/O
e4 SpeedStor
eb BeOS fs
ee GPT
ef EFI (FAT-12/16/
f0 Linux/PA-RISC b
f1 SpeedStor
f4 SpeedStor
f2 DOS secondary
fb VMware VMFS
fc VMware VMKCORE
fd Linux raid auto
fe LANstep
ff BBT
Click to expand...
Click to collapse
daveid said:
And fat32 is a file system type and not what you refer to as a partition type either, what is your point? You are creating an ext2 (formatted) partition and a fat32 (formatted) partition. Semantics aside, call one a dos partition and one a linux partition if that would make you happy, either way you are creating two separate partitions and formatting one as fat32 and the other as ext2. What you call them, or how you label the partition type vs. file system, doesn't make you any smarter than anyone else.
The fact that you would take the effort to point out that ext2 is not a partition type, yet neglecting to point out the same about fat32, kind of makes you seem ignorant. I may sound like a prick, but I have had a few drinks tonight, and seriously...... if you took the time to say "fat32 and linux partition", it really seems as if you are trying to make other people look stupid.
I leave you with some "light" reading.
And... file systems.
Click to expand...
Click to collapse
i just made a typo...11 is fat 12..
but thats not the point...
i got through fdish fine (always was fond of fdisk)
everything looks great until this last point.
after i makefilesystem and i return to fdisk, ITS INVISIBLE...
i though fdisk would find it all.
what is happening, or is that normal ?
FAT32 is a partition-type (0x0B/0x0C), and so is Linux (0x83)...
FAT32 is also the filesystem that resides on FAT32 partitions most of the time, while linux-partition usually contains extNfs...
A question to the OP... Why would a "LINUX savvy" need a guide to partition and format a simple block-device?
why do we get the errors (not so savvy am i...but maybe the OP is)
heres the error i don't understand
You can't cd into a block device... You mount the filesystem to a directory, doing something like "mount -t filesystem /dev/sdc1 /mnt/sdc1" (filesystem is the filesystem on the block-device, like "vfat" for fat32, or "ext2" for ext2, and the directory "/mnt/sdc1" have to exist).
You're trying to write a partition-table to a partition... Bad idea!
You're doing it right in the low-res full-screen photo, though... Why are you redoing it wrong?
<Actually i made a weird conclusion here before, as a direct result of too little sleep... But to look less like an idiot, i removed it >
For the not so Unix-savvy, i don't recommend using fdisk/mkfs/parted/CLI stuff like that, but use something like gparted, a gtk frontend to parted. It's easy to use, and does everything for you.
Good luck... Oh yeah, kudos for using Enlightenment as your graphical environment!
Oh yeah, i just had a thought about this thread... How the heck is this related to Android Development? This is a basic Unix-utility tutorial!
People, use the correct forums! >_<
Ok the reason you are getting errors is you are trying to do fdisk on /dev/sdc1 which means you are trying to view the partition table on /dev/sdc partition 1. What you SHOULD be typing is fdisk /dev/sdc so it will show all the partitions you created (/dev/sdc1 /dev/sdc2).
Joushou said:
You can't cd into a block device... You mount the filesystem to a directory, doing something like "mount -t filesystem /dev/sdc1 /mnt/sdc1" (filesystem is the filesystem on the block-device, like "vfat" for fat32, or "ext2" for ext2, and the directory "/mnt/sdc1" have to exist).
It can't get the kernel to reread the partition-table, so you need to force it to do this manually.
You can either reload your kernel (The easiest way would be a reboot...), or just reconnect your device.
After that, you should be able to mount the device.
For the not so Unix-savvy, i don't recommend using fdisk/mkfs/parted/CLI stuff like that, but use something like gparted, a gtk frontend to parted. It's easy to use, and does everything for you.
Good luck... Oh yeah, kudos for using Enlightenment as your graphical environment!
Oh yeah, i just had a thought about this thread... How the heck is this related to Android Development? This is a basic Unix-utility tutorial!
People, use the correct forums! >_<
Click to expand...
Click to collapse
The purpose of placing this here a while back is so many people were trying to partition their cards for use with Android apps2sd and they were posting Windows based tutorials. So I decided to create this one based in the Linux world with Linux tools.
And yes you can not "cd" into a block device. The block device (/dev/sdc1) needs to be mounted first (mount /dev/sdc1 /mnt). If you get errors then you need to make sure you put a filesystem on that partition (mkfs.vfat /dev/sdc1).
Oh, yeah, you're right, he's trying to read the partition-table of sdc1... But, he's doing it right in the picture above! (Which i read, and combined with my tired mind, made the conclusion that it was just the usual "Cannot reread partition-table", which you get if you try to modify the table you're running from, which has absolutely no relation to this problem, but again, i'm tired, sorry )
I said the "Block-device != Directory!" thing because he tries to cd into the device-node afterwards... And of course, he gets an error. I just thought i'd clarify that that's not intended to work that way
laptopdragon: You're doing it right in your full-screen photo, but you're messing it up in your window-shot! Why are you redoing it?
And, shafty023, i don't mind the tutorial, it's always good to have someplace for the newbies to look incase they're stuck with a problem, and i understand why it might have seemed as a good place for the tutorial, but this is "Android Development", afterall, and this definitely isn't a thread related to android development
thanks everyone (esp e16 fans)...
im learning as much as posible...
i learnt today
i never "a" (activated) it too.
and i am now using cli as much as possible...( i want to not live by gui if possible)
i also added
mkfs -t vfat /dev/sdb1
to format it as fat32.
was where i made a mistake, as everytime i loaded the SD card into my g1 it would want to format it. reporting its un-usable or needs to be formatted... now...it at least reads its there and doesn't add any files.... i can mount it, and copy to it...(btw i tried 2 different files of rc29)
i think i am not formatting it thoroughly tho.... (and thank you for posting this linux thread)
to summarize, i am doing this in eterm.
su
root# fdisk /dev/sdc
d
p, print
n
p, for primary
1, for (1-4)
1, for 1st cylinder
1201 for last cylinder (its only a 512mb, and 1201 max, should i make it less)
p, for print
t, for change to
c, for fat32 lba (not b for fat32 ? )
a, for activate bootable
w, for write, (exits fdisK)
root # mkfs -t vfat /dev/sdb1
this is what ive done...
as of now...my g1 only goes to the red/ blue/ white screen and does nothing when i hit the power button...??
but refreshes when i hit the camera, or button left of the on/off power button...(than i cna soft reboot it and it starts normal......
but...is the zipped file corrupt ? or is my sdcard not formatted thoroughly ??
any more help folks...(all is appreciated greatly)
There's one problem... You're fdisk'ing sdc, but throwing fat32 on sdb1... That's 2 different devices! you should fdisk and mkfs on the same device! (So if the device is sdc, it should be "fdisk sdc", and "mkfs -t vfat /dev/sdc1"...)
Incase that's just a typo...
It's throwing you into the bootloader... Did you copy the DREAIMG.NBH into the root, with that name? If so, check the md5sum of the file on the SD, and the downloaded file. Alzo, it's not intended to be zipped, inflate it before you copy it to the SD!
If your pc is capable of r/w to the sd, it should be fine... But try to check syslog for errors after you mounted it...
If the wrong device is just a typo, it should be formatted correctly...
I think parted would probably have been a better choice of utility...
XDA user supremeteam256 has written an excellent tutorial on How to Partition SD Card with Ubuntu for Dummies. After reading the tutorial, I asked whether it was possible to repartition an SD card using GParted in Ubuntu without losing any existing data on my ext2 or fat32 partitions (I was not, however, as concerned with my fat32 because it is easily backed up). My goal was to add a linux-swap partition after my existing ext2 partition. Specifically, I wanted to steal 64MB from my ext2 partition and reallocate it to a newly created linux-swap. So, I decided to be the guinea pig and risk losing my data for a greater cause. Well, I didn't end up losing data on either of my partition on either of my phones. I have successfully done this three times--on two G1s and a myTouch.
WARNING: While this worked for me it may not work for you. I am NOT responsible for any and all loss of data that might occur from this process. Proceed at your own risk and ALWAYS back up your SD card before trying this.
Prerequisites
I HIGHLY recommend you first read the tutorial mentioned at the beginning of this post so that you are familiar with installing Ubuntu and using GParted. This tutorial assumes that you have a working version of Ubuntu (I am using version 9.04) on your machine.
Ubuntu
SD Card
Card Reader
Step 1
Open up GParted by clicking System > Administration > Partition Editor. From the drop down menu on the top right-hand side of the GParted screen, selected your SD card. Make sure you select your SD card and NOT your hard drive. You are on your own if you make a mistake here. For this example, I am using a 2GB SD card. Yours may differ so proceed accordingly.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Figure 1: Selecting Your SD Card
Step 2
Once your SD card is selected, right click on each partition and select "Unmount" from the list.
Figure 2: Unmounting Each Partition
Step 3
Once you have unmounted each partition, right click on the ext2/3/4 partition on select "Resize/Move" from the list.
Figure 3: Resizing the ext2 Partition
Step 4
In the dialog box that opens, subtract the number of MB from using the down arrow button on the "New Size (MiB)" box. I would like a 64MB linux-swap partition. My SD card is 500MB (Figure 4) so I will click the down button until the "Free Space Following (MiB)" box reads 64 (Figure 5). An important step is to make sure that the box that reads "Round to cylinders" is UNchecked. This is so there is not partition in between the ext2/3//4 partition and the linux-swap since they must be in order (fat32, ext2/3/4, linux-swap). Once you have resized your partition tot he desired amount, click "Resize/Move."
Figure 4: Resize Dialog Box at 500MB
Figure 5: Resize Dialog Box Resized
Step 5
Next, create the linux-swap partition by right-clicking on the unallocated space that you have just taken from your ext2/3/4 partition and select "New" from the list.
Figure 6: Creating a New Partition
Step 6
The dialog box that opens will be similar to the resize dialog box you used in Step 4. In the "New Size (MiB)" box, enter the number of MB you would like your linux-swap partition to be. Then, select "linux-swap" from the "File System" drop-down menu. Make sure that "Primary Partition" is selected from the "Create as" menu. Again, make sure the "Round to cylinders" box is UNchecked. Once done, click "Add."
Figure 7: Selecting the Size of your New Partition
Step 7
Back in the main GParted screen, click "Apply" from the toolbar to apply the changes.
Figure 8: Applying the Changes
Step 8
When asked if you wish to continue, confirm your changes by clicking "Apply."
Figure 9: Confirm Your Changes
Figure 10: Watch Your Progress
Step 9
You should end up with something similar to what you see in Figure 10.
Figure 11: The Result
If you have any questions regarding this process, feel free to post them here. I don't know how much help I'll be as this is not my expertise but I'll do my best to answer what I can. I have learned, however, that there is always someone on the board who seems to have an answer for most questions. So ask away.
Reserved
Reserved for possible future use.
aaronratner said:
Reserved for possible future use.
Click to expand...
Click to collapse
yo, thanks alot bro. i was trying to figure out how to resize my linux swap. i already have a 32 mb linux swap. so, would it be better to delete the linux-swap and do the steps you did or do you just recommend me resizing my linux-swap. currently i have an 8gb class 6 transcend sd card. i currently have about 6.62gb fat32, about 1000mb (if i remember correctly) for my ext3, and 32mb for my linux-swap. thanks
I would--and this is more opinion that previous knowledge or expertise, delete the linux-swap--resize the ext3 and re-create the linux-swap. However, I don't think it would really make a difference which way you go. They are both essentially the same thing. Remember, there is a chance of data loss, particularly if your ext3 partition is full (the free space would have to come from somewhere). I have, however, successfully done this twice, both on a G1 and a myTouch. Hope it works and report back results if you try it.
EDIT: Did it a third time to another G1.
ubuntu and gparted
Ok, dl'ed the iso, burnt it, loaded into live cd, got my 4gb sdcard in the reader, started gparted and tried to follow along with superteam256's partition instructions for dummies (found here : http://forum.xda-developers.com/showthread.php?t=535914. The fat 32 partition gets "created" fine, but when I try to add a second, it gives me an error saying only one can be "primary" and that I have to create an extended partition even if that means removing the primary. So I tried to create just an extended, using the whole card, and then logicals afterwards, which didn't work. I tried to create the ext2/3 (not primary) and add the fat32 after, still gives me the same error.
*EDIT: When the first primary partition is created, it does not give me anything but "New" when I right click so I can't even tell it this one will be "extended".
On a side note, I have tried adb, but for some reason after the frist 2 commands it stops working and I have to reboot, unplug my phone, and then it works...for another 2 commands. I really want to run hero on my rooted mt3g US 32B. So far the only ROM I have been able to load is some weird hacked version of the original OS (it's cool, but I wanna try HERO!!)
Anyone got some commandline (linux preferrably) directions on creating the sdcard partitions and filesystems?
Thanks!
I partioned my 8GB SD with gparted, and apps2SD is working now. But everything is moving to main FAT32 partion. How can I access or use other 3 partitions (ext3, linux-swap, fat32 at end). Any help
ykhehra1 said:
I partioned my 8GB SD with gparted, and apps2SD is working now. But everything is moving to main FAT32 partion. How can I access or use other 3 partitions (ext3, linux-swap, fat32 at end). Any help
Click to expand...
Click to collapse
Access it how? Through the phone? PC? Only the fat32 shows up in Windows and in non-root file explorers on the device. The files on the ext partition are usually located in /system/sd depending on the ROM. This can only be accessed via linux using a root explorer on the device, terminal emulator or ADB.
rmarquez1974 said:
Ok, dl'ed the iso, burnt it, loaded into live cd, got my 4gb sdcard in the reader, started gparted and tried to follow along with superteam256's partition instructions for dummies (found here : http://forum.xda-developers.com/showthread.php?t=535914. The fat 32 partition gets "created" fine, but when I try to add a second, it gives me an error saying only one can be "primary" and that I have to create an extended partition even if that means removing the primary. So I tried to create just an extended, using the whole card, and then logicals afterwards, which didn't work. I tried to create the ext2/3 (not primary) and add the fat32 after, still gives me the same error.
*EDIT: When the first primary partition is created, it does not give me anything but "New" when I right click so I can't even tell it this one will be "extended".
On a side note, I have tried adb, but for some reason after the frist 2 commands it stops working and I have to reboot, unplug my phone, and then it works...for another 2 commands. I really want to run hero on my rooted mt3g US 32B. So far the only ROM I have been able to load is some weird hacked version of the original OS (it's cool, but I wanna try HERO!!)
Anyone got some commandline (linux preferrably) directions on creating the sdcard partitions and filesystems?
Thanks!
Click to expand...
Click to collapse
use the command: fdisk
for instructions how to use fdisk
type fdisk --help(or fdisk -help or something)
or man fdisk
Excellent tutorial. Unfortunately, it doesn't work for me. My SD card is already partioned using ROM Manager / Clockwork Recovery. I currently have 15 GB FAT32 and 1 GB ext2 (I guess).
Running Ubuntu 10.10, I've connected the phone via USB and I can access the FAT 32 partition via Nautilus/Explorer.
Using GParted, I can only see 15 GB of unallocated space (as /dev/sdb). The FAT 32 is not recognized as such and the 2nd partition doesn't even show.
Using the Ubuntu Disk Utility, /dev/sdb is reported as 15 GB on HTC Android Phone but unpartioned.
Any idea of how to proceed without wiping everything and with working on the whole 16 GB?
This tutorial will show you how to Upgrade / Change to a new SD card having an EXT2/3 partition. This tutorial is for Windows platform only and assumes that you are comfortable with doing some basic functions with your phone.
Disclaimer:
I take no responsibility for any damage (if it occurs) to your phone by following the the steps mentioned below. Use it at your own risk!!! You have been warned.
Prerequisites:
1. HTC Desire - Rooted
2. Clockworkmod recovery installed on your phone (my version is 3.0.0.5?)
3. Nandroid
4. Download and Install - Freeware: Easeus Partition Manager
5. A windows PC and HTC desire data cable.
Steps:
1. Create a full nandroid back up for your current ROM from Clockworkmod Recovery screen. [No Mybackup or Titanium Backup - Nandroid is Required]
Boot phone into Clockworkmod recovery -> backup/restore -> backup (takes a few minutes) will make a complete backup of you rom, stored in clockwordmod folder of your SD-card (folder named with date and time) [Thanks Papedo]
2. Connect your HTC desire to your PC via your data cable and save the whole "Clockworkmod" folder from your SD card to a folder in your PC. Save any other files which you may want to in that folder.
3. Safely Eject the SD card.
4. Turn off your phone.
5. Remove the Old SD Card and Insert the new one.
6. Boot phone into Clockworkmod recovery.
7. Now select the option - "Partitions Menu"
8. Select option - "mount USB storage"
9. Open Easeus Partition Manager.
10. Create two partitions on the SD *exactly* in this sequence (assuming you have a 16gb card - windows will show 14.98gb free):
a. Fat32 partition - Primary - 14gb
Method: Right click unallocated space on your SD card and select "Create" -
A create partition dialog will pop up - use the following values:
Create As: Primary
File System: Fat32
Partition Size: 13980
Hit: OK
b. Ext2/3 partition - Primary - 1 gb
Method: Right click unallocated space on your SD card and select "Create" -
A "Create Partition" dialog will pop up - use the following values:
Create As: Primary
File System: Ext2 or 3
Partition Size: 1000
Hit: OK
11. Your SD card partitions should look like this (see DISK 3):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
11. Hit Apply button which will appear on the left hand side.
11. Go to Windows Explorer to ensure that you can see and access the newly created FAT32 partition.
12. Once you are satisfied with the FAT32 partition go and copy paste all the files and folders from the backup of your OLD SD Card made on your PC to the new SD Card.
13. Once this process if finished reboot the phone into recovery.
14. Go to Nandroid - Select Restore. Choose the Backup you want to restore.
15. Nandroid will take sometime to check MD5 sum of the recovery image, be patient. If everything is OK, Nandroid will start restoring the image and will start copying files.
16. Once finished it will display "Restore Complete". Press the back button now, select "Reboot System Now".
Go Crazy!
Now you have a full functional new SD card with EXT 2 / 3 partition.
[Credits if you post this elsewhere]
CS
Similar tutorials:
Using other freeware:
MiniTool Partition Wizard - Credits: Kneros
Parted Magic - Credits: Svennetjee
Good work, this will surely help some people.
Sent from my HTC Desire using XDA App
b3ndik said:
Good work, this will surely help some people.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Thanks. Have a good day.
Hi celestialspring,
Nice explaining with details.. I have problem before kicking off.
i used unrevoked to root, have rom manager installed , clock work mod 2.5.0.7 i am using the latest leedroid rom.
How do i obtain a Nandroid back up to backup as u have required apart from titnanium and backup pro? I don't know how to get nandroid back up from. please advice. thanks a million.
Boot phone into Clockworkmod recovery -> backup/restore -> backup (takes a few minutes)
will make a complete backup of you rom, stored in clockwordmod folder of your SD-card (folder named with date and time)
I know that this is a Windows-only tutorial, and thanks for sharing.
However, when dealing with Android and its (advanced) aspects is always a good thing to have a Linux OS handy: in this case, having native access to the sdcard's ext partition, one can simply copy/paste its contents making the whole process a matter of seconds. Moreover, the gparted utility that ships with most Linux distributions can play the Easeus Partition Manager's role perfectly.
@ngel said:
I know that this is a Windows-only tutorial, and thanks for sharing.
However, when dealing with Android and its (advanced) aspects is always a good thing to have a Linux OS handy: in this case, having native access to the sdcard's ext partition, one can simply copy/paste its contents making the whole process a matter of seconds. Moreover, the gparted utility that ships with most Linux distributions can play the Easeus Partition Manager's role perfectly.
Click to expand...
Click to collapse
Personally, I wouldn't want to copy and paste the data within an ext partition. nandroid will do a better job of that i feel,
However, Gparted would definitely be my weapon of choice. In my professional experience, windows based partition managers have never been great at handling alien file systems
About the pratition softwares please also add information about GParted, Partition Wizard, etc.
Those are similar freewares just like the one posted.
EASEUS Partition Manager didn't do the trick for me, but Parted Magic did.
Wrote another tutorial myself: http://www.everythinghtcdesire.com/tutorials/how-to-partition-your-microsd-card-for-app-storage
Svennetjee said:
EASEUS Partition Manager didn't do the trick for me, but Parted Magic did.
Wrote another tutorial myself: http://www.everythinghtcdesire.com/tutorials/how-to-partition-your-microsd-card-for-app-storage
Click to expand...
Click to collapse
Easeus will work but you need to create the partitions exactly as mentioned in the tutorial. If you create the EXT3 partition before the FAT32 partition it won't work. I learnt it by trial and error
Perhaps the biggest advantage of using Easues is that one does not need to burn a CD and then boot from it. I hate booting off my current work envoirnment just to partition an sd card.
This was the quickest and easiest way I found which worked for me. People who are more tech savvy can use Gparted or whatever.
aaa said:
About the pratition softwares please also add information about GParted, Partition Wizard, etc.
Those are similar freewares just like the one posted.
Click to expand...
Click to collapse
See reply above.
No need to reserve the last portion for linux swap? Just only two partition (FAT32 & EXT3)?
Great .... ! But i have one question...2GB for android .. is it possible ? Or 1gb is really enough ?
yuna75 said:
No need to reserve the last portion for linux swap? Just only two partition (FAT32 & EXT3)?
Click to expand...
Click to collapse
I am not quallified to answer that question. But in my day-to-day workings, I have no troubles after formatting the card as above.
ta. cs
Oggy972 said:
Great .... ! But i have one question...2GB for android .. is it possible ? Or 1gb is really enough ?
Click to expand...
Click to collapse
2gb. I don't see any issues.
1 gb -- Yes, it is possible only if you want to run older versions of many ROMs. If you intend to run DHD ports then I don't recommened it.
aaa said:
About the pratition softwares please also add information about GParted, Partition Wizard, etc.
Those are similar freewares just like the one posted.
Click to expand...
Click to collapse
Information added about two new freeware software. See updated original post. ta.
celestialspring said:
Easeus will work but you need to create the partitions exactly as mentioned in the tutorial. If you create the EXT3 partition before the FAT32 partition it won't work. I learnt it by trial and error
Perhaps the biggest advantage of using Easues is that one does not need to burn a CD and then boot from it. I hate booting off my current work envoirnment just to partition an sd card.
This was the quickest and easiest way I found which worked for me. People who are more tech savvy can use Gparted or whatever.
Click to expand...
Click to collapse
Afternoon all.
My 4GB card is full. I'm running a rooted Desire, S-off with Amon-Ra recovery. My PC is running Linux. I want to swap to a bigger card. I'm fine with partioning the new card with G-Parted, and also cool with copying the data between FAT32 partitions.
I'm not so sure I know what I'm doing with the ext4 partition. Will Amon-Ra Nandroid backup and restore do the whole contents of the ext4 partition? So does the process go a bit like this:
nandroid backup
copy FAT32 partition to PC
partition new card
copy FAT 32 data from PC to new card
take the old card out and put the new one in
boot into recovery
nandroid restore
reboot
Have i got that right, or have I misunderstood something?
That's correct.
Sent from my A7710 using Tapatalk 2
Trogladyte said:
Afternoon all.
My 4GB card is full. I'm running a rooted Desire, S-off with Amon-Ra recovery. My PC is running Linux. I want to swap to a bigger card. I'm fine with partioning the new card with G-Parted, and also cool with copying the data between FAT32 partitions.
I'm not so sure I know what I'm doing with the ext4 partition. Will Amon-Ra Nandroid backup and restore do the whole contents of the ext4 partition? So does the process go a bit like this:
nandroid backup
copy FAT32 partition to PC
partition new card
copy FAT 32 data from PC to new card
take the old card out and put the new one in
boot into recovery
nandroid restore
reboot
Have i got that right, or have I misunderstood something?
Click to expand...
Click to collapse
Just use 4ext recovery, waay better in every way and much more features. U can partition ur new sdard with it to (guide in my sig)
Using 4ext recovery to backup, simply go to
Backup/restore
Backup
Then copy "clockworkmod" folder to pc
Then once uv partitioned ur new sdcard, copy the clockworkmod folder back to new sdcard and in recovery go to
Backup/restore
Restore
Job done
CWM doesn't play with this phone, so I'm using Amon Ra
I just tried the process with Gparted as set out above, and it doesn't seem to have worked. Lots of apps are missing, I don't have the ext4 partition available, and no account details are loaded.
---------- Post added at 03:49 PM ---------- Previous post was at 03:45 PM ----------
And I also can't boot into recovery - it just boots normally
---------- Post added at 04:04 PM ---------- Previous post was at 03:49 PM ----------
Took the battery out, and put the old SD card back in and miracualously I can now get into recovery. Did a Nand resore but the screen is now flashing white every few seconds. What the hell?
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Also, I installed the update from Mioze7Ae, by copying the .zip to the OpenRecovery/updates folder on my SD, doing a recovery boot, and applying the update. When the update was applied it said successful, but there was a message before this line saying:
E: Can't mount /dev/block/mmcblk0p2
(Invalid Argument)
Install from sdcard complete.
I think this is part of the issue, but I don't really know what I'm doing. After this I rebooted the phone, and got a notification Removed SD card, and when I connect to PC no drive is shown (just Removable Disk G:, and nothing in shown in MiniTool Partition Wizard.
I'm guessing the issue was caused my me not formating the SD properly. Can anyone help out? I would like to avoid loading Dexter's rom from scratch if possible, to keep my data/apps, but am willing if that's the only way.
Sorry for the long post and if this question's been answered before, as I said I did do quite a bit of searching and couldn't find any comprehensive solution. Thanks
berlin85 said:
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Click to expand...
Click to collapse
From what I've read, I'm pretty sure you have to use primary partitions and logical's don't work on the phone. You also have to set the boot flag (a.k.a. active partition) on the fat partition. Based on what you've written (which was very good by the way, the detail was helpful), I don't think you have to reinstall the ROMs. I think you just need to repartition/format your card properly.
This is probably an even dumber question, but I'm not sure how to repartition/format the card at this point. Nothing is showing up in Windows, just Removable Disk with size shown of 0 bytes, and when I open MiniTool Partition Wizard, all I see is my PC drives, nothing for the SD.
I'm connecting with the SD in my phone if that makes a difference, I don't have a reader on my pc.
berlin85 said:
This is probably an even dumber question, but I'm not sure how to repartition/format the card at this point. Nothing is showing up in Windows, just Removable Disk with size shown of 0 bytes, and when I open MiniTool Partition Wizard, all I see is my PC drives, nothing for the SD.
I'm connecting with the SD in my phone if that makes a difference, I don't have a reader on my pc.
Click to expand...
Click to collapse
Maybe try a linux boot CD. Ultimately, you may have use an adapter and go directly to the PC, though. It could be that the phone doesn't understand the partition table with the logical partitions so it can't export it anymore.
The phone's software (even recovery) doesn't expect that partitions can change while it is booted. For example, (you don't have one working but if you did) when you export the partitions for USB access, the sd-ext partition is both *not* unmounted and also simultaneously exported as a raw device. This can cause all sorts of filesystem corruption on the ext partition because of kernel caching on the desktop and in the phone.
Yay, used a comp at school with a microSD reader, repartitioned the ext3 making it primary rather than logical... seems to be working fine
easy solution after all! thanks for the help, really appreciate it
berlin85 said:
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Also, I installed the update from Mioze7Ae, by copying the .zip to the OpenRecovery/updates folder on my SD, doing a recovery boot, and applying the update. When the update was applied it said successful, but there was a message before this line saying:
E: Can't mount /dev/block/mmcblk0p2
(Invalid Argument)
Install from sdcard complete.
I think this is part of the issue, but I don't really know what I'm doing. After this I rebooted the phone, and got a notification Removed SD card, and when I connect to PC no drive is shown (just Removable Disk G:, and nothing in shown in MiniTool Partition Wizard.
I'm guessing the issue was caused my me not formating the SD properly. Can anyone help out? I would like to avoid loading Dexter's rom from scratch if possible, to keep my data/apps, but am willing if that's the only way.
Sorry for the long post and if this question's been answered before, as I said I did do quite a bit of searching and couldn't find any comprehensive solution. Thanks
Click to expand...
Click to collapse
Did you try to format sd card with your phone in sd card and memory setting and then to create again ext3 partition with MiniTool Partition Wizard ?
Be sure to save data in your card first.
Mine is a galaxy SII, but I'm facing the same problem. I've formatted my microSD to EXT3 via MiniTool Partition but phone does not recognize it.
It says it's damaged and asks if I want to format it, after formatting thru the phone it returns to FAT32 and works perfectly again.
I've read more than 20 threads among several forums but I'm still not able to fix it.
Can you guys help me?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Did you create a second partition as ext3? AFAIK the first partition must be FAT (and marked bootable). Maybe you got that backwards?
Are you trying to partition the internal SD or the external. Samsung already has the internal partitioned into one Fat and another for your apps and cache. That is why your phone specs show 16gb internal but you only really have 14gb to put music, pix,...on. 2gb are already allotted for apps and cache. You can and should only partition the external one. My question is why are you trying to do this on an SGSII when it is not needed. No SGSII rom needs to have a partition and any Voodoo kernel will convert your system, data, cache and DB.data files to Ext4 anyways. Seems needless.
Mioze7Ae said:
Did you create a second partition as ext3? AFAIK the first partition must be FAT (and marked bootable). Maybe you got that backwards?
Click to expand...
Click to collapse
Had no success doing this, it shows the same information saying that "SD card is damaged". I really don't know what to do to make this work.
---------- Post added at 09:26 PM ---------- Previous post was at 09:24 PM ----------
Woodrube said:
Are you trying to partition the internal SD or the external. Samsung already has the internal partitioned into one Fat and another for your apps and cache. That is why your phone specs show 16gb internal but you only really have 14gb to put music, pix,...on. 2gb are already allotted for apps and cache. You can and should only partition the external one. My question is why are you trying to do this on an SGSII when it is not needed. No SGSII rom needs to have a partition and any Voodoo kernel will convert your system, data, cache and DB.data files to Ext4 anyways. Seems needless.
Click to expand...
Click to collapse
I'm trying the external SD. It's a ADATA 32GB microSD.
The reason I want to do this is to be able to copy files over 4GB.
Dear Friends!!!
I have puchased a memory stick micro sd 32 gb for my LWW.
I've tried several times to partition it with two primary partition. One Fat32 primary partition about 30 gb, and the other primary partition about 1 gb. I've tried to use for the second partition Ext. 2, 3 and 4, but when I play "Aply" , the mini partition wizard creats it with non free space on the second partition.
I can´t understand what is going on with it. I formatted the microsd several times and the result is always the same, no free space on the ssecond partition.
I've tried to use Easus too, the result is the same. I've tried to make 3 partition, the 3rd. one Linux swap, about 32mb. Same result, non free space on second partition.
I need your help, I am worried about buying another and having the same problems. Please, please, help me please.: Llorando:
eli_porto said:
Dear Friends!!!
I have puchased a memory stick micro sd 32 gb for my LWW.
I've tried several times to partition it with two primary partition. One Fat32 primary partition about 30 gb, and the other primary partition about 1 gb. I've tried to use for the second partition Ext. 2, 3 and 4, but when I play "Aply" , the mini partition wizard creats it with non free space on the second partition.
I can´t understand what is going on with it. I formatted the microsd several times and the result is always the same, no free space on the ssecond partition.
I've tried to use Easus too, the result is the same. I've tried to make 3 partition, the 3rd. one Linux swap, about 32mb. Same result, non free space on second partition.
I need your help, I am worried about buying another and having the same problems. Please, please, help me please.: Llorando:
Click to expand...
Click to collapse
With which partition manager did you format the card and have you tried to partition the card with a computer?
eli_porto said:
Dear Friends!!!
I have puchased a memory stick micro sd 32 gb for my LWW.
I've tried several times to partition it with two primary partition. One Fat32 primary partition about 30 gb, and the other primary partition about 1 gb. I've tried to use for the second partition Ext. 2, 3 and 4, but when I play "Aply" , the mini partition wizard creats it with non free space on the second partition.
I can´t understand what is going on with it. I formatted the microsd several times and the result is always the same, no free space on the ssecond partition.
I've tried to use Easus too, the result is the same. I've tried to make 3 partition, the 3rd. one Linux swap, about 32mb. Same result, non free space on second partition.
I need your help, I am worried about buying another and having the same problems. Please, please, help me please.: Llorando:
Click to expand...
Click to collapse
if you're willing to use a computer I would recommend Paragon Partition Manager (for Windows), or gparted (for mac).
Although I haven't created or used more than one partition on an sd card, I would recommend changing to see if the partition is mounted. It could be that it has 0MB because it is not mounted.
Hope this helps.
I always use MiniTool® Partition Wizard Home Edition (http://www.partitionwizard.com/download.html) to do partitioning, and have had no problems with it. Creating ext2/3 partiotions on windows can be tricky however. There is a possibility that it is created alright, but that your partition manager just says that the space is not free.
Did you check if it works on your phone and if you can see if the partition has free space on your phone (check for example with rootexplorer)? You can also just try a script and see if it works. I recommend the d2ext+ script from here.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this is what I'm trying to do
this is what I get
Man it has been a long time since I used that program but IIRC you can only have 1 Primary partition. I think the others need to be set to Logic.
When I get home tonight, I'll boot it up and see if I can find anything that you might be missing. Seems like it should be a small little drop down or tick. From your screenies, it looks like it is set up correctly but I'll look at it when I get home from work and post some thoughts.
eli_porto said:
View attachment 1260726
this is what I'm trying to do
View attachment 1260728
this is what I get
Click to expand...
Click to collapse
Could it be that you are not setting the partition type correctly? If you set up a new partition it should look like this:
So, file system ext3/4, primary partition.
Woodrube said:
Man it has been a long time since I used that program but IIRC you can only have 1 Primary partition. I think the others need to be set to Logic.
Click to expand...
Click to collapse
This is incorrect, you can have 4 primary partitions, so there's no need to set them up as logical.
eli_porto said:
View attachment 1260726
this is what I'm trying to do
View attachment 1260728
this is what I get
Click to expand...
Click to collapse
Can your Windows version read ext4 partitions? That could be a clue as to why it can't read/mount the new partition.
I would also like to suggest to make one partition primary and the other one logical just to be one the safe side.