Jump to content

[Froyo 2.2] A2SD corrupts FAT32 SD partition (Explanation for developers)


Guest simemu

Recommended Posts

Guest simemu

I'll try to explain when and how the FAT32 partition is corrupted.

At least, the problem occurs with the 3 custom rom version I tested:

[Froyo Sense] LeeDrOiD Mod V1.8 (07/08 l Official HTC 2.2 l Fast l Stable! l A++)

[Rom](05/08/10) Alex-V 1.1 OTA Froyo Sense based on Paul (modaco) only added App2sd+

[ROM] Official 2.2, with: busybox, old A2SD+, OpenVPN (TUN), EXT4 support, 802.11N

Situation:

FAT32 + EXT2/EXT3 partition

A2SD or A2SD+ activated (as comes with these roms)

Clean FAT32 partition

The following steps explain how to see the beggining of the corruption.

1) Power on the phone disconnected from the PC

2) Take a photo. The photo is saved in SD in the folder DCIM\100MEDIA

3) Connect the phone to PC and select "Disk Drive"

3.1) Test the disk with Windows.

4) Open the folder DCIM\100MEDIA and you will see the photo taken. This is GOOD.

5) Close the windows explorer and now select in the phone "Charge Only"

6) Take a new photo. The new photo is saved in SD in the folder DCIM\100MEDIA (in theory)

7) To ensure, see the photo in the phone.

8) Connect again the phone to PC and select "Disk Drive"

8.1) Test the disk with Windows.

9) Open the folder DCIM\100MEDIA and you will NOT see the photo taken because windows fixed the file system. You will see only the previous one. This is VERY BAD.

10) Close the windows explorer and now select in the phone "Charge Only"

11) To ensure of this, try to see the photo in the phone. Did you find it?

If the 8.1) step is not done, the photo will be seen in the phone when select "Charge again", but if you write a file in this step instead, the SD will corrupt.

The only way I found to save the second photo in the SD is power off the phone. Try this.

Repeat the steps 1) to 7)

8) Power off the phone

9) Power on the phone and you will find the second photo.

Summarizing

All the SD recording after the first PC connection are not consolidated in the SD until the phone is off. If you connect with the PC before power off, the recordings are lost.

I wait your testings ....

Edited by simemu
Link to comment
Share on other sites

Guest Subject Delta

Yep, I noticed this as well, but it doesn't seem to occur in paul's rebuilt MCR from the official 2.2 Desire release, must be a bug in the hashed up builds that where cobbled together for the official release

Link to comment
Share on other sites

Yep, I noticed this as well, but it doesn't seem to occur in paul's rebuilt MCR from the official 2.2 Desire release, must be a bug in the hashed up builds that where cobbled together for the official release

Actually I am using r7 & I had some problem w/ my SD.

It kept going into "read only " when I went into gallery.

Solved it for now by deleting the 2 images that were causing the corruption - figured I will wait with partitioning again until I bake a new Rom or until permanent solution is found ...

Link to comment
Share on other sites

Guest johnassel

Confirmed here, too. Maybe it is just a problem with the camera app? When copying a file from the internal storage to the sd card it appears normally in drive mode here.

Link to comment
Share on other sites

Guest Subject Delta
No, the problem is with any record in the SD.

Try to download a little file from the browser instead of take a photo, for example http://www.4shared.com/file/jWcR3lP4/Track...HTC_Desire.html

Regards

Got a scan and fix prompt from Windows when I mounted the disk, but it wasn't corrupted, no problems though and it didn't unmount itself.

Link to comment
Share on other sites

Guest blogger

conclusion, a2sd+ is trash, lunix partitions on SD card are stupid, official 2.2 apptosd works great with legit apps, if you can't deal with system startup stuff not living on SD then enjoy losing your pics.

p.s. did I mention lunix partition on your SD card = better be ready to replace it every few months.

Link to comment
Share on other sites

Guest Diggedy
conclusion, a2sd+ is trash, lunix partitions on SD card are stupid, official 2.2 apptosd works great with legit apps, if you can't deal with system startup stuff not living on SD then enjoy losing your pics.

p.s. did I mention lunix partition on your SD card = better be ready to replace it every few months.

and your evidence of this? apps2sd has been around a long time, I would have thought it would have been abandoned if it was trashing sd cards every few months

Edited by Diggedy
Link to comment
Share on other sites

Guest hassand
conclusion, a2sd+ is trash, lunix partitions on SD card are stupid, official 2.2 apptosd works great with legit apps, if you can't deal with system startup stuff not living on SD then enjoy losing your pics.

p.s. did I mention lunix partition on your SD card = better be ready to replace it every few months.

wasnt lunix for commodore 64's and such?

Link to comment
Share on other sites

Guest bhu73
I'll try to explain when and how the FAT32 partition is corrupted.

Summarizing

All the SD recording after the first PC connection are not consolidated in the SD until the phone is off. If you connect with the PC before power off, the recordings are lost.

I wait your testings ....

confirmed on r6

Link to comment
Share on other sites

Guest spammyspam

Although I acknowledge that this bug exists and should be fixed ASAP, when, in a real life case, would this be a problem?

I tend not to use my phone much when it's connected to a PC...

Link to comment
Share on other sites

Guest Golgo
conclusion, a2sd+ is trash, lunix partitions on SD card are stupid, official 2.2 apptosd works great with legit apps, if you can't deal with system startup stuff not living on SD then enjoy losing your pics.

p.s. did I mention lunix partition on your SD card = better be ready to replace it every few months.

GTFO... clearly you have no idea what you're talking about (lunix, ey?).

I've been running A2SD on several Android phones and never had a corrupt SD.

Link to comment
Share on other sites

Guest Subject Delta
Although I acknowledge that this bug exists and should be fixed ASAP, when, in a real life case, would this be a problem?

I tend not to use my phone much when it's connected to a PC...

If you use the camcorder, then attach the phone to a PC it causes the problem, you don't have to have the phone doing anything when it's actually plugged in to get the issue.

Link to comment
Share on other sites

Guest marcuso

Thos was driving me crazy when i encountered this problem a while ago ... at least now I know "i am not alone" ;-)

so confirmed on Froyo MCR r6.

Link to comment
Share on other sites

Guest cafeschintze

I can confirm the problem with sd card getting corrupted also using the prerooted stock rom WITHOUT a2sd+ !

Whenever I connect my desire to the PC via USB, mount the sdcard as disk drive and try to write some files the copying process never stops. All I can do then is reboot the phone and of course the sdcard is then mounted readonly.

Im using Ubuntu 10.04 - never had this issue with any other rom on 2.1..

Is this a problem of Froyo (or at least rooted froyos) instead of an a2sd+ related problem? I switched from a froyo rom including a2sd+ to the (rooted) stock rom for that matter - but apparently it didnt help.

Link to comment
Share on other sites

Guest simemu
I can confirm the problem with sd card getting corrupted also using the prerooted stock rom WITHOUT a2sd+ !

Whenever I connect my desire to the PC via USB, mount the sdcard as disk drive and try to write some files the copying process never stops. All I can do then is reboot the phone and of course the sdcard is then mounted readonly.

Im using Ubuntu 10.04 - never had this issue with any other rom on 2.1..

Is this a problem of Froyo (or at least rooted froyos) instead of an a2sd+ related problem? I switched from a froyo rom including a2sd+ to the (rooted) stock rom for that matter - but apparently it didnt help.

I tested this ROM with an EXT2/3 partition and the problem does not occur, at least following my test list. Perhaps exists another problems with this ROM , but not with my test list. Think that is not satisfying the situation indicated, the A2SD activated.

Anybody knows how to install and activate the A2SD in this ROM ?

I would try to verify my test list with A2SD activated.

Regards

Edited by simemu
Link to comment
Share on other sites

Guest simemu
I tested this ROM with an EXT2/3 partition and the problem does not occur, at least following my test list. Perhaps exists another problems with this ROM , but not with my test list. Think that is not satisfying the situation indicated, the A2SD activated.

Anybody knows how to install and activate the A2SD in this ROM ?

I would try to verify my test list with A2SD activated.

Regards

I have installed the A2SD in the Modaco original ROM and the problems start again. I have done my test list and it also fails.

Regards

Link to comment
Share on other sites

I ran into additional problem that i figured is (was) related to the SD corruption. I am using WAZE navigation software and last evening on my way home it started causing my phone to reboot every time i started it (sometimes immediately and sometimes after actions such as route calc which i figure was trying to write/ read to the SD) - uninstalled and installed Waze but didn't help. this has been 3 days after flashing R7 and after Waze has already been used successfully (including the same morning) on R7.

Got home and decided to try "fixing errors" the SD in Win 7 (via card reader), and it actually worked. 24 hrs later and yet no problem with SD going to Read Only, as well as the app working well (admit that i haven't connected the phone to PC since fixing the SD - probably will do that tomorrow via HTC sync and hopefully will not harm the SD again.

Link to comment
Share on other sites

Guest David Szabo

I had this problem too with A2SD+. Even after I formatted the SD card back to a single FAT32 partition I kept getting read only errors until I scanned the disk for errors (using Windows 7). That was about 4 days ago and it's been working perfectly ever since using Froyo's standard A2SD.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.