Active Topics

 


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#11
You need rootsh installed for this to work
Code:
sudo gainroot
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs
Please post the full error messages if errors occur.
 
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#12
Originally Posted by michaaa62 View Post
You need rootsh installed for this to work
Code:
sudo gainroot
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs
Please post the full error messages if errors occur.
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.

~ $ sudo gainroot
Root shell enabled


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.

/home/user # fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
fsck.ext3: Bad magic number in super-block while trying to open /dev/mmcblk0p1
/dev/mmcblk0p1:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#13
@rajanmb2005,

Just an (informed) guess. It appears that mmcblk0p1 is a VFAT partition, but is marked as being a Linux (ext3) partition.

As root, type "sfdisk -d" and post here the EXACT results.
 
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#14
Originally Posted by reinob View Post
@rajanmb2005,

Just an (informed) guess. It appears that mmcblk0p1 is a VFAT partition, but is marked as being a Linux (ext3) partition.

As root, type "sfdisk -d" and post here the EXACT results.
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:~# sfdisk -d
# partition table of /dev/mmcblk0
unit: sectors

/dev/mmcblk0p1 : start= 64, size= 64, Id=83
/dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
/dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
/dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5
# partition table of /dev/mmcblk1
unit: sectors

/dev/mmcblk1p1 : start= 16, size= 7858160, Id= b
/dev/mmcblk1p2 : start= 0, size= 0, Id= 0
/dev/mmcblk1p3 : start= 0, size= 0, Id= 0
/dev/mmcblk1p4 : start= 0, size= 0, Id= 0
Nokia-N900:~#
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#15
dev/mmcblk0p1 should be something like ID c W95 FAT32 (LBA)

I'm not sure but I guess changing the id back with fdisk would destroy all your data on MyDocs.

Try to boot rescue mode from BackupMenu and connect to a Ubuntu 11.04 Live-CD. Then try to fix it with Gparted. forget that.

Did you installed backupmenu successfully? I mean do you get a small menu when booting your phone with keyboard open?
If so fine, just download this file
http://robbiethe1st.afraid.org/Backu...7-optfs.tar.gz
copy it to your memory card in folder systemBackups.

Then start backupmenu and choose (r) Restore a backup -> eMMC MyDocs (don't know exactly how it's listed there)
Try it and post back...

Greetz,

J4ZZ

Last edited by J4ZZ; 2012-04-20 at 23:32.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#16
dev/mmcblk0p1 should be something like ID c W95 FAT32 (LBA)

I'm not sure but I guess changing the id back with fdisk would destroy all your data on MyDocs.
The change of the id via sfdisk is only applied to the partition table. So that might be safe to change, unless you, at some time did not not follow one of the howtos to change the file system for the MyDocs-Partition, but only you know if you did.

Am i right, that you do not want to recover some lost files from any partition, that was deleted, but want to have a usable partition for a fresh new MyDocs? Then proceed
Code:
sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size=51199936 , Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
Note: These are two commands, first to gain root rights, second to create the file table with the right content.

Next dump it to the device
Code:
sfdisk --no-reread /dev/mmcblk0 < table
Now the Phone is ready to reboot, you still have to apply the file system to the MyDocs partition and add the fifth partition inside the extended fourth partition

Please ask if anything is still unclear.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#17
Originally Posted by michaaa62 View Post
The change of the id via sfdisk is only applied to the partition table. So that might be safe to change, unless you, at some time did not not follow one of the howtos to change the file system for the MyDocs-Partition, but only you know if you did.

Am i right, that you do not want to recover some lost files from any partition, that was deleted, but want to have a usable partition for a fresh new MyDocs? Then proceed
Code:
sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size=51199936 , Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
Note: These are two commands, first to gain root rights, second to create the file table with the right content.

Next dump it to the device
Code:
sfdisk --no-reread /dev/mmcblk0 < table
Now the Phone is ready to reboot, you still have to apply the file system to the MyDocs partition and add the fifth partition inside the extended fourth partition

Please ask if anything is still unclear.


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.

~ $ sudo gainroot
Root shell enabled


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.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size=51199936 , Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended

sfdisk: input error: unexpected character after size field
/home/user #

Last edited by rajanmb2005; 2012-04-21 at 08:42. Reason: correction
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#18
There is a typo in the echo command, sorry for that!
Code:
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
This should work now!
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#19
Originally Posted by michaaa62 View Post
There is a typo in the echo command, sorry for that!
Code:
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
This should work now!


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.

~ $ sudo gainroot
Root shell enabled


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.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
New situation:
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/mmcblk0p1 64 51199999 51199936 c W95 FAT32 (LBA)
/dev/mmcblk0p2 56631360 60825663 4194304 83 Linux
/dev/mmcblk0p3 60825664 62398527 1572864 82 Linux swap / Solaris
/dev/mmcblk0p4 51200000 56631359 5431360 5 Extended
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/home/user #
 
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#20
Originally Posted by rajanmb2005 View Post
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.

~ $ sudo gainroot
Root shell enabled


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.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
New situation:
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/mmcblk0p1 64 51199999 51199936 c W95 FAT32 (LBA)
/dev/mmcblk0p2 56631360 60825663 4194304 83 Linux
/dev/mmcblk0p3 60825664 62398527 1572864 82 Linux swap / Solaris
/dev/mmcblk0p4 51200000 56631359 5431360 5 Extended
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/home/user #
i have rebooted

thanks to all

great

everything returned back

thanks

Last edited by rajanmb2005; 2012-04-21 at 16:29.
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:54.