This is a guide to use gparted to re-size and add a new partition without having to reformat your entire SDcard.
gparted is installed by default in most Linux distributions now and this will work with all flavors of Linux, you may have just a couple of different quirks from the different distro's.
DISCLAIMER: I take no responsibility for lost or corrupted data that you may result from this procedure. I take no responsibility for corrupted and unusable SD card's that may result from this procedure.
What you will need:
SD Card
Linux/Linux LiveCD/DVD/
SD Card Reader
INSTRUCTIONS
Ubuntu 8.10 Linux
Plug your SD card in, it should mount your partitions on the card.
If you get an error saying you do not have permissions to mount this partition that is ok. It is the FAT32 partiton that didn't mount.
Open up a Terminal Shell (you can find this in Applications in Ubuntu or in System Tools in Fedora)
type mount in the terminal
$ mount
At the end of the list you will see a mount point something like this
/dev/sdb2 on /media/disk type ext3 (rw, noexec, nousid, nodev)
Take note of /dev/sdb2 the sdx is your SD Card. the x is the letter that is next in the device chain. sdx does not stand for SD Card, sdx is how linux Identifies SCSI, SCSI Emulated and SATA devices. USB devices are mounted as SCSI Emulated so if you had a SATA drive that would be sda and if you added a thumb drive that would be sdb. The number that follows that sequence is the partition number.
OK Lets move on.
In the terminal type
$ sudo gparted
This will open up the gparted software
In the upper right of the gparted window there is a drop down box, click on that and select your drive.
We will do this step by step applying each action as we go it is possible to do them all at once but i like the step by step approach
With your sd card selected from the drop down box right click on the FAT32 Partition (the green partition) and select resize from the list.
In the resize dialog box type in 288 in the box following Free Space Following (mib). When figuring out the swap size remeber that it is 1.5 times the ram and since the G1 has 192 ram it is 192 * 1.5 = 288
Click resize
Now click the apply button
After the resize has completed right click on the unallocated space (the gray space) and select new
In the Create New Partition in the filesystem dropdown box select linux-swap then click add then click apply
You now have 3 partitions on your SD Card without losing any data.
POSSIBLE ERRORS and FIXES
The new linux-swap partition didn't format
This occasionally happens, what gparted does is actually create the partition and then format it. Chances are that the partition was created but an error happened in formatting. Just rerun gparted and select the partition and reformat it.
FAT32 Partition won't resize
If there is a set of keys in front of the fat32 partition that means this partition is mounted and it needs to be unmounted to resize it. Right click on the keys and select unmount, then resize
Windows
You need to use Partition Magic and it works the same way. Sorry for the lack of instructions but I do not have Partition Magic anymore so I can not go into detail
Related
I've deleted my ext partition of 500MB so that i could use the new froyo apps2sd which is in the CM6 and now i want to add to the remaining fat32 partition without losing any data on sdcard...
but i don't knw how to rejoin the unallocated 500MB and the fat32 space together using gparted can someone tell me how can i do that?
Copy everything off yout fat32 partition to your computer, then go to the Control Panel > Administrative Tools > Computer Management > Disk Manager
There you'll see a list of the partitions of your SD card.
Remove all partitions.
Create new partition that uses all the space.
Format partition with Fat32.
Copy data back from the computer to SD card.
Done.
You can also resize partitions in the console of your g1 using the sdparted script manually. Don't have a link but the commands are there. I have a mytouch now and don't remember them off the top of my head. Its great for removing swap partitions!
Sent from my HTC Magic using XDA App
When formatted with EXT3, can i simply drop anddrag stuff into /sdcard ie folders for music and stuffs??
Thanks.
When you partition your card its with a fat32 partition and and ext2/3/4 partition. your ext partition will be used by your linux android platform for a2sd+ feature and wont be accessible to you when you connect your device as a drive.
However the fat32 partition will be visible to you and you can put all your stuff on it normally as you do.
hope this helps.
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
When you accidentally destroy an SD card with incorrect partitioning or the SD card pops out of its slot during S-OFF attempts, you may be out of luck. Until now.
I have discovered a way to fix a dead SD card. You will need four things.
1. A dead SD card.
2. Linux Knowledge.
3. Patience (depending upon how big your SD card is).
4. Linux.
THIS WILL DELETE ALL OF YOUR DATA
Create a linux boot disk. I recommend Ubuntu since that's what I used. Stick it in your computer and boot from the drive. Skip this step if you already have a linux box.
Next, you need to install GParted and have admin access on the computer.
The most common cause of an SD card is unallocated space from something.
Start GParted.
In the upper right hand part of the window, select your drive. Once that happens, you need to allocate the space. Click on "Device" then "Create Partition Table". Select the options you want. It is recommended that you choose "msdos" encoding.
Once the partitions are created you need to format it. Now this will format it with the permissions from the device you are using, so don't put data on it until you can switch back to windows.
Find a Windows machine that has permissions to format memory devices.
Format the device as a standard user or Admin user.
Put your data back on the card.
Enjoy!
[TRANSLATED, SORRY FOR ANY ERROR
Hi everyone, I have a problem with a 16gb micro SD HC U1 Evo.
I explain it in steps:
1) I have a samsung j5 2016 (sm-j510fn) and moving continuously from the internal memory to the sd ext I almost filled the latter, so I installed the recovery twrp and the magisk root to use Link2sd / app2sd
2) I saved the files of the micro sd in a backup folder on the pc
3) I downloaded MiniTool Partition Wizard and used it (as a guide) to create a primary partition in fat32 and another in ext3, respectively 10.4GB and 4.5GB
4) I transfer some files from the backup folder of the pc to the micro sd
5) Android warns me that the sd card is damaged and the formatting process stops at 20%, after which an error message appears
I have already ordered a new micro sd, so don't comments "buy another" and the like, ty.
To recover it I REALLY tried every tool / program, followed every guide and cursed every saint.
I tried to recover it by reusing the MiniTool Partition Wizard, then an Easus program, after which I tried with the win10 disk manager, the CHKDSK / F and CHKDSK / F / R commands, the diskpart command, 2 programs for a low-level format. No way.
The problem is an image file (.jpg) with a size of 0kb, which I will call namefile for clarity. Below are the errors that I find with each procedure:
1) MiniTool Partition Wizard / Easus / win10: Unable to format
2) CHKDSK / F: namefile.jpg the first allocation unit is not valid. It will be truncated
3) Diskpart (create partition primary): usable space for this operation
Specific that, I do not know how, the files within the micro sd are all erasable but always reappear, as if the microsd does not save the changes made within it. The same happens when I delete the ext3 partition, I extend the fat32 partition and format it all.
I have also used unlocker to delete only namefile.jpg, but in any case everything returns to the initial situation. The files are readable and executable, except for the file in question.
The attempt to change the microsd via the phone's twrp recovery is also useless.
Finally I inserted the sd card into a sd adapter to remove any protection and I tried again by removing the readonly attribute via CMD, to no avail.
By now it has become a personal challenge that I now propose to you.
Further information will be provided in the comments to your answers
Good evening