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.
Related
Tonight I decided to try an upgrade on my rooted Desire with ClockwordMod installed. I originally had the official Froyo ROM and downloaded the latest Leedroid Gingerbread ROM to give it a go.
All was going swimmingly until on reboot it took far longer than the expected 20 minutes or so to boot.
I pulled the battery and now the phone is stuck in a reboot loop at the 'Leedroid Android' splash screen.
I get the impression something may have gone wrong with the ext3 alignment patch somehow as I can't mount my sdcard to either reflash the leedroid ROM or revert back to the official ROM.
The output of parted from a terminal window shows the following:
Code:
/sbin # parted /dev/block/mmcblk0 print
parted /dev/block/mmcblk0 print
Model: SD 00000 (sd/mmc)
Disk /dev/block/mmcblk0: 3942MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
2 10.8kB 3942MB 3942MB primary
So it looks like I've somehow lost my file system on my sdcard.
Anyone have any suggestions as to the quickest fix out of this?
Just realised this is in the wrong section... could a mod move please?
Try reformat the SD card with a 100% size FAT32 partition (use a card reader to do that, had this bug one time, i couldnt resize with the phone as a card reader). I recommend you this software (windows) : MiniTool Partition Wizard Home Edition
Search it on google. use this video if you dont know how to use it :http://www.youtube.com/watch?v=aCV7Eu1pjWQ
Just create a partition FAT32, Primary, set the size, and a ext3, primary, set the leaving size (max 1.5gb) apply and wait
Once it's done, you can repart the SD card with FAT+ ext3
put files on your sd card.
I flashed the first time with the zip alignment patch, had the same bug than you, retried after full wipe without the patch, juste rom and reboot, and everything was ok.
so wipe and reflash
tell us if it works
Thanks! Before I wipe completely as a last resort, is there any alternative way of recovering what's on the SD card? Unfortunately the last backup I made of its contents is over a month old...
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?
Hi there,
A couple days ago, I had a usb brick. I quickly fixed it, everything got back to normal except for my sd card : I think it's corrupted. Why do I say this ? Because I've got another sd card, and it's working perfectly. I can't get to format it via Gparted. It says the procedure failed, there was an issue and i couldn't format it. In addition, even though it's a 4GB card, it's recognized as a 3gb card.
When I try to use it in recovery mode, it says :
Code:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
But when I use the other card, nothing weird happens.
I'd like you guys to help me repair my SD card.
kev94 said:
Hi there,
A couple days ago, I had a usb brick. I quickly fixed it, everything got back to normal except for my sd card : I think it's corrupted. Why do I say this ? Because I've got another sd card, and it's working perfectly. I can't get to format it via Gparted. It says the procedure failed, there was an issue and i couldn't format it. In addition, even though it's a 4GB card, it's recognized as a 3gb card.
When I try to use it in recovery mode, it says :
Code:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
But when I use the other card, nothing weird happens.
I'd like you guys to help me repair my SD card.
Click to expand...
Click to collapse
Googled and found this: http://www.ehow.com/how_4850280_repair-corrupt-sd-card.html
1. link your desire with pc
2. enter "FASTBOOT Mode", it will display "HBOOT USB PLUG"
3. open dos windows and type adb shell
4. type fastboot oem rebootRUU
5. type fastboot oem enableqxdm 0
and retry
I already tried this, but it didn't work out ! I'm out of ideas...
So it says it's a 3GB card? You had an 1GB Ext partiton before?
If yes, that's where your 1GB's gone.
Recommended is to repartition your card again from scratch - Using Either GParted, EASEUS or MiniTool partiton.
Backup everything from it, then delete all partitions - and re-create them.
davebugyi said:
So it says it's a 3GB card? You had an 1GB Ext partiton before?
If yes, that's where your 1GB's gone.
Recommended is to repartition your card again from scratch - Using Either GParted, EASEUS or MiniTool partiton.
Backup everything from it, then delete all partitions - and re-create them.
Click to expand...
Click to collapse
Actually, it's 3.7 GB and not 4GB (I guess it's normal though). And yes, the missing space was from the ext partition. Thanks god, the first thing I did was a backup of my SD card. Yet, I tried to format the card with Gparted (I'm currently running Ubuntu 10.10) but as I said above the procedure fails.
Then, I formatted in Windows, and I managed to create a 3Gb fat32 partition recognized in Gparted.
But how am I supposed to get my missing space back if this space isn't recognized in Gparted ?
I'm using Ubuntu 11.04 (natty) - and i'm able to mount my EXT partiton of the SD Card.
As I said, don't just format the card, but delete all partitions and re-create them, then format them.
Also, if your card is messed up badly, maybe you have to use the termina with commands to recover the ext partition.
Always format SD cards with the "SD Formatter 3.0" from the SD Association: http://www.sdcard.org/consumers/formatter_3/
This little programs formats the whole card (full capacity, erasing all other partitions) in FAT32 meeting all SD specifications.
Furthermore it alligns the LBA parameters (virtual heads, cylinders etc) and the fat32 parameters with the internal structures of the flash memory (eraseblocks), so that fat32 clusters never overlap eraseblocks. This speeds up write performance (in my case about 50%! ).
There is no better tool to format SD cards.
After that you can resize (But don't move it, just trim the end. The free space in front of the FAT32 partition is part of the alignment) the FAT 32 partition with gparted and generate an ext partition in the free space.
Finally one should run the ext alignment script (it's a zip for recovery mode) from baadnwz homepage (http://www.baadnwz.eu/2011/05/align-your-sdcard-fat-and-ext-partiton_16.html) to align also the ext4 partition to the flash cells.
boot up into android (with any ROM) and go to settings > storage > format SD card
this should restore whole SD as FAT32
funny enough Android could do it, while Gparted could not (gparted didnt see my whole sd, it didnt see the ext partition)
davebugyi said:
I'm using Ubuntu 11.04 (natty) - and i'm able to mount my EXT partiton of the SD Card.
As I said, don't just format the card, but delete all partitions and re-create them, then format them.
Also, if your card is messed up badly, maybe you have to use the termina with commands to recover the ext partition.
Click to expand...
Click to collapse
---> As I said too , Gparted fails to create partitions. It displays a "warning" icon by the sd icon. Unless I'm a fool, I can't get any further there.
hypophysis said:
Always format SD cards with the "SD Formatter 3.0" from the SD Association: http://www.sdcard.org/consumers/formatter_3/
This little programs formats the whole card (full capacity, erasing all other partitions) in FAT32 meeting all SD specifications.
Furthermore it alligns the LBA parameters (virtual heads, cylinders etc) and the fat32 parameters with the internal structures of the flash memory (eraseblocks), so that fat32 clusters never overlap eraseblocks. This speeds up write performance (in my case about 50%! ).
There is no better tool to format SD cards.
After that you can resize (But don't move it, just trim the end. The free space in front of the FAT32 partition is part of the alignment) the FAT 32 partition with gparted and generate an ext partition in the free space.
Finally one should run the ext alignment script (it's a zip for recovery mode) from baadnwz homepage (http://www.baadnwz.eu/2011/05/align-your-sdcard-fat-and-ext-partiton_16.html) to align also the ext4 partition to the flash cells.
Click to expand...
Click to collapse
---> Sounds great and geeky, gonna give it a try tomorrow afternoon (CET +2 here)
dzumagos said:
boot up into android (with any ROM) and go to settings > storage > format SD card
this should restore whole SD as FAT32
funny enough Android could do it, while Gparted could not (gparted didnt see my whole sd, it didnt see the ext partition)
Click to expand...
Click to collapse
---> Yeah, Gparted is a bit lazy here.... Gonna try it if hypophysis's method doesn't work out. I gotta admit this kinda problem is pretty disturbing and pisses me off so much.... Waiting forward to get it over with.
Anyway, thanks a lot for helping me, you're good people here !
Well, I tried hypophysis's method. It formatted successfuly. But as you said, I had to run Gparted again in order to create an Ext partition next to the fat 32 one. But I couldn't --> It says it couldn't find the "first sector" I guess, and it couldn't determine the device specifications, it wasn't able to perform everything he wanted. Actually it recognized the whole sd card, but wasn't able to do anything with it. I couldn't unmount it or mount it....
I'm stuck at square 1 Gonna try to perform dzumagos's method later.
Hello.
I'm having a big problem with ext4 fromatting partion.
I have using GParted program (bootable cd), and everything was great, program created 2,79 GB FAT32, and 1 GB ext4, like in the video tutorial on your site http://forum.xda-developers.com/showthread.php?t=1016084 (step five).
And I noticed, on the end of the video, when the guy is checking on htc desire space (about 2:40 min on youtube) he had 13,92 GB on FAT32 of 14,92 GB. But I have full 3,92 GB FAT32, which is the same sioze a micro sd. I dont know where I am doing wrong?
Then, I tried ROM manager, but after restart, I have blue android and triangle with !...and says that on disk e: something goes wrong ABORTED!
Do you have some idea, what can I do?
Thank you very much.
You did something wrong with gParted, delete all partitions, make one FAT32 partition and format the SD.
Then try making EXT partition in recovery, if you know how to you should change recovery to the 1 in my signature, it works flawlessly.
Nope, I formated fat32 and ext4, and when I connect htc desire to pc, and put Insertcoin.zip, its blank sd card. And then I see notification on htc, that is my sd card blank, and unsupported filesystem...
I will try and third way, that ext4recvery...
or you can try MiniTool Partition (@k3lcior yes I remember what you said).
Note: Some say that you can get errors when partitioning with windows, but I've never had any problems. Up to you.
Gparted is an awesome tool to use ??? I don't see what your doing wrong ...
Format card - New Partition - Fat 32- 2.79 gb -
Then new partition - create Ext 4 at the end 1gb....
Question's in the title.....
Does it matter which order the different partition types are created in?
If so.... what is the difference.
I have read now a number of different threads related to creating these partitions (usually via gparted) but it is not clear to me if the order is important.
I have set up a card with ext first .... it seems to work, but the card is not readable directly when plugged into a PC - I can read/write when still in the phone via USB.
If the FAT32 partition is first - then could the PC read that directly ... but Android will still find the ext4 at the end?
I would like to find out before my new class 10 card arrives and I set it up.
Thanks
Looloup said:
Question's in the title.....
Does it matter which order the different partition types are created in?
If so.... what is the difference.
I have read now a number of different threads related to creating these partitions (usually via gparted) but it is not clear to me if the order is important.
I have set up a card with ext first .... it seems to work, but the card is not readable directly when plugged into a PC - I can read/write when still in the phone via USB.
If the FAT32 partition is first - then could the PC read that directly ... but Android will still find the ext4 at the end?
I would like to find out before my new class 10 card arrives and I set it up.
Thanks
Click to expand...
Click to collapse
if you're using gparted (good choice):
FAT32 first (on the left), ext4 second (on the right), both primary.
First of all, as stated by eddiehk6, the first partition it's fat32, folowed by ext!
I did the partitioning thing over and over with 4ext recovery (look for the updater app at 4ext.net - i highly recommend this recovery ) and everything went smooth.
You only need to go to "Tools" when in recovery and use the sd card partitioning command, wich will guide you through the process and set your card; remember to backup your data before doing this, cause it's recommended to do things "from scratch"!
Wich rom do you want to use? For GB the best thing to do is setting only one ext partition, for ICS it's better to add the swap partition too!
GB: when prompted, select 1024 (the standard for almost all roms) for the first ext, 0 for second ext and swap and select ext4 as a fs when prompted; this will set your SD card like this: x MB fat32 / 1024 MB 1st ext4 / 0 MB 2nd / 0 SWAP
ICS: when prompted, select 1024 (the standard for almost all roms) for the first ext, 0 for second ext and 256 for swap (not a must) and select ext4 as a fs when prompted; this will set your SD card like this: x MB fat32 / 1024 MB 1st ext4 / 0 MB 2nd / 256 SWAP. ICS with HWA use more RAM than GB and this may lead to crash and slowness. I'm actually running BCM 3.0U1 without SWAP without problem (and i'm fairly impressed)!
Sorry for my english
Looloup said:
Question's in the title.....
Does it matter which order the different partition types are created in?
If so.... what is the difference.
I have read now a number of different threads related to creating these partitions (usually via gparted) but it is not clear to me if the order is important.
I have set up a card with ext first .... it seems to work, but the card is not readable directly when plugged into a PC - I can read/write when still in the phone via USB.
If the FAT32 partition is first - then could the PC read that directly ... but Android will still find the ext4 at the end?
I would like to find out before my new class 10 card arrives and I set it up.
Thanks
Click to expand...
Click to collapse
There is no order that the computer reads your partitions. I once had a flashdrive split into 6 different partitions, one was windows xp, the other was ubuntu. and the rest were different file partitions