maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   SOLVED "Internal" Memory Card corrupted. (https://talk.maemo.org/showthread.php?t=80717)

fidel 2011-12-07 21:08

SOLVED "Internal" Memory Card corrupted.
 
I've searched the threads and found that it's most likely due to FAT corruption while the USB cable was connected to my computer.

I tried michaaa62 "http://talk.maemo.org/showthread.php?t=71702"
solution and got a Invalid argument error message.

HTML Code:

fsck -af /dev/mmcblk0p1

fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Cluster size is zero.

mount /dev/mmcblk0p1 /home/user/MyDocs

mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed:
Invalid argument

Another thread recommended installing the system update but that didn't help.

Additionally when connected to my windows laptop, it recognizes the N900 as Removal Disk G and H but I can't explore.

Please help, this is the first time I've used rootsh

stlpaul 2011-12-07 22:09

Re: "Internal" Memory Card corrupted.
 
I think maybe you should use /usr/sbin/mmc-mount instead of mount, that way it applies all of the proper mounting options.

fidel 2011-12-07 22:24

Re: "Internal" Memory Card corrupted.
 
Quote:

Originally Posted by stlpaul (Post 1134734)
I think maybe you should use /usr/sbin/mmc-mount instead of mount, that way it applies all of the proper mounting options.

So I should type?:
HTML Code:

mount /usr/sbin/mmc-mount

peterleinchen 2011-12-07 23:00

Re: "Internal" Memory Card corrupted.
 
ooks like you also have a deeper problem.
"Cluster size is zero" does not sound good, i.e. your space on your first partition is zero or not available at all.

Here is my output (with -n instead -af, just checking, no changes):
$ sudo fsck /dev/mmcblk0p1 -n
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/mmcblk0p1: 21384 files, 442377/442377 clusters

Check partitions with
sfdisk - l

Did you reboot?
Sorry for not being helpful, but I do not know more at this stage.

--edit
Oh, and mounting should work with your commandor even
moumt /dev/mmcblk0p1
or
mount /home/user/MyDocs
as they are in /etc/fstab. I use these and have no problems.

fidel 2011-12-07 23:23

Re: "Internal" Memory Card corrupted.
 
Quote:

Originally Posted by peterleinchen (Post 1134752)
ooks like you also have a deeper problem.
"Cluster size is zero" does not sound good, i.e. your space on your first partition is zero or not available at all.

Here is my output (with -n instead -af, just checking, no changes):
$ sudo fsck /dev/mmcblk0p1 -n
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/mmcblk0p1: 21384 files, 442377/442377 clusters

Check partitions with
sfdisk - l

Did you reboot?
Sorry for not being helpful, but I do not know more at this stage.

--edit
Oh, and mounting should work with your commandor even
moumt /dev/mmcblk0p1
or
mount /home/user/MyDocs
as they are in /etc/fstab. I use these and have no problems.

Here's my output:
HTML Code:

$ fsck /dev/mmcblk0p1 -n

fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Cluster size is zero.

$ sfdisk - l

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, block of 1024 bytes, counting from 0

Device Boot Start        End        #cyls        #blocks        Id        System
/dev/mmcblk0p1        1        884864        884864        28315648        cW95 FAT32 (LBA)
/dev/mmcblk0p2        884865        950400        65536        2097152        83        Linux
/dev/mmcblk0p3        950401        974976        24576        786432        82        Linux swap / Solaris
/dev/mmcblk0p4        0        -        0        0        0        Empty

Should I now try:
HTML Code:

mount /dev/mmcblk0p1
mount /home/user/MyDocs


pusak gaoq 2011-12-08 03:47

Re: "Internal" Memory Card corrupted.
 
install backupmenu...it can fsck our device....if problem still persist then download Gparted Live CD to fixed any corrupted device....
remember Gparted Live CD need backupmenu (mass storage mode) to fixed your problem...

fidel 2011-12-08 14:40

Re: "Internal" Memory Card corrupted.
 
Quote:

Originally Posted by pusak gaoq (Post 1134842)
install backupmenu...it can fsck our device....if problem still persist then download Gparted Live CD to fixed any corrupted device....
remember Gparted Live CD need backupmenu (mass storage mode) to fixed your problem...

Thank you.
I ran fsck (rootsh) in the code above. Is (backupmenu) a different version? I'm not familiar with fsck so I will execute exactly what you say.

If that fails, and I need to make a Gparted Live CD what do I need to execute?

Sorry for all the questions. This is the first time I've "gone under the hood"

pusak gaoq 2011-12-08 15:23

Re: "Internal" Memory Card corrupted.
 
Quote:

Originally Posted by fidel (Post 1135024)
Thank you.
I ran fsck (rootsh) in the code above. Is (backupmenu) a different version? I'm not familiar with fsck so I will execute exactly what you say.

If that fails, and I need to make a Gparted Live CD what do I need to execute?

Sorry for all the questions. This is the first time I've "gone under the hood"

install backupmenu into your device & reboot your device with your keyboard slider open...this will boot backupmenu....now ignore any error on backupmenu startup....
once backupmenu is open look at and option to fsck your device....it will fsck all partition on your device...if there a problem it will be show in its log....
fsck your device a few times to makes sure it can fix any error....after fcsk then use option quit & reboot...remember to close your keyboard to reboot like normal...

peterleinchen 2011-12-08 22:08

Re: "Internal" Memory Card corrupted.
 
But be prepared that 'fsck'ing that way may lead to a bricked device, as it did for me once. So backup is important!
But I really had file system problems with unreadable files and NFS stale files and so on. Your problem looks more like a partitioning problem to me (but I do not have any more advices for you).

fidel 2011-12-09 01:36

Re: "Internal" Memory Card corrupted.
 
Quote:

Originally Posted by pusak gaoq (Post 1135035)
install backupmenu into your device & reboot your device with your keyboard slider open...this will boot backupmenu....now ignore any error on backupmenu startup....
once backupmenu is open look at and option to fsck your device....it will fsck all partition on your device...if there a problem it will be show in its log....
fsck your device a few times to makes sure it can fix any error....after fcsk then use option quit & reboot...remember to close your keyboard to reboot like normal...

Thank You
I tried many times, but (backupmenu) fsck failed.
HTML Code:

checking mydocs...
errors may have been encountered: code : 8
fsck.ext2: Bad magic number in super-block
while trying to open /dev/mmcblk0p1
        press any key to continue

After work tomorrow, I'll download Gparted Live CD to my windows laptop. Then I'll run backupmenu (mass storage mode) and connect it to my laptop.


All times are GMT. The time now is 02:02.

vBulletin® Version 3.8.8