maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   SDHC Corruption bug back? (https://talk.maemo.org/showthread.php?t=12736)

Jonnycat26 2007-12-04 21:56

SDHC Corruption bug back?
 
Hi,

I've been running the beta of OS2008 on my N800 since it was released, and I haven't rebooted in a week plus. My N800 gets a fair bit of use, and I also use it to store (and play, obviously) MP3s and movies.

Today I noticed that the SD card wasn't showing up in the file manager. A reboot later, and the SD card was showing up, but with mangled file names. I was able to reformat the card, and am currently recreating my virtual memory and copying my crap back over.

Has this happened to anyone else, or is this an isolated thing?

EDIT: The card is a Kingston Class 4 4GB SDHC. It's shipped from Amazon (not an amazon partner) so I have no reason to think it's shady.

Milhouse 2007-12-05 00:37

Re: SDHC Corruption bug back?
 
Yes, it has happened to me with a Transcend 4GB card (internal slot) running 1.2007.44-4 on N800 (ie. OS 2008 for N810). The internal memory card is accessible, swap is in use and according to df it's mounted correctly but File Manager refuses to acknowledge I have an internal card, and only lists the external card. I haven't bothered to investigate it much further as I very rarely use File Manager (mostly using ssh etc.)

Jonnycat26 2007-12-05 02:38

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by Milhouse (Post 104518)
Yes, it has happened to me with a Transcend 4GB card (internal slot) running 1.2007.44-4 on N800 (ie. OS 2008 for N810). The internal memory card is accessible, swap is in use and according to df it's mounted correctly but File Manager refuses to acknowledge I have an internal card, and only lists the external card. I haven't bothered to investigate it much further as I very rarely use File Manager (mostly using ssh etc.)

Did you have any files on it?

I honestly wouldn't mind if it were just the file manager that was being weird, but the fact that all of my file names were trashed... that's annoying. Interestingly enough, the files were there, and they seemed to be the right size, but i didn't try copying one over and renaming it to 'test.mp3' or whatnot...

adamitico 2007-12-05 03:19

Re: SDHC Corruption bug back?
 
I have had the problem of my SD card disappearing from the file manager. It came back after pulling it out and putting it back in AND resetting the n800. No corrupted files, but very annoying.

Milhouse 2007-12-05 07:07

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by Jonnycat26 (Post 104549)
Did you have any files on it?

I honestly wouldn't mind if it were just the file manager that was being weird, but the fact that all of my file names were trashed... that's annoying. Interestingly enough, the files were there, and they seemed to be the right size, but i didn't try copying one over and renaming it to 'test.mp3' or whatnot...

Yes, I have lots of files on the card inc. audio and video all of which are found correctly by Media Player and mplayer, it's was just File Manager that refused to recognise the internal card was there at all and thankfully I didn't suffer corruption of any sort.

All very wierd and I have no idea what triggered it... a reboot fixed it and so far it hasn't happened again (I only rebooted a day or so ago).

w14 2007-12-05 08:22

Re: SDHC Corruption bug back?
 
Last night I found my internal card mounted read only for no apparent reason. A reboot sorted it for me too.

Kny 2007-12-05 09:35

Re: SDHC Corruption bug back?
 
You should never have to reboot a linux system to get a filesystem remounted. All you need to do is becomeroot in the terminal and unmount (umount command) the filesystem and then remount it read/write (option rw) with the mount command. If it is busy so you can't unmount it, you can always do a remount=rw command, in which case it will not be unmounted for real, but the mode will be changed to read/write.

I know that the man-pages on the tablet itself are non-existant, but if you google for them, they are easily found.

Just a tip to avoid rebooting too much - rebooting is something you've learning in Windows-world. No computer should ever require rebooting, unless you actually need a new OS kernel. Imagine how much time you waste in your life waiting for reboots...

gochito 2007-12-05 10:10

Re: SDHC Corruption bug back?
 
I got my 4gb external trashed when i took it out (all files closed), copied some files from my PowerMac G5 and voila, the Memory Card is corrupt message showed.

johsua 2007-12-05 10:16

Re: SDHC Corruption bug back?
 
Maybe you have already done this, but be sure to report this to bugzilla and perhaps now there is somewhere else with the n8x0 becoming more important to Nokia?

basco 2007-12-05 11:02

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by Kny (Post 104653)
You should never have to reboot a linux system to get a filesystem remounted. All you need to do is becomeroot in the terminal and unmount (umount command) the filesystem and then remount it read/write (option rw) with the mount command. If it is busy so you can't unmount it, you can always do a remount=rw command, in which case it will not be unmounted for real, but the mode will be changed to read/write.

I know that the man-pages on the tablet itself are non-existant, but if you google for them, they are easily found.

Just a tip to avoid rebooting too much - rebooting is something you've learning in Windows-world. No computer should ever require rebooting, unless you actually need a new OS kernel. Imagine how much time you waste in your life waiting for reboots...

I waste more time remembering commands
:D

mathew.chacko 2007-12-05 11:25

Re: SDHC Corruption bug back?
 
It is happening to me even with normal SD card (internal) 2GB and running OS2007. It looks to me like memory card gets locked. May be because of lose contacts of back cover. So what I do is just open the back cover a bit and close it, then I get a message "i Memory card available". Then all works fine :(

Jonnycat26 2007-12-05 13:03

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by Kny (Post 104653)
Just a tip to avoid rebooting too much - rebooting is something you've learning in Windows-world. No computer should ever require rebooting, unless you actually need a new OS kernel. Imagine how much time you waste in your life waiting for reboots...

I've been using Linux as my primary OS for about 8 years now, but when I use the tablet I try to use it fairly stock. I don't use becomeroot, and I won't do things that a 'normal' consumer won't.

Still, this is fairly disturbing as it's the first major data loss I've had on the N800. I had never run into the older SDHC bug, but now I'm slightly nervous.

Quote:

Originally Posted by mathew.chacko (Post 104673)
So what I do is just open the back cover a bit and close it, then I get a message "i Memory card available".

I'd be very careful doing that... if you do that in the middle of a write operation you'll end up losing data.

maxilogan 2007-12-05 13:18

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by mathew.chacko (Post 104673)
It is happening to me even with normal SD card (internal) 2GB and running OS2007. It looks to me like memory card gets locked. May be because of lose contacts of back cover. So what I do is just open the back cover a bit and close it, then I get a message "i Memory card available". Then all works fine :(

The availability of memory cards depends on the magnet you have on the cover internal part. Be sure it is not moved or disconnected or whatever

mathew.chacko 2007-12-05 14:43

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by maxilogan (Post 104707)
The availability of memory cards depends on the magnet you have on the cover internal part. Be sure it is not moved or disconnected or whatever

How we will know when the back cover is moved? An icon indicating "Internal memory card not available" could be interesting!

akd 2007-12-05 16:11

Re: SDHC Corruption bug back?
 
The card killer is back again?...NOOOO. I get a fried 2gb SD with previous version of OS2007.

Sloan 2007-12-05 16:24

Re: SDHC Corruption bug back?
 
Gah, add me to the list.

I'm getting troubles with my 2GB Crucial SD card in the internal slot under the back cover. I used a card reader last night to put some MP3s on the card and this morning everything was garbled. I formatted the card and now it's acting "read only" again (similar to the old OS2007 problem). It's the most irritating problem because you can't ever use the device for long without having to wipe everything down and start all over.

zerojay 2007-12-05 18:01

Re: SDHC Corruption bug back?
 
Sloan, you probably pulled the card or USB cable out before your mp3s were finished transferring. Don't believe your OS when it says that the transfer is finished because it's usually NOT. On Linux, if you mount your card sync, it will make sure that you won't have this problem, but the transfer will appear to go slower. With async (the default), it will appear that the transfer is finished. In reality, it's just been done flushing the write to the card reader, which takes additional time to write to the card.

A good rule of thumb is to just wait an extra minute or two after the transfer appears to be complete on your computer before pulling out the cable or card. If it's a very large transfer (1GB+), give it an extra minute or so. You should have a lot less trouble then. (Since instituting this rule on myself, I haven't had a single card issue in 8 months.)

(This is not a Nokia or tablet problem. This is a flaw in the way card readers work. Nothing can be done about it.)

Karel Jansens 2007-12-05 18:21

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by zerojay (Post 104837)
A good rule of thumb is to just wait an extra minute or two after the transfer appears to be complete on your computer before pulling out the cable or card. If it's a very large transfer (1GB+), give it an extra minute or so. You should have a lot less trouble then. (Since instituting this rule on myself, I haven't had a single card issue in 8 months.)

(This is not a Nokia or tablet problem. This is a flaw in the way card readers work. Nothing can be done about it.)

How about waiting until the little light stops flashing?

zerojay 2007-12-05 19:08

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by Karel Jansens (Post 104854)
How about waiting until the little light stops flashing?

That will work too, but many card readers just don't have lights anymore.

adamitico 2007-12-14 00:59

Re: SDHC Corruption bug back?
 
Has anyone figured out how to fix this problem?

I am using a Transcend 2gb SD card (not sdhc). It's not very old. Since installing the OS2008 beta, while listening to music (in various players) the music would stop all of a sudden and the files would disappear from the card. This could be solve by rebooting, but would eventually happen again.

I reinstalled OS2007 but the problem remained, so I moved all the files from the card to my computer, formatted the card, and moved the files back onto it. Same problem.

Is this similar to what others have experienced? Is the card toast, or can it be salvaged somehow?

t3h 2007-12-15 10:54

Re: SDHC Corruption bug back?
 
Quote:

Originally Posted by zerojay (Post 104877)
That will work too, but many card readers just don't have lights anymore.

Type "sync" at a console and then wait for it to exit.

fnordianslip 2007-12-21 19:20

Re: SDHC Corruption bug back?
 
Damn. Just fell victim to a related problem on my N800 with latest OS2008. I was copying about 150MB in 4 files from my MacBookPro onto mmc1 and went to make a cup of tea. When I came back the N800 had locked up completely and so had Finder on the Mac.

So, I pulled the USB cable and the N800 rebooted.

The mmc1 card went read-only. Opening the door and closing it again remounts the card as RW. Trying to copy files from mmc1 to mmc2 made the card RO again with an IO error. Cycling the door eventually allowed me to delete the partially written file and others that completed in the same copy operation.

The card seems to be acting normal-ish now. I've managed to do a backup to it and copy the backup folder back onto mmc2.

I don't know if anyone can shed any light on this, or if this info is of any use to anyone else, but this is the first time i've seen anything like this occur and I've used the same card under OS2007 and OS2008 beta.

Abilnet 2007-12-22 09:11

Re: SDHC Corruption bug back?
 
I can verify there's some memory card related problems with OS2008.

I had the latest OS2007 flashed on my N800 and everything worked just fine, including both 2G memory cards.

But when yesterday flashing the latest OS2008 things changed... I was reported by OS2008 that my cards are "corrupted or not formatted" (in reality that was not the case, data on the the cards was perfectly available by other devices)

I tried several combinations with memory cards, verifying the magnet etc, even flashing the device again - but the problem did not go away.

I had no choice than flash the latest OS2007 back - everything works now.

What's the proper place to report this kind of bugs? (I visited Maemo Bugzilla but was not sure it that's the place?)

PS. The new OS2008 looks promising!

Abilnet 2008-01-15 15:48

Re: SDHC Corruption bug back?
 
More information and at least a partial solution for my case at Maemo:
https://bugs.maemo.org/show_bug.cgi?id=2637

(even tiny differences in memory cards can cause problems, bulk cards may work or not)

FGol 2008-01-15 21:59

Re: SDHC Corruption bug back?
 
I had just run into this problem on my N810.... all of a sudden my internal memory card was going read-only on me. On a fresh reboot it was rw but trying to delete files from it switched it to ro. The dmesg log was similar to the N800 posted in the bug but different. It clearly showed dissatisfaction with the FAT file system on the card.

I thought I had done the repartition and KDE installation procedure incorrectly but I searched and found this thread. The fix was the same as the N800's.... umount and redo the filesystem. NBD.

Thanks for the thread.
Frank


All times are GMT. The time now is 14:07.

vBulletin® Version 3.8.8