Reply
Thread Tools
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#1
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?
 
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#2
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.
 

The Following User Says Thank You to demolition For This Useful Post:
pantera1989's Avatar
Posts: 577 | Thanked: 699 times | Joined on Feb 2010 @ Malta
#3
Try these commands:

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

The Following 4 Users Say Thank You to pantera1989 For This Useful Post:
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#4
Originally Posted by pantera1989 View Post
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.
 

The Following User Says Thank You to demolition For This Useful Post:
Posts: 404 | Thanked: 186 times | Joined on Oct 2010 @ Dehradun,India
#5
Originally Posted by pantera1989 View Post
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

Last edited by raaj13; 2012-11-14 at 08:19.
 

The Following 3 Users Say Thank You to raaj13 For This Useful Post:
azad1top's Avatar
Posts: 84 | Thanked: 11 times | Joined on Aug 2012 @ iran
#6
Originally Posted by raaj13 View Post
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


Originally Posted by michaaa62 View Post
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
 

The Following 2 Users Say Thank You to azad1top For This Useful Post:
Posts: 404 | Thanked: 186 times | Joined on Oct 2010 @ Dehradun,India
#7
Originally Posted by azad1top View Post
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
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's Avatar
Posts: 577 | Thanked: 699 times | Joined on Feb 2010 @ Malta
#8
You're right. I didn't notice it
 

The Following User Says Thank You to pantera1989 For This Useful Post:
Posts: 177 | Thanked: 152 times | Joined on Oct 2011
#9
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
 

The Following User Says Thank You to Sourav.dubey For This Useful Post:
Posts: 418 | Thanked: 90 times | Joined on Nov 2009
#10
you say you have many bad sectors, so have you tried scanning for bad sectors on a windows pc? (scan and fix)
 

The Following User Says Thank You to crail For This Useful Post:
Reply

Thread Tools

 
Forum Jump


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