maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Memory problems n900 (Read Only file) (https://talk.maemo.org/showthread.php?t=87856)

azad1top 2012-11-13 20:19

Memory problems n900 (Read Only file)
 
Hello.

* My memory has been corrupted. I do not to format want it.
Has many bad sectors
Deterioration mmcblk0p2:(
The only way to re-partition my drive.
Is there a way to replace the partition?

demolition 2012-11-13 21:51

Re: Memory problems n900 (Read Only file)
 
You should not need to repartition just yet - check the file system. There are quite a few threads on TMO and possibly some mention in the Wiki. Essentially, you first "unmount" mmcblk0p2 (i.e. the MyDocs partition), then you perform the check and lastly turn the phone off. When you turn it back on, it will all be OK.

Look it up because it's worth remembering the command terms - there are only two or three and they're quite short.

pantera1989 2012-11-13 22:25

Re: Memory problems n900 (Read Only file)
 
Try these commands:

Code:

root
umount /dev/mmcblk0p2
fsck.vfat -aw /dev/mmcblk0p2


demolition 2012-11-13 23:21

Re: Memory problems n900 (Read Only file)
 
Quote:

Originally Posted by pantera1989 (Post 1293967)
Try these commands:

Code:

root
umount /dev/mmcblk0p2
fsck.vfat -aw /dev/mmcblk0p2


Yes, that's the actual code for the pseudo code I wrote above. The fsck line needs to be repeated until no errors are reported.

raaj13 2012-11-14 08:14

Re: Memory problems n900 (Read Only file)
 
Quote:

Originally Posted by pantera1989 (Post 1293967)
Try these commands:

Code:

root
umount /dev/mmcblk0p2
fsck.vfat -aw /dev/mmcblk0p2


mmcblk0p2 is actually optfs and you cant unmount it while device is on.
MyDocs is mmcblk0p1
and mmcblk0p3 is swap memory

azad1top 2012-11-22 16:36

Re: Memory problems n900 (Read Only file)
 
Quote:

Originally Posted by raaj13 (Post 1294057)
mmcblk0p2 is actually optfs and you cant unmount it while device is on.
MyDocs is mmcblk0p1
and mmcblk0p3 is swap memory

Yes







Command in error





Code:


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# umount /dev/mmcblk0p2
umount: cannot umount /dev/mmcblk0p2: Invalid argument
Nokia-N900:~# fsck.vfat -aw /dev/mmcblk0p2
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
Nokia-N900:~#


I have a recipe for something beyond the need to re-partition my


investigated further I and michaaa62


Difficulties in the flash n900

Was recommended for better partitions:(


Quote:

Originally Posted by michaaa62 (Post 1271631)
Pm sent.
Try backupmenu and gparted from GParted-Live-CD or ubuntu- / debian-based Live-CD, please.

But I could not run the GParted-Live-CD:(
More help restart and the new partition

Thanks:rolleyes:

raaj13 2012-11-22 21:34

Re: Memory problems n900 (Read Only file)
 
Quote:

Originally Posted by azad1top (Post 1297282)
Yes







Command in error





Code:


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# umount /dev/mmcblk0p2
umount: cannot umount /dev/mmcblk0p2: Invalid argument
Nokia-N900:~# fsck.vfat -aw /dev/mmcblk0p2
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
Nokia-N900:~#


I have a recipe for something beyond the need to re-partition my


investigated further I and michaaa62


Difficulties in the flash n900

Was recommended for better partitions:(




But I could not run the GParted-Live-CD:(
More help restart and the new partition

Thanks:rolleyes:

fsck.vfat wont run on mmcblk0p2 since its mounted and its ext3 file system.

root
fsck.ext3 /dev/mmcblk0p2

it will ask permission to check as optfs is mounted and you cant unmount it while device is on.

Alternative if you can install backupmenu.
It can check at boot time.

pantera1989 2012-11-22 22:09

Re: Memory problems n900 (Read Only file)
 
You're right. I didn't notice it :)

Sourav.dubey 2012-11-24 15:01

Re: Memory problems n900 (Read Only file)
 
Either use pali recovery console or backup menu root console
gain root access
then type
fsck.ext3 -f /dev/mmcblk0p2
this will repair all coming errors

crail 2012-11-24 15:36

Re: Memory problems n900 (Read Only file)
 
you say you have many bad sectors, so have you tried scanning for bad sectors on a windows pc? (scan and fix)


All times are GMT. The time now is 08:04.

vBulletin® Version 3.8.8