View Single Post
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#16
Originally Posted by Milhouse View Post
These instructions apply to OS 2006 (770), OS 2007HE (770) and OS 2007 (N800).

If you're all set with root access, xterm, wget, boot menu and e2fsprogs installed *and* a 256MB+ second partition on Internal memory card, jump straight to step 7... otherwise continue with the pre-reqs.
7. Download and execute the following script and binary
  • The following commands will download the cloning script and the GNU tar binary to assist with the cloning process
As user "user"
  • Code:
    mkdir ~/bin
    cd ~/bin
    wget http://www.nmacleod.com/nokia/bin/nupgrade.sh
    wget http://www.nmacleod.com/nokia/bin/tar
    chmod +x nupgrade.sh tar
As user "root"
  • Switch to the root superuser and begin the process of cloning the filesystem to partition two on the Internal memory card. This is achieved in stages to allow you to control progress and check for errors. Pass parameters to the nupgrade.sh script to control progress, as follows
    • 0 - Create ext2 filesystem on partition 2 of the Internal memory card
    • 1 - Mount partition 2 as /opt
    • 2 - Mount rootfs as /floppy
    • 3 - Perform cloning process
    • 4 - Commit filesystem updates and unmount /floppy and /opt
    Code:
    sudo gainroot
    cd /home/user/bin
    ./nupgrade.sh 0
    ./nupgrade.sh 1
    ./nupgrade.sh 2
    ./nupgrade.sh 3
    ./nupgrade.sh 4
    reboot
    Steps 5 and 6 are optional and may be performed in order to upgrade the freshly cloned OS 2007 (not OS 2006 or OS 2007HE) to the Sardine bleeding edge test distribution
    • 5 - Enter chroot gaol prior to upgrading cloned OS on memory card
    • 6 - Initiate Sardine operating system upgrade of cloned OS on memory card

    If performing a Sardine upgrade, use the following procedure:

    Code:
    sudo gainroot
    cd /home/user/bin
    ./nupgrade.sh 0
    ./nupgrade.sh 1
    ./nupgrade.sh 2
    ./nupgrade.sh 3
    ./nupgrade.sh 4
    ./nupgrade.sh 5
    
    cd /home/user/bin
    ./nupgrade.sh 6
    exit
    reboot
  • When the device reboots, choose option #3 "MMC card, partition 2, ext2" to boot from the freshly cloned OS
Hi, Mil. These are great instructions and easy to follow, thanks. I just want to tweak your brain, see if you have any different suggestions.

Right now, I just got my brand new 2 G MMC, have not even opened. I would like to clone 2006OS and 2007He on MMC, and either 2006OS or 2007He on internal flash of my 770. Currently, I have 2007He on internal flash and 2006OS cloned on 1 G MMC. I am also in the middle of setting up a Ubuntu box. I guess my situation is very similar to a lot of folks in this column, got a new 770, cloned 2006OS to MMC, then flash 2007He to internal flash. I suppose, a lot of folks will be interested to see how to accomplish 2007He cloned to MMC without starting from scratch, if possible.

1) what is the most efficient partition on a 2 G MMC? I seldom use 2006OS other than occasional watch some video, I propose like .3G to 1.7G partition, would that be adequate for 2006OS boot?

2) Can I partition the 2 G MMC on a Ubuntu box? or just a PC with a USB media reader?

3) Can a ubuntu box copy the 2006OS from a 1 G MMC to the 2 G MMC mmcblk02, if a Ubuntu box can work with those USB media reader thing...please dont laugh, I am squeazing my last neuron on technology! If the answer is yes, OMG, dont be shine, could you please write the commands too? I promise you, I will learn Debian before the next 2007He from Nokia

4) Then I can just clone my already flashed 2007He from 770 to the 2 G MMC mmcblk03.


If the above is not possible, then I am not quite sure how am I going to clone both 2006OS and 2007He to MMC simultaneously. It sounded way too complicate, maybe I just cloned the 2007He to MMC and forget (?) about 2006OS?


Thanks in advance, Mil. or anybody has good suggestions/experience, feel free to jump in, as I said, this is going to be followed by a lot of folks.


bun

Last edited by bunanson; 2007-09-15 at 06:33.