[Q] Aligning FAT32 filesystem to partition - Desire General

Hello
I am trying to align my FAT32 partition on my SD card as per:
dubdubdub.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
I'm having issues completing the process because my SD card has a FAT32 partition followed by an EXT4 one, whereas the guide formats the entire SD as FAT32. I've tried heaps of different things to get it working, even doing it successfully on a 4GB flash drive which was fully FAT32, but I'm convinced having the EXT4 partition after is causing problems.
When I go to (W)rite the heads/sector changes to the partition I get this error:
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
No changes are made, not even after rebooting Linux.
Has anyone else had success with aligning their FAT32 partition with an EXT4 following it? I could try doing the entire SD card as FAT32, align it, resize it, and create an EXT4 after aligning it, but wasn't sure if this would work. I'll give it a try and see how I go.

I know its not helpful, but I was planning on doing this next time I flash a new ROM but haven't got around to it yet...
However, the link above which is clickable is here: http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
I imagine you need to change this bit:
Create a new partition that starts at cylinder 1 and ends at the end of the disk
to
Create a new partition that starts at cylinder 1 and ends at x from the end of the disk
where x is the size of the EXT partition you want to create
sadly it doesnt give the commands and i can't read the help here at work at the moment

I don't believe in such alignment.
Remove all partitions from gparted or windows disk management.
Download SD Formater utility from SD Card Association. And format your card. Full format.
Boot into gparted and shrink fat32 partition. Take note that there is 4MB in front of fat partition. Make sure it stay that way. In free space create ext partition. Use MB alignment in gparted.
That's all.

vr5411 said:
Use MB alignment in gparted.
Click to expand...
Click to collapse
I don't remember seeing that option?
what about the flashable ext alignment zip's?

Related

D2EXT partitioning issues!

hi! this is really doing my head in.
I have a 16gb card, im using gpart on ubuntu to partition the card as follows:
fat32: 13.53
ext4: 1
ext4: 299mib
swap: 108mib
after my phone doesnt recognise it, i cant turn the phone on, i cant flash anything in recovery because of an "e can't mount" error.
when i plug it into windows it says it need to be formatted, and if i go to disk manager and try formatting the fat32 part it ends up formatting the 1gb ext4 so when i set everything up on my phone i only have 1gb sdcard space!!
if anyone can let me know why this is all happenning i would greatly appreciate it! is there something im missing in the process?
thanks.
EDIT: the system does boot but it says i have a blank sd
then i get a notification saying: UIDs on the system are inonsistent, you need to wipe your data partition or your device will be unstable.
with a button that says: i'm feeling lucky :L
You only need 2 partitions. 1 extra and 1 fat32. Fat32 needs to be the first primary partition and extra needs to be the second primary partition. You don't need a swap either. You could just boot into recovery and do it in there but that's only ext3 but you could still use gparted to upgrade it to ext4.
Sent from CM7
Just partition it in recovery to fat + 1ext partitions, then download SD align tool from Baadnewz blog which will align ext partition and will convert it to ext4
Sent from my HTC Desire using XDA App

[Q] Getting ext3/4 partition for InsertCoin ROM...

Quick summary:
Recently got new SanDisk 16GB MicroSD and used CWM 5.0.2.0 to create a 1024mb ext partition. It says "successful" but I don't think it really did successfully create the ext partition. Tried to partition manually using 'parted' with no luck.
Any ideas/suggestions on how to partition properly?
Gory details...
Using HTC Desire GSM that is already S-OFF-ed and running InsertCoin 1.0.8 (on old 2GB sd card).
With arrival of new SD card I thought great, upgrade to InsertCoin 1.1.1 (was going to go for 1.1.3 but saw that it had a couple of problems)
Done it all before, easy enough I thought...
* Swap SD Cards
* Format SD with 1024mb ext, 0mb swap via CWM (originally using older than v5)
* Wipe settings, wipe cache, wipe dalvik cache
* Put Insertcoin zip onto sd card
* Install & reboot
Then it hung...forever on reboot (forever being 30min+)
Tried the above couple of times (eg. upgrade CWM) etc... and even tried putting the old 1.0.8 on - but still nothing just hung on boot screen. Put old SD card back in, and everything worked again (lost settings etc, but it booted up into Android)
So I started investigating and ended up looking into the partitioning of the new SD card....
Here is the output of "print" from "parted"
Code:
Model: SD (sd/mmc)
Disk /dev/block/mmcblk0: 16.3GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 15.3GB 15.3GB primary fat32 lba
2 15.3GB 16.3GB 1024MB primary
(note the missing 'ext3' under file system for partition 2)
So I then upgraded to latest CWM (as per their website) then tried the partition again... same result as above.
Then I went and followed manual partitioning tutorials (eg. http://forum.xda-developers.com/showthread.php?t=534714, and a couple of others on the web) and still "print" gave the above output.
With the manual partitioning, I thought, maybe it's just silently not showing ext2 but it really is ext2, will just upgrade it to ext3 and see if it'll show ext3...
So I ran "sdparted --upgradefs ext3" (for some reason upgrade_fs could not be found)... and that failed, giving:
Code:
checking script requirements...done
unmounting all partitions...done
you have chosen to upgrade /dev/block/mmcblk0p2 to ext3.
this action will NOT delete any data from sdcard.
do you want to continue? (Y/n) Y
adding journaling to /dev/block/mmcblk0p2.../sbin/e2fsck: Bad magic number in super-block while trying to open /dev/block/mmcblk0p2
/sbin/tune2fs: Bad magic number in super-block while trying to open /dev/block/mmcblk0p2
Couldn't find valid filesystem superblock.
done
So, now all I can think of is for whatever reason, the ext partition isn't being created properly on my sd card, thus the reason it is hanging on boot screen (read somewhere that if you don't have an ext partition, it will never get past boot screen).
Reason I believe the ext partition isn't being created properly is because in all tutorials they all have "ext2 or ext3" in the output. Even more so, checking my old SD card I get the following:
Code:
Model: SD 00000 (sd/mmc)
Disk /dev/block/mmcblk0: 2003MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 979MB 979MB primary fat32 lba
2 979MB 2003MB 1024MB primary ext3
(Note: old SD card has ext3... this was partitioned using CWM)
Am I missing something super obvious? or doing something wrong?
How am I meant properly create an ext3 partition (and make sure it has been created) on the SD card?
Any help would be greatly appreciated!!!
Thanks!!!
pyko
ps. not sure if this fits in this forum... but it is a question regarding my htc desire...
Try using Gparted, not parted.
gparted as in: http://gparted.sourceforge.net/
ie. a standalone application to partition the sdcard?
Indeed
10char
Or you can use this: http://www.partitionwizard.com/free-partition-manager.html You can create EXT4 partition without changing cluster size (which is why I ditched EaseUS).
Terepin said:
Or you can use this: <URL Removed for the sake of Humanity> You can create EXT4 partition without changing cluster size (which is why I ditched EaseUS).
Click to expand...
Click to collapse
or you can read my Sig
Gparted is the way forward, never fails ;-)
Sent from my HTC Desire using Tapatalk
Ok, it seems like using gparted failed
* Downloaded ISO, burnt to cd, booted up into gparted
* deleted all partitions on sd card
* allocated partition 1 as primary, fat32 (15gb)
* allocated partition 2 as primary, ext3 (1gb)
* apply
gparted went along it's merry way and said everything was created etc - but afterwards it shows a yellow triangle/exclamation "warning" icon next to ext3 partition.
Doing a check fails (error shows the same magic number problem as above) and that partition then becomes "unknown".
I tried formatting to each (ext2, ext3, ext4) but going back to parted and checking via 'print' none of them showed 'ext2/3/4 in the FileSystem column'
Note... ext3/4 both showed yellow warning icon, ext2 didn't (it seemed fine, but still didn't show up as ext2 in parted->print)
Any more ideas what is going on?
ps. using a mac, so can't use partitionwizard.
pps. took a screenshot whilst in gparted... but can't find the screenshot!
If you had a Windows pc I would recommend using h2testw.exe to run tests on the card. It would ascertain if there is a fault on it. I dont know if mac users have a wine equivelant to run .exe's?
Pulled out my old dell laptop and ran the check..
Indeed it seems like the disk is corrupted
Code:
The media is likely to be defective.
1.8 GByte OK (3808784 sectors)
13.3 GByte DATA LOST (28072432 sectors)
Details:56 KByte overwritten (112 sectors)
0 KByte slightly changed (< 8 bit/sector, 0 sectors)
13.3 GByte corrupted (28072320 sectors)
56 KByte aliased memory (112 sectors)
First error at offset: 0x00000000743c2000
Expected: 0x00000000743c2000
Found: 0x00000003ccef0000
H2testw version 1.3
Writing speed: 5.24 MByte/s
Reading speed: 6.27 MByte/s
H2testw v1.4
Is there a way I can fix it? This is a new disk btw
Where did you buy it?
That result to me makes me think its a fake. That its really a 2GB card rebranded and faked to look like a 16GB.
I ordered it from: http://www.crazysales.com.au/
In fact, sometime last year, I ordered both my HTC Desire and a 16GB SD card from them and both worked fine. Until couple months back the SD card suddenly died (completely dead - nothing would recognise it) so I asked for warranty.
After ~1mth, finally got the new replacement card (ie the one discussed in this thread). I guess so far, it seems to be a fake...
ps. the new replacement that they sent to me was not in its original packaging - it was simply placed in the case that I used to send the dead card.
I use 4EXTRecovery and works fine from recovery, easy and fast.
Not sure if that will help me unfortunately I do believe rootSU is right - it is actually a 2GB card made to look like a 16GB card.. the tests seem to indicate that, and I pulled in ~4GB worth of data to the card, the first ~1.8GB worked just fine and then afterwards all the files were corrupt.
Sent an email to crazysales ... now just waiting to see their response...
That is why you always should buy from trustworthy retailers.

Partitioning SD Card

Hi, I have already partitioned my 8gb SD card. I made 1 FAT32 Partition with 1.3gb of unused space, while i used the left memory to make a EXT4 partition with around 6.5gb.... My question is, why the second partition is invisible in windows, and where should i put my music and stuff...... Also, Link2SD says that it can't mount the script because of an invalid argument... Please help me fix this..... I'm using HenseMod6 by the way
Around 1-2 GB of Ext partition is enough. Ext* partitions are linux filesystems and cannot be read by windows. Your music and photos should go on the fat partition.
Your rom may not support ext4, try reformatting it to ext3
Thanks, mate. My ClockworkMod Recovery helped mi fix it..

Remove Ext2 partition from sd card

I have done a lot of searching and i cant seem to find out how to remove the ext2 partition and get all my space back to fat32. I've tried every partition tool under the sun. Acronis, sd formatter, partition wizard, from windows, from recovery all of them. I can only see the fat32 i have and not the ext2 i made. None of the programs see this partition so cant remove it. Any idea what i can do about this
gogh4broke said:
I have done a lot of searching and i cant seem to find out how to remove the ext2 partition and get all my space back to fat32. I've tried every partition tool under the sun. Acronis, sd formatter, partition wizard, from windows, from recovery all of them. I can only see the fat32 i have and not the ext2 i made. None of the programs see this partition so cant remove it. Any idea what i can do about this
Click to expand...
Click to collapse
Can do it with amonra recovery

[GUIDE] Repartitioning SD Card for link2sd for DUMMIES.

Alright, this is a guide for those people who need to increase/decrease their size of ext2/3/4 partition or even change SD card as I did from 2 GB Samsung to 4 GB Kingston Class 4.
This has been tested on windows 8.
Windows only recognizes the first partition of any removable device, this is where the problem lies while changing SD card or while making the amendments to your Ext partition. You apps will all be LOST if you format without care. Don't get hyper, this is quick and easy guide.
Things you will need.
1.Minitool Partition wizard home edition (probably the same which you used to create the partition)
2.Ext2 Volume manager.
3.Ext2IFS for windows.
USB mount is strictly not advisable, use a card reader. If you don't have any then use a mobile which is not an android, Nokia as for example.
1. Switch your mobile off, remove SD card. Insert it into card reader and then to USB port.
2.Windows will show you your FAT/FAT32 partition.
3.Backup your FAT/FAT32 partition. This is because you are gonna delete this partition.
4.After backing up open Minitool Partition wizard, delete your FAT/FAT32 partition. Be sure to delete this only, DO NOT DELETE EXT2/3/4. Apply those changes.
5.Go to Ext2 Volume manager and select the removable SD card. Double click on Linux partition. Then click on mount points and done.
6.Go to My computer and you will find your Ext2/3/4 partition as a removable drive. Backup this, be sure to copy all the files. Do not leave any file.
7.Now delete this partition from Minitool Partition wizard, your full card is empty now.
8.Create a new parition as primary and Ext2/3/4. Drag this to the far right. Be sure that all the unallocated space is before this Ext partition. Not even a single MB should be after this partition. Apply changes. Select the size of partition according to your convenience.
9.Copy all those EXT backup files to this Ext partition. Windows will show this partition now. If it does not, go to Ext2 Volume manager and do the steps you did before.
10.Now that you have created an Ext partition of your desirable size. Go to Minitool Partition wizard and create a primary FAT/FAT32 partition in the unallocated space. Apply changes.
11.Copy those backup files on this new partition of fat file system which you copied. Now the Ext partition will not be shown in windows.
12.You are done! Insert SD into your phone and power it on. The first boot will take a little longer than normal.
13.Go to link2sd and check the storage, you will be having all the apps + your partition size is increased/decreased now.
If you have any problems tell me.
To all those who want to create a pictorial guide, DO IT BUT INCLUDE A LINK TO MY ORIGINAL GUIDE.
Close to 100 views still nothing here. :/
Sent from my GT-S5360 using XDA
Master_Key said:
Close to 100 views still nothing here. :/
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
I believe that increasing means getting bigger ext partition without the need to re-partition the card. If I were you I would create a guide in RESIZING EXT PARTITIONS, else rename your guide to "how to repartition a SD Card"
Sent from my GT-S5360 using xda premium
Sorry, changed it.
Well that day I had laptop and since then I am using mobile so forgot to check the caption.
Sorry again
Sent from my GT-S5360 using XDA
Problem
I followed all of your steps to the letter to repartition and increase the size of my link2sd partition and after rebooting my phone, I'm getting nothing but error messages and "force close" left and right. I'm not sure at all what had gone wrong. :/ I backed up every single file from both partitions, but everything appears to be borked.
UPDATE: it's apparently not mounting the second partition; that's at least what it seems to be telling me as I'm going through some of the stuff on link2sd
ElusiveZatchmo said:
I followed all of your steps to the letter to repartition and increase the size of my link2sd partition and after rebooting my phone, I'm getting nothing but error messages and "force close" left and right. I'm not sure at all what had gone wrong. :/ I backed up every single file from both partitions, but everything appears to be borked.
UPDATE: it's apparently not mounting the second partition; that's at least what it seems to be telling me as I'm going through some of the stuff on link2sd
Click to expand...
Click to collapse
Can you tell me in more detail what did you do?
Also what kind of SD card are you using and other details.
increase 2nd partition of SD card without losing data
My SD card's 2nd partition is FAT32 and I'd like to increase it's size. How do I do it without losing my apps installed on there?
I tried connecting it to card reader and using miniTools to increase the size but it only allows NTFS partition to increase without losing data.
increase size of partition 2
Hi, just a quick question, can I increase the size of partition 2 without formatting or losing files and data?

Categories

Resources