View Single Post
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: