


Cloning the Operating System to Internal SD/MMC Card
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"
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
o 0 - Create ext2 filesystem on partition 2 of the Internal memory card
o 1 - Mount partition 2 as /opt
o 2 - Mount rootfs as /floppy
o 3 - Perform cloning process
o 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