Reply
Thread Tools
Posts: 12 | Thanked: 1 time | Joined on Aug 2013
#1
my emmc is finally corrupted after attemp to remove nitdroid partition following settings from the wiki page on how to create 2gb partition on emmc!
HOW IT STARTED
my device was fresh with 27gb/2gb partitioning until i felt that its time to install nitdroid on my emmc, everything went well until i decided to remove nitdroid as it was extremely buggy and crashed alot!, uninstallation went well but my device remained with 24/1.80 gb partitioning, now i formatted my emmc via winxp sp2 and all went well but size remained 24 instead of 27, now i reverted to wiki page instructing how to revert to default partition settings but failed to create the table! and now my memory lowered to 11gb, again following afew other instructions from maemo .org now it goes to 22/22, so now i pm one expert here who gave me certain commands which now gave me a "MEMORY CARD CORRUPTED", the app memory is 1.80gb but on the device side there is nothing but MEMORY CARD CORRUPTED
FILEMANAGER=no files/folders
ERROR AT STARTUP=storage format not supported
XTERMINAL OUTPUT


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.

~ $ mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
/dev/mmcblk0p2 on /home type ext3 (rw,noatime,errors=continue,commit=1,data=writebac k)
/home/opt on /opt type none (bind)
nodev on /sys/kernel/debug type debugfs (0)
~ $ df -h
Filesystem Size Used Available Use% Mounted on
rootfs 227.5M 127.3M 96.0M 57% /
ubi0:rootfs 227.5M 127.3M 96.0M 57% /
tmpfs 1.0M 84.0k 940.0k 8% /tmp
tmpfs 256.0k 80.0k 176.0k 31% /var/run
none 10.0M 80.0k 9.9M 1% /dev
tmpfs 64.0M 4.0k 64.0M 0% /dev/shm
/dev/mmcblk0p2 2.0G 168.1M 1.7G 9% /home
/home/opt 2.0G 168.1M 1.7G 9% /opt
~ $ ls -al /home
drwxr-xr-x 6 root root 4096 Jan 1 17:16 .
drwxr-xr-x 24 root root 1568 Nov 29 2013 ..
drwx------ 3 user users 4096 Nov 9 2013 home
drwx------ 2 root root 16384 Jan 1 1970 lost+found
drwxr-xr-x 7 root root 4096 Nov 29 2013 opt
drwxr-xr-x 31 user users 4096 Jan 1 20:10 user
~ $
sudo gainroot


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 # sfdisk -l

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 799999 799999 25599968 c W95 FAT32 (LBA)
/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
/dev/mmcblk0p5 800000+ 884864 84865- 2715672 76 Unknown
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/mmcblk0p1: 0 files, 1/1599216 clusters
/home/user # mount /dev/mmcblk0p1 /home/user/MyDocs
/home/user #
NOTE: during all commands i never wrote the partition table but kept on repeating the the revert method from defferent websites but always failed at creating the partition table.
UPDATE
EMMC IS BACK BUT STILL 24.40GB FOR FILES/1.80GB FOR APPS BUT I NEED THE DEFAULT 27GBFILES/2GB APPS
SUCCESS COMMAND=fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs
AT FIRST IT FAILED UNTIL I CLEARED DEVICE TWO TIMES AND COMMAND AND REBOOT.
THE PROBLEM IS NOW REGAINING THE 27/2GB PARTITION FORMAT help me out please.
....UPDATE....
i used this
Radicalz38 is offline Radicalz38

12-21-10 , 02:29 PM
Posts: 1,042 | Thanked: 421 times | Joined on May 2010

Report This | #18
There's an extra partition on your EMMC...

/dev/mmcblk0p5 622721+ 884864 262144- 8388600 76 Unknown

What you should do is to delete /dev/mmcblk0p4 then delete /dev/mmcblk0p1 recreate /dev/mmcblk0p1 then assign it's filesystem as 0c or fat32 to avoid reboot loop using sfdisk or fdisk. But I prefer fdisk. It's much easier to do than sfdisk.

Nokia-N900:~# cp /media/mmc1/fdisk /usr/sbin
cp: cannot stat '/media/mmc1/fdisk': No such file or directory
Nokia-N900:~#

You must have a copy of fdisk in your external memory card. If your using windows you should put it in your memory card's absolute path..

Ex.
E:/

specifically you should type

cp /path/to/where/you/put/fdisk /usr/sbin

Anyways if you got fdisk working here's the step by step.

type root then enter

type fdisk /dev/mmcblk0 then enter

type d then enter

type 4 then enter

type d then enter

type 1 then enter

type n then enter

type p then enter

type 1 then enter

Hit enter twice

type t then enter

type 0c then enter

type w then enter

reboot your device

Last edited by Radicalz38; 12-22-10 at 11:36 AM.
he forgot 1 inbetween T and 0c it should be
t enter
1 enter
0c enter
then i had to mount with code
sudo gainroot
mount /home/user/MyDocs/ and format with filemanager by long pressing on the n900 icon which never existed before mount
KUDOS michaaa62 for your 2days non-stop help!

Last edited by felix.lutaya; 2013-12-01 at 00:47. Reason: solved
 
pichlo's Avatar
Posts: 6,450 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#2
I don't see no problem. All you need to do is delete mmcblk0p5 and mmcblk0p4, move mmcblk0p2 and p3 up and expand mmcblk0p1. You can do this on-device but it can be a bit involved. The easiest way to do this is, install BackupMenu if not installed yet, then reboot to the menu and select mass storage mode. Attach to a Linux PC and edit your partitions in GParted. If you don't have a Linux PC, no problem. Download, burn and boot from an Ubuntu live CD.
 
Posts: 12 | Thanked: 1 time | Joined on Aug 2013
#3
Originally Posted by pichlo View Post
I don't see no problem. All you need to do is delete mmcblk0p5 and mmcblk0p4, move mmcblk0p2 and p3 up and expand mmcblk0p1. You can do this on-device but it can be a bit involved. The easiest way to do this is, install BackupMenu if not installed yet, then reboot to the menu and select mass storage mode. Attach to a Linux PC and edit your partitions in GParted. If you don't have a Linux PC, no problem. Download, burn and boot from an Ubuntu live CD.
thanks but i can't get an ubuntu live cd by now,even my broadband is off,if you can give me a step by step guide for x-terminal please...thanks!

Last edited by felix.lutaya; 2013-11-30 at 09:02. Reason: mistake in title
 
pichlo's Avatar
Posts: 6,450 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#4
Trust me, using a PC is waaaay easier. Not to mention safer. It's just too easy to screw up while doing it on-device. I definitely would not recommend embarking on it if you need to ask for step-by-step instructions.

Never mind Ubuntu, download just a GParted live CD. It's only about 180 MB, a mere quarter of the Ubuntu image. If you don't have a working internet at home, dowload it via 3G or get yourself a coffee and a cake in a café with free WiFi and download it there.

On the other hand, in light of your other problems, it might be even better to back up all your data and reflash. That will give you the default partitions for sure.
 
Posts: 25 | Thanked: 2 times | Joined on Mar 2013 @ Ulaanbaatar Mongolia
#5
i had thad problem before. i used gparted and solved easy. but i managed partition sizes wrong.

how to manage them again

i want to do it more swap size and less opt memory size. and want to use swap on memory card.

please guide me

screen shot
http://sharemobile.ro/data/share/screenshot11.png
 
pichlo's Avatar
Posts: 6,450 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#6
I don't understand what your problem is. If you resized your partitions once with GParted, then just do it again the way you like it. Regarding "swap on SD", search the forum for that string. Hint: if you have CSSU installed, then the solution is trivial. Just edit /etc/default/mount-opts. You will need an SD card with at least one swap partition.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:01.