maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to restore partitioned n900 emmc??!! (https://talk.maemo.org/showthread.php?t=67108)

zohal 2010-12-17 14:36

How to restore partitioned n900 emmc??!!
 
I had partitioned my n900' s emmc to install neopwn v2.
Neopwn got installed successfully but now im facing problems of no space in rootfs!
I can't uninstall/download apps frm app manager..can't delete repositories nothing at all! :confused:

I searched and tried all the different ways described by the members here..but none helped :(

Now thinking of flashing My device emmc and firmware..
So just wanted to know if flashing the emmc will restore the emmc to stock 27/28gb or not??..because I had partioned it for 6gb!

thnx!!

Boemien 2010-12-17 15:05

Re: How to restore partitioned n900 emmc??!!
 
Flashing it with the original emmc image provided by nokia will resolve your problem.
Just enter your IMEI here : http://tablets-dev.nokia.com/nokia_N900.php
and download the correct emmc image.

michaaa62 2010-12-17 15:11

Re: How to restore partitioned n900 emmc??!!
 
Also it will not change the disk geometry, so your changes will persist.

zohal 2010-12-17 17:46

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by michaaa62 (Post 898788)
Also it will not change the disk geometry, so your changes will persist.

huh! but I don't want the current changes to persist..
I want to make sure whether flashing the emmc will give Me out-of-box state?

thx!

michaaa62 2010-12-17 18:29

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by zohal (Post 898857)
huh! but I don't want the current changes to persist..
I want to make sure whether flashing the emmc will give Me out-of-box state?

thx!

Why would one want to do that??? Just change the My docs and /home partitions like in wiki solution #1 once again and you are of with a 6GB /opt filesystem for installable applications and some 24 GB partition for myDocs, which will you give enough space for your files.
Well, if you really want go the nokia path again, then follow the instructions in the wki to revert those changes alltogether and apply the old partition table.
Quote:

How to revert

Warning: /home must have less than 2 GB usage! MyDocs will be deleted!
Code:

umount /home/user/MyDocs
sfdisk -c /dev/mmcblk0 1 83 # optional (safer): change FAT to ext3 id
mkfs.ext3 /dev/mmcblk0p1 # create ext3 on smaller partition
mount /dev/mmcblk0p1 /mnt # mount new /home
cp -a /home/* /mnt # copy contents of /home to large partition
umount /mnt # unmount it

create the file "table" (this is the original layout):
Code:

unit: sectors
/dev/mmcblk0p1 : start=      64, size= 56631296, Id=c
/dev/mmcblk0p2 : start= 56631360, size=  4194304, Id= 83
/dev/mmcblk0p3 : start= 60825664, size=  1572864, Id=82
/dev/mmcblk0p4 : start=        0, size=        0, Id= 0

continue with
Code:

sfdisk --no-reread /dev/mmcblk0 < table # change partition table, swap p1 and p2
Code:

reboot; exit # reboot to re-read new table
after reboot
Code:

mkfs.vfat -F32 -s64 /dev/mmcblk0p1  # create VFAT on 27GB partition
Code:

mount /home/user/MyDocs # mount it


zohal 2010-12-17 20:03

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by michaaa62 (Post 898894)
Why would one want to do that??? Just change the My docs and /home partitions like in wiki solution #1 once again and you are of with a 6GB /opt filesystem for installable applications and some 24 GB partition for myDocs, which will you give enough space for your files.
Well, if you really want go the nokia path again, then follow the instructions in the wki to revert those changes alltogether and apply the old partition table.

I was trying it but I get stuck at " create the file 'table' " :(
how do I do that step??

Im kinda noob at this

MohammadAG 2010-12-17 20:23

Re: How to restore partitioned n900 emmc??!!
 
Use a hex editor on the eMMC image and change the size from 2048 to something you want (multiply 1024 * number you want), I suggest not going over 9GBs since that will change the image's size and make it unflashable.

zohal 2010-12-17 20:29

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by MohammadAG (Post 898971)
Use a hex editor on the eMMC image and change the size from 2048 to something you want (multiply 1024 * number you want), I suggest not going over 9GBs since that will change the image's size and make it unflashable.

Thx for the reply!
but I want to change it back as it was out of the box new.
I did this partition to install neopwn v2 on emmc..now I regret it! :(

So will flashing the emmc make it like new??

thx!

MohammadAG 2010-12-17 20:40

Re: How to restore partitioned n900 emmc??!!
 
If you flash the eMMC image yes, you could also use the MeeGo initrd image, then press U and export the eMMC over USB, then you can use any partition manager like gparted to restore partitions.

Not sure if it's documented anywhere, but here's the page for the initrd, it's quite simple to do and doesn't require you to flash the device's eMMC or rootfs, just make sure you have a full battery before doing it. http://wiki.meego.com/ARM/N900/Using_Rescue_Initrd

And before you ask, no, it does not alter the rootfs or the kernel, it runs from RAM.

michaaa62 2010-12-18 09:27

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by zohal (Post 898958)
I was trying it but I get stuck at " create the file 'table' " :(
how do I do that step??

Im kinda noob at this

Either you use any text editor like nano, vi or leafpad, or you just use the echo command like there: http://talk.maemo.org/showpost.php?p=895503&postcount=8
Please note this not the partition table you probally want to achieve!


All times are GMT. The time now is 21:22.

vBulletin® Version 3.8.8