When I moved from CM9 to CM10 my 64GB SD card started behaving very oddly. On reboot or occasionally just after the phone had been on for a while I'd get one of three results:
a. the card worked perfectly (rare)
b. the system would complain that the card was broken and needed reformatting
c. the system would spontaneously say it's safe to remove the SD card
It turns out that the problem I had was that the fsck on the card would (most of the time) fail to allocate memory and die, prompting to system to think the card was bad. By default Android will reformat your card with 4K clusters, which made the FAT about 15 million clusters long. When I try to run fsck manually via adb, that results in fsck trying to allocate a 60K block of RAM and usually failing. You can see if this is your problem by running the following:
Code:
/system/bin/fsck_msdos /dev/block/vold/179:1
If you get an error then you can fix it by reformatting your card (yes, this will mean losing all your data if you don't back up first!) to use 16K clusters (I tried 8K clusters and still got errors on the fsck). This will mean that your data storage will be a little less efficient (so if you store small files you won't be able to fit as many of them on the card) but for me that's better than having to move back to a 32GB card. To do the reformat, run (AFTER BACKING UP!):
Code:
/system/bin/newfs_msdos -F 32 -b 16384 /dev/block/vold/179:1
and enjoy your newly working SD card!
Related
Hello all,
I've had my G1 for some time now and have tried the cyanogen and Jachero roms. Well, I was just starting to try using a swap file. Using sdparted I set my swap file size to 64mb. Everything ran fine for a while. I then saw that someone saw better speeds with a 128mb swap file, and that I could resize the partition down to 64mb without having to reformat the whole card everytime. So, I tried to create a 128 mb swap file. Upon flashing the new hero 2.1 rom, I got stuck in a boot loop and now I am no longer able to mount my sd card.
Running CHKDSK finds no problems. I am able to read and write to the card just fine in windows. I can also format it in windows. Sometimes I can access files on the sdcard by:
Code:
ls /sdcard
However the mount command still doesn't work. I can't partition the card using sdparted. It complains about an invalid token
Any ideas on how to get my sdcard back? My 1gb just doesn't cut it.
redshift88 said:
Hello all,
I've had my G1 for some time now and have tried the cyanogen and Jachero roms. Well, I was just starting to try using a swap file. Using sdparted I set my swap file size to 64mb. Everything ran fine for a while. I then saw that someone saw better speeds with a 128mb swap file, and that I could resize the partition down to 64mb without having to reformat the whole card everytime. So, I tried to create a 128 mb swap file. Upon flashing the new hero 2.1 rom, I got stuck in a boot loop and now I am no longer able to mount my sd card.
Running CHKDSK finds no problems. I am able to read and write to the card just fine in windows. I can also format it in windows. Sometimes I can access files on the sdcard by:
Code:
ls /sdcard
However the mount command still doesn't work. I can't partition the card using sdparted. It complains about an invalid token
Any ideas on how to get my sdcard back? My 1gb just doesn't cut it.
Click to expand...
Click to collapse
either reformat in gparted or in windows and try it all over again. if it doesnt work still, put the card in your sd card reader, and in windows do this
-start
-right click on 'computer'
-choose manage
-choose disk management and see if your sd card shows up. if it says unallocated, you need to do some extra steps.
once you get this far send me a PM.
can someone please help me?
I have tried many builds and they are all unusable for me when they are using SD partition.
Disabling it makes it usable again but no user space!
I have tried CW method of partitionig and GParted but always same result
My SD is Class 2, don't know if that is problem... tried many times to format it... tried many NAND ROMs.
Please help!!!
Brand, size of your sd card?
What format? Windows?
File system used in ext partition of sdcard?
Try a HDD benchmark test on your SD card. If sustained write is less than 2mb/s, then you want to use SD Card Formatter 3 with ERASE FULL (ON) and RESIZE (ON), if still slow, time to buy a proper sd card.
i noticed it by myself. got a 16 GB class 2 SDcard and since NAND-roms its really messy, changing the screens by sliding (stuttering - and gets worse the more apps are on it), loading apps are much slower than with SD-roms.
i ordered a 8 GB class 6 SDcard last friday, hope to get it tomorrow. will check it out with a fresh format and install asap. will come back and post my experience.
It's Kingston Class2 16gb.
First partition is FAT32 15gb, and second is 1gb EXT3 (also tried with EXT2 & EXT4).
It's strange but I remember that SD builds were much generaly faster (thats not the case when I turn off this partition).
Here are results:
Read 10.130 MB/s
Write 2.163 MB/s
I think they are good for Class2.
Any opinion is welcome!
Eww.. Kingston MicroSD.
You're right, their speed scores are pretty good. Stuttering is usually caused by slow reads, writes don't cause stuttering, except mainly when installing apps. Your card isn't corrupted, because the speeds are exactly on spec.
Well, the first few days of using ext partition on SD card for A2SD+ is going to be slow, till everything is written on the SD card, then it speeds up considerably. I recommend, try using it for 2 days, and see if you can't stand it.
SD builds already have everything in the SD card, including data.img where userdata is stored. However, with A2SD+, everything is in the NAND, but the application will move to SD Card ext3 partition, at the same time the Dalvik is also being moved there too. So yah, it can be slow, until everything is done scooting over.
Hello everyone,
I recently got an HTC aria from AT&T.
After a few days I went ahead and rooted the phone.
At first I decided to try the liberated Aria (éclair) rom. It was a good experience. But just last night I decided to try another rom, so I went with Cyanogenmod 6.1.1.
While I was using liberated aria, I used rom manager to partition my sd card with the ext filesystem, so I could move some apps to it and open up some space from my phone's internal storage.
This space, while I never figured out how to move the apps, always showed in titanium backup.
With the move to Cyanogenmod 6.1.1, this partition doesn't show at all!, in fact my sd card is at 1.7 Gb!, it's like I lost an extra 0.25 Gb (which is the partition size I chose in rom manager before)... I tried partitioning in cyanogenmod with rom manager again, but then my sd card took another 0.25 Gb hit and went to 1.5 Gb!...
How do I get back to my 2Gb sdcard space? furthermore how I do partition the card such that I can extend my internal storage for apps?
Thanks
Andres
I use gparted on linux to do that. I'm not sure what OS you use, but there are live cds you could use.
But on gparted, you should be able to see all the partitions on the card and manage them as necessary.
In order to use the ext partition, you should darktremor's app2sd. Ext3 is the filesystem you should use, but ext2 works as well I believe.
Sent from my Aria - CM7 Build 2-4
thanks, I use Debian Squeeze on desktop and testing on laptop.
I just got gparted, but it says my external storage is only 1.7 Gb!
Like I said...the extra 0.25 Gb is no longer being mounted with the sdcard and it somewhere lost in the filesystem and/or apportioned to some obscure directory...
Hmmm... that is quite odd. I know some sd cards aren't actually what they state. My 8GB card only shows as 7.8GB for example.
Try formatting the whole card (Back up first!!) And see if it comes back somehow. I am not a sd card expert.
Sent from my Aria - CM7 Build 2-4
L551 said:
Try formatting the whole card (Back up first!!)
Click to expand...
Click to collapse
thats what i'd recommend.
when you installed cm6, did you do a wipe data? did you notice if it said it was wiping the ext partition? i'd guess cm6 isn't noticing the space because it was partitioned separately from the rom install.
backup your important data, format the card, and try repartitioning it again now that you've got cm6 installed.
well I'm not entirely sure why it worked this time, but I was able to fully format the card. Now I'm back to 2Gb (well, really 1.84 Gb, but that's right)
The problem I think was that I was formatting with Rom manager, and it was ignoring the extra unrecognized space. What I did different this time, is that I went into settings > sd card & storage > unmount sd card > format sd card > mount sd card > sucess!
So this successfully formatted the whole card.
Thanks for your pointers
Unfortunately trying to partition it again failed.
I tried gparted and it successfully formatted a part of the card with the ext3 filesystem (while leaving the rest as unallocated -- at least this is what gparted said). Unfortunately when mounting the sd card on my phone it complained that the card had been damaged. So I had to reformat it, undoing the previous partitioning.
Then I tried rom manager again, but the way it works is by going into recovery and partitioning the card there. Unfortunately, clockworkmod recovery showed a warning sign ( triangle with an exclamation mark in it) above an android and froze there...I had to pull the battery out to reboot my phone.
I guess my oldish version of gparted (0.7.0) doesn't like the YAF filesystem (YAFFS). So perhaps when it partitions the card, it screws up the existing YAFFS partition. I'll try to use gparted again to partition the card fully, 256 Mb ext3 as extra app storage and the rest, I guess ext3 as well.
Andres
I finally did get it to work on both R012 and FR008 (as well as CM6.1.1 and CM7)
I formatted the sdcard with gparted (chose a 512 Mb ext3 partition with 32 Mb Swap). Then from android's terminal emulator (as root) I typed
Code:
a2sd check
and it enabled apps2sd using darktremor just fine. It became aware of my ext3 partition.
Hello,
I rebooted my G1 today (MAGPIE 20111003 2.3.7) and since then my sdcard is reported "empty". The 500mb ext4 partition is still working.
Connecting to PC via USB does not work. It hangs while activation USB storage. Also can't access /sd-card in root explorer (not mounted).
Connecting to PC via card reader I can list all partitions and the FAT32 volume is reported as RAW. Tried some recovery tools (recover my files, ZAR). They somehow find a FAT32 partition but no recoverable files or hang when trying to read all sectors/blocks. Recover my files needs minutes for reading ~100 sectors.
Connnecting to PC via USB card reader just won't display anything, can't even access drive management until disconnected.
It's a 16GB SanDisk Ultra class 4. I'm using this card for about ~1.5 years.
The last days I was experimenting with enabling my swap partition and test performance compared to compcache. May that be the cause due to heavy usage? In all those 1.5 years the swap partition was enabled for a month max. Like the ext4 partition, the swap partition is still working flawlessly.
The FAT partition had very low usage. No music, just some files (roms, apps, backups etc.).
Do I have any chance reviving my card or getting some data off? Anybody with similar experience? If not then just note my SanDisk 16GB Ultra class 4 card died after one and a half years of low usage.
regards,
hackzero
Sound like your SD card is corrupted. You might have to reformat/repartition it again.
First I tried formatting in windows: error.
Then I went to recovery console and deleted and recreated the fat32 partition with parted (mkpartsfs...). Recovery software now gets further but hangs after about 20 seconds.
I also tried formatting in windows again. It worked but broke my ext4 partition, which is now also gone for good.
Finally I used windows diskpart and used the clean command to delete everything. Drive is now without any partition.
Recovery software stills hangs after some seconds at around sector ~40000 and needs 10 seconds for 100 more sectors which would take years to complete.
I really think I can throw it away.
I'm trying to store a lot of files on an sd card with this nook simple touch glowlight. I have it rooted now, thinking that maybe accessing the files in Android would be the better solution, but it still seems to hang like crazy. With a 16gb card that had about 500 files it was fine, that was almost 3GB worth, then with the 16gb card with around 12,000 files, about 12gb of space, it just seems to hang endlessly as it processes them. I have a faster 32GB card that had over 30,000 files, and the same problem, it hangs forever as it processes them. Any thoughts? I originally just wanted to do this with the stock nook file browser, when that didnt work I rooted and neither is working well for me.
There was a bug with timeouts using Class 10 SD cards.
That bug got patched but I'm not sure which kernel that is.
I gave up on using FAT (vfat) on the SD card.
I use ext3 now.
My old approach was a patched vold that supported ext3.
My new approach is getting rid of vold, vfat and UMS.
See: http://forum.xda-developers.com/showthread.php?t=2609223
Renate NST said:
There was a bug with timeouts using Class 10 SD cards.
That bug got patched but I'm not sure which kernel that is.
I gave up on using FAT (vfat) on the SD card.
I use ext3 now.
My old approach was a patched vold that supported ext3.
My new approach is getting rid of vold, vfat and UMS.
See: http://forum.xda-developers.com/showthread.php?t=2609223
Click to expand...
Click to collapse
ok ill give that a try. I have one class 10 and one class 4 card
formatted the card to ext3 and it didnt see any files on it at all. Starting to lose hope with my plan, I really wanted to be abel to have thousands of files on card and access them from the nook, but it really seems like the nook doesnt have enough power to do that
I haven't counted exactly, but I have about 8000 files on my SD card.
You should format using mke2fs & tune2fs on the Nook.
For experimenting you can manually mount.
You can add my mntsdcard (Linux executable) to mount it automagically.
Renate NST said:
There was a bug with timeouts using Class 10 SD cards.
That bug got patched but I'm not sure which kernel that is.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=45785322&postcount=14