View Single Post
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#7
Lets see if we can breath any life back into your emmc. In the process your settings and configs will get wiped, please start the built-in Backup application and create a backup on your external card. For safeties reason pull your external card to make sure the kernel has other ideas than we have about the devices!
To get around errors of a missing optfs, please flash the .fiasco image fresh or remove anything that might have installed into /opt.

After the reboot we start by installing rootsh from extras repository, if you flashed the device.
Then delete My Docs partition by making it unknown and then reformat it
Code:
sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 50339840, Id=0
> /dev/mmcblk0p2 : start= 50339904, size= 10485760, Id=0
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > partitiontable
sfdisk --no-reread /dev/mmcblk0 < partitiontable
Note: These 5 lines are one command, better copy and paste it from the browser to the X-Terminal
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 50339840, Id=0
> /dev/mmcblk0p2 : start= 50339904, size= 10485760, Id=0
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > partitiontable
Shut your phone down (no reboot, shutdown please), pull the battery and disconnect from charger, then after a couple of seconds start it up.
Open X-Terminal
Code:
sudo gainroot
sfdisk -c /dev/mmcblk0 1 c
sfdisk -c /dev/mmcblk0 2 83
mkfs.vfat -n MyDocs -F32 -s64 /dev/mmcblk0p1
mkfs.ext3 -L optfs /dev/mmcblk0p2
mount /dev/mmcblk0p2 /mnt
cp -a /home/* /mnt
rm -rf /home
This make the partitions usable and formats them, mounts optfs and transfers anything from /home to the new partition and deletes the stuff in /home to save some space in NAND later. The last step has one disadvantage, if the whole procedure does not fully work, you might have to flash the device again .(

If there are no errors during the mkfs commands, you could now speak your best prayers, reboot and hope to have a working device
Good luck! And keep asking if any confusion arises.

Last edited by michaaa62; 2011-10-13 at 10:00.
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post: