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-22 17:05

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

Originally Posted by Radicalz38 (Post 902158)
BTW... unless this code in genfstab.awk is commented/edited it should remount /home perfectly...


So if your sure that you haven't messed up your genfstab.awk go with the fdisk step by step at the top post.

A nooby qs again..should I type this in terminal?
I didnt hear abt this genfstab.awk before :confused:

So I shall proceed with steps below..

Quote:

Originally Posted by Radicalz38 (Post 902160)
Ok... So nokia made that one T_T their weird...
Anyways I could assure you 80% success chance if you go with the fdisk tutorial.
















For that to work or not depends on your genfstab.awk
Cause the situation is... if N900 doesn't see any /home partition it would reboot.

And what genfstab.awk does here is

if /dev/mmcblk0p2 is formatted as Linux partition(83) and there's no /home mounted it would add "/dev/mmcblk0p2 /home ext3 noatime, rw,etc.. 0 0" to your fstab and that should make your n900 boot properly.

but like I said before..the step you tell Me to enter w..its 1-4 choice?
nyways I'll give a try now :(

EDIT: I'll give a try to michii way

michaaa62 2010-12-22 17:07

Re: How to restore partitioned n900 emmc??!!
 
please look above your message for a howto

Edit man i think slower than you type ;)

Radicalz38 2010-12-22 17:10

Re: How to restore partitioned n900 emmc??!!
 
Try michaaa62's post first before mine. I have no idea with sfdisk so can't guide you with that.

and I updated that post so it should work now.

zohal 2010-12-22 17:12

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

Originally Posted by michaaa62 (Post 902167)
please look above your message for a howto

Edit man i think slower than you type ;)

mate its just that I love this phone totally!
and when crappy problem lyk this..I feel really tensed and kinda depressed :p

hmm a noobi qs again..should I type first fdisk and thn the steps you mentioned..because it says cannot umount and that its Invalid argument..

so..??:confused:

Radicalz38 2010-12-22 17:12

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

Originally Posted by michaaa62 (Post 902163)
Unmount MyDocs for safeties sake
Code:

Umount /home/user/MyDocs
Make the second partition to contain a fresh file system
Code:

mkfs.ext3 -L home /dev/mmcblk0p2
Mount the new filesystem
Code:

mount /dev/mmcblk0p2 /mnt
Copy the content of /home
Code:

cp -a /home /mnt
Unmount the new partition after the copying is done
Code:

umount /mnt
Create a new partition table with this command (everything in this box is just one command)
Code:

echo "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" > table

Write the new partition table to the device
Code:

sfdisk --no-reread /dev/mmcblk0 < table
Now reboot the phone

After the next start make a fresh file system for MyDocs
Code:

umount MyDocs
mkfs.vfat -F32 -s64 -n MyDocs /dev/mmcblk0p1

Mount MyDocs
Code:

mount /dev/mmcblk0p1 /home/user/MyDocs
If errors occur please post the full message, don't panic, may be the Nokia folks did some extra tweak which have to get reverted also.

BTW 1 question with this... Will n900 properly mount the temporary home(/mnt) properly?

michaaa62 2010-12-22 17:24

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

And what genfstab.awk does here is
Quote:start == 1 && $6 == 83 && !__home {
printf "%s /home ext3 %s 0 0\n", $1, home_opts
printf "/home/opt /opt none bind\n"
__home++
}

if /dev/mmcblk0p2 is formatted as Linux partition(83) and there's no /home mounted it would add "/dev/mmcblk0p2 /home ext3 noatime, rw,etc.. 0 0" to your fstab and that should make your n900 boot properly.
It is said already

Edit No need for fdisk here, just use the commands as root.
Edit2: Regarding the unmount error. Totally fine, as there is no MyDocs on your device, which i wanted to make sure again.

zohal 2010-12-22 17:32

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

Originally Posted by michaaa62 (Post 902179)
It is said already

Edit No need for fdisk here, just use the commands as root.
Edit2: Regarding the unmount error. Totally fine, as there is no MyDocs on your device, which i wanted to make sure again.

so is this xterminal command
Quote:start == 1 && $6 == 83 && !__home {
printf "%s /home ext3 %s 0 0\n", $1, home_opts
printf "/home/opt /opt none bind\n"
__home++
}

Im really sry for asking silly qs but its just that Im not a well versed user of linux.

And I asked to use fdisk for Michaas way, because if I simply start with root > umount ... I get the message that "cannot mount, invalid argument"
:/

zohal 2010-12-22 17:33

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

Originally Posted by michaaa62 (Post 902179)
It is said already

Edit No need for fdisk here, just use the commands as root.
Edit2: Regarding the unmount error. Totally fine, as there is no MyDocs on your device, which i wanted to make sure again.

So I should just proceed further like that??

michaaa62 2010-12-22 17:45

Re: How to restore partitioned n900 emmc??!!
 
The howto is here http://talk.maemo.org/showpost.php?p...3&postcount=51
Anything else is just talk, talk, talk ;)

zohal 2010-12-22 17:46

Re: How to restore partitioned n900 emmc??!!
 
err does this command take time??
cp -a /home /mnt

:confused:


All times are GMT. The time now is 07:27.

vBulletin® Version 3.8.8