View Single Post
anim1's Avatar
Posts: 146 | Thanked: 40 times | Joined on Jun 2010 @ philly
#3076
after putting in these command all hell broke loose. even after reflash i cant get my phone back, no root in x terminal, no applications in app manager, no folder or folders in file manager everything is gone, can someone help me.
mkdir -p /home/user/util-linux /home/user/bin
cp /home/user/MyDocs/util-linux_2.13.1.1-1_armel.deb /home/user/util-linux
cd /home/user/util-linux
dpkg-deb -x util-linux_2.13.1.1-1_armel.deb root
cp root/sbin/fdisk /home/user/bin/
cd ..
rm -rf util-linux

2. Unmount designated partition (./MyDocs): umount /home/user/MyDocs

3. Launch Fdisk: /home/user/bin/fdisk /dev/mmcblk0

4. Print your current partition table: p

This table should show up:
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2 884865 28315648 c W95 FAT32 (LBA)
/dev/mmcblk0p2 884866 950401 2097152 83 Linux
/dev/mmcblk0p3 950402 974977 786432 82 Linux swap / Solaris

5. Delete partition 1 (./MyDocs): d
1

6. Create new re-sized primary partition: n
p
1
First cylinder: 2
Last cylinder: 800000

7. Create new extended partition: n
e
First cylinder: 800001
Last cylinder: 884865
n
First cylinder: 800001
Last cylinder: 884865
t
1
76
t
5
76

8. Point of no return - writing the table and syncing: w
reboot

9. Ignore any errors. After the reboot, return ./MyDocs back and format the new NITDroid partition by executing these: root
/home/user/bin/fdisk /dev/mmcblk0
t
1
0c
w
reboot
mkfs.vfat -F 32 /dev/mmcblk0p1
mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5
reboot

If your device still has a flash memory on it, then lift your shoulders up as the hard part is gone!

10. Install Nitdroid on the new partition: apt-get update
apt-get install nitdroid-installer
mkdir -p /and
mount -o noatime,rw /dev/mmcblk0p5 /and
cd /home/user/MyDocs
rm -rf /and/*
bzcat Nitdroidarchivename.tar.bz2 | tar xvC /and
dpkg -i nitdroid-kernel-2.6.28-07_rc4_armel.deb
reboot