maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   memory card corrupted (MicroSD) (https://talk.maemo.org/showthread.php?t=49431)

oddish2211 2010-04-07 14:49

memory card corrupted (MicroSD)
 
a few days ago i noticed i couldn't access the micro sd card in my N900. it worked perfectly before and it still works perfectly when i use it on my pc or other phones. i even can format it on my pc without problems.

but everytime i put it i my N900 it gives a message in the "memory" page in settings that the card is corrupted.

i installed the 900MHz zImage kernel could that be a problem?

GameboyRMH 2010-04-07 14:51

Re: memory card corrupted (MicroSD)
 
Try backing up the data on your PC, reformatting the microsd card and putting the data back. If you still have problems it's not the card itself.

MohammadAG 2010-04-07 14:52

Re: memory card corrupted (MicroSD)
 
As root in terminal:
fsck.vfat -a /dev/mmcblk1p1
then reboot

Cobra 2010-04-07 14:59

Re: memory card corrupted (MicroSD)
 
i had this problem also i just rebooted the phone and it worked. i dont know what caused it.

oddish2211 2010-04-07 14:59

Re: memory card corrupted (MicroSD)
 
Quote:

Try backing up the data on your PC, reformatting the microsd card and putting the data back. If you still have problems it's not the card itself.
i've already tried that

Quote:

As root in terminal:
fsck.vfat -a /dev/mmcblk1p1
then reboot
this gives me
open /dev/mmcblk1p1:No such file or directory
and no, i didn't type it wrong, i've copied pasted it

but in /dev
i have a few directories with the same naming;
mmcblk0
mmcblk0p1
mmcblk0p2
mmcblk0p3
mmcblk1

edit:

does the p1 mean the partition?
because that'll mean that i have to select the whole device instead of 1 partition. can anyone confirm this?

stlpaul 2010-04-07 15:09

Re: memory card corrupted (MicroSD)
 
Could simply be a bad card, I have a 8gb Transcend MicroSD card that is crap, it "works" but everything always becomes corrupt. No matter if I use in my N900, N95, Camera, PC... it is just defective. Other cards work fine.

If you have data you want to recover, try "testdisk", it was able to get most of my files from the corrupt card.

lma 2010-04-07 15:09

Re: memory card corrupted (MicroSD)
 
Quote:

Originally Posted by oddish2211 (Post 599434)
i installed the 900MHz zImage kernel could that be a problem?

Yes, overclocking the CPU could result in filesystem corruption or even possibly damage to other circuits such as the card reader.

MohammadAG 2010-04-07 16:14

Re: memory card corrupted (MicroSD)
 
Quote:

Originally Posted by oddish2211 (Post 599457)
i've already tried that



this gives me
open /dev/mmcblk1p1:No such file or directory
and no, i didn't type it wrong, i've copied pasted it

but in /dev
i have a few directories with the same naming;
mmcblk0
mmcblk0p1
mmcblk0p2
mmcblk0p3
mmcblk1

edit:

does the p1 mean the partition?
because that'll mean that i have to select the whole device instead of 1 partition. can anyone confirm this?

What's the card formatted in?
You can try mount /dev/mmcblk1 /media/mmc1 but I'm not sure if it'd work.

oddish2211 2010-04-07 16:25

Re: memory card corrupted (MicroSD)
 
Quote:

Originally Posted by MohammadAG (Post 599578)
What's the card formatted in?
You can try mount /dev/mmcblk1 /media/mmc1 but I'm not sure if it'd work.

this gives an input/output error :confused:

edit:
is there perhaps a program like fdisk that runs on the N900? because i'm used of using fdisk on linux.

oddish2211 2010-04-08 05:36

Re: memory card corrupted (MicroSD)
 
anyone? when i search the forum about this, i can only find problems with a corrupt internal memory.

Rob1n 2010-04-08 08:23

Re: memory card corrupted (MicroSD)
 
You can try using sfdisk to partition the card, but it's not the most user-friendly of fdisk programs (it's designed more for scriptability). You can dig out the manual pages online and give it a go though.

oddish2211 2010-04-08 09:27

Re: memory card corrupted (MicroSD)
 
sfdisk: read error on /dev/mmcblk1 - cannot read sector 0
/dev/mmcblk1: unrecognized partition table type
No partitions found

this is what i get when i list all the partitions.
is it possible that the whole card reader isn't working right?
i'll try flashing back to the default kernel this afternoon

jakiman 2010-04-08 09:31

Re: memory card corrupted (MicroSD)
 
Flash the stock kernel back then try again. or even perform a full re-flash.
There is a remote possibility of hw damage caused by overclocking but it would be extremely rare.

MohammadAG 2010-04-08 10:39

Re: memory card corrupted (MicroSD)
 
Quote:

Originally Posted by oddish2211 (Post 600731)
sfdisk: read error on /dev/mmcblk1 - cannot read sector 0
/dev/mmcblk1: unrecognized partition table type
No partitions found

this is what i get when i list all the partitions.
is it possible that the whole card reader isn't working right?
i'll try flashing back to the default kernel this afternoon

Plug it into a PC and use gparted to create a new partition table.
If that doesn't work I'm guessing your card is dead.

oddish2211 2010-04-08 10:50

Re: memory card corrupted (MicroSD)
 
i'll try that this afternoon.
but the card isn't dead, i tested it through my pc

GameboyRMH 2010-04-08 12:25

Re: memory card corrupted (MicroSD)
 
Do you have any other microsd cards you can try? You said it works fine in everything except your N900...could be that your N900 has a problem.

oddish2211 2010-04-08 13:04

Re: memory card corrupted (MicroSD)
 
i have the N900 for about 1 month, i've flashed the 900MHz firmware 3 days ago, i don't know if the memory card problems started before or after i flashed it.

i'll try to reflash it in a minute

edit:
i'm installing ubuntu in a VM, so it'll take more than a few minutes. but should i reflash everything? even the emmc?

Rob1n 2010-04-08 13:53

Re: memory card corrupted (MicroSD)
 
Quote:

Originally Posted by oddish2211 (Post 600934)
i'm installing ubuntu in a VM, so it'll take more than a few minutes. but should i reflash everything? even the emmc?

The eMMC shouldn't affect the SD card at all, so I'd try just doing the firmware first. If that still doesn't work, then do both.

oddish2211 2010-04-08 18:51

Re: memory card corrupted (MicroSD)
 
i've been trough a lot of trouble, and i finally did it.
i've had to flash the os and the emmc. but now my microsd card works again. thanks for all the help

damion 2010-04-08 19:13

Re: memory card corrupted (MicroSD)
 
Other than reflashing, did you also do the repartitioning?

I ask because DOS/Windows will happily and annoyingly transparently, use a partitionless block device (disk) as a drive, say E: or some other letter. You can find out, but it's not immediately obvious that it's not a partition on the SDcard.

Linux/bsd/etc can all do this but you tend to notice. The n900 is looking for /dev/mmcblk1p1 as a fat(32) partition. It won't try the whole device nor accept non fat.

So when you say the MicroSD worked, you might have seen it using /dev/mmcblk1 (or whatever terminology Windows uses to mean whole disk).

RDK 2010-04-08 19:20

Re: memory card corrupted (MicroSD)
 
You need to flash it on your phone mate.

oddish2211 2010-04-08 21:30

Re: memory card corrupted (MicroSD)
 
Quote:

Originally Posted by RDK (Post 601505)
You need to flash it on your phone mate.

what do you mean?

sophocha 2010-04-09 14:18

Re: memory card corrupted (MicroSD)
 
I can confirm that after flashing the 125/900 kernel I got 'sdcard not found' when I`m opening Sygic.....then I flashed the stock kernel and again back to the 125/900 , as well as restoring the 'about' info and now all is great.


All times are GMT. The time now is 00:37.

vBulletin® Version 3.8.8