maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   Cloning OS to SD Card: Simplified instructions (https://talk.maemo.org/showthread.php?t=8631)

Milhouse 2007-08-08 18:40

Cloning OS to SD/MMC Card: Simplified instructions
 
These instructions apply to OS 2006 (770), OS 2007HE (770) and OS 2007/OS 2008 (N8x0).

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.

Pre-requisites to be satisfied before cloning OS

1. xterm must be installed
2. "Becomeroot" package must be installed or device in R&D mode
  • Install the Becomeroot package by adding the following repository to application manager:
    Quote:

    Web Address: http://eko.one.pl/maemo
    Distribution: bora or mistral (N800 or 770 respectively)
    Components: user
  • Alternatively see the maemo.org wiki for details on how to enable R&D mode.

3. wget installed for downloading web-based files from the command line
  • N800 users: Open xterm and execute the following commands in xterm (you must have satisfied pre-requisite #2 before continuing):
    Code:

    sudo gainroot
    apt-get install wget
    exit

  • 770 users: Download and install wget from http://maemo.org/downloads/product/wget using the one-click install option

4. e2fsprogs package installed
  • Open xterm and execute the following commands in xterm (you must have satisfied pre-requisite #2 before continuing, and have the following repository installed in the Application Manager):
    Quote:

    Web Address: http://repository.maemo.org/
    Distribution: bora or gregale (N800 or 770 respectively)
    Components: free non-free
    Code:

    sudo gainroot
    apt-get update
    apt-get install e2fsprogs
    exit


5. At least a 256MB partition is needed on /dev/mmcblk0p2 (partition 2, Internal SD/MMC card)
  • See various Wiki entries for details. Alternatively see post #49 in this thread which details the partitioning of various sized memory cards, ultimately creatiing a 0.5GB second partition in each case - formatting of the second partition will take place later on during the cloning process. Use the built-in Internet Tablet File Manager, a Windows PC or mkdosfs on the tablet/Linux PC to format the FAT partition).

6. Fanoush's modified initfs and boot menu should be installed
Once all of the above pre-requisites are satisfied continue at step 7.

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
7.1 As user "user"
  • Execute the following in xterm
    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


7.2 As user "root" (without Sardine upgrade)
  • 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


7.3 As user "user" (with Sardine upgrade)
  • Additional phases 5 and 6 below are optional and may be performed in order to upgrade a cloned OS 2008 (not OS 2006-7 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

Edit: See post #288 which details additional parameters for the nupgrade.sh script.

schmots 2007-08-08 18:49

Re: Cloning OS to SD Card: Simplified instructions
 
Why make it that hard.. why not just tar over and back the install?

Milhouse 2007-08-08 19:00

Re: Cloning OS to SD Card: Simplified instructions
 
Because some people struggle to do even that...? And because it does more than just tar the OS - it formats the filesystem, insmods the various modules, mounts the mount points and tar's rootfs. And it also upgrades to Sardine if you want it to.

Once all the pre-reqs are in place (which only need to be completed once per flash) and the script and tar have been downloaded (again once per flash), the user only needs to running the script in sequence (0-4 or 0-6) whenever they want to clone the OS. No need to remember each individual command/step or cut&paste from the wiki. Seems simpler to me... :)

schmots 2007-08-08 19:06

Re: Cloning OS to SD Card: Simplified instructions
 
The commands only need to be run once per flash too.. and I put up easier instructions than the wiki once upon a time. I like your method, it will help the mindless dual boot. I guess I just like to know whats going on under the hood as I figured anyone who would bother with a dual boot wou.d

fpp 2007-08-08 19:09

Re: Cloning OS to SD Card: Simplified instructions
 
Well I for, one, don't -- much. I just want the added space and speed, and follow Howtos :-)
Thanks Fanoush, and thanks Mil...

Milhouse 2007-08-08 19:20

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by schmots (Post 66723)
The commands only need to be run once per flash too..

Not if you stuff up your external memory card or otherwise corrupt the ext2 filesystem, which can happen several times between flashes :) Should your memory card or filesystem become corrupt (I find ext2 to be quite easy to corrupt) all that needs to be done to recreate the cloned OS is run the script with params 0 through 4 having booted from internal flash... only takes about 15 minutes and most of that time is taken by tar. :)

Quote:

Originally Posted by schmots (Post 66723)
and I put up easier instructions than the wiki once upon a time.

Unfortunately there seem to be several wikis covering this functionality, several of which are hopelessly out of date and have been badly mangled by the conversion to Midgard on maemo.org. I probably haven't seen your updated instructions but feel free to provide a link if they're still accurate/readable. :)

Quote:

Originally Posted by schmots (Post 66723)
I like your method, it will help the mindless dual boot.

I'd hesitate to say mindless, but it should help those who don't really care too much about how it all hangs together! :)

Quote:

Originally Posted by schmots (Post 66723)
I guess I just like to know whats going on under the hood as I figured anyone who would bother with a dual boot wou.d

As I wrote the script I guess that lets me off the hook, I've got a rough idea what the script is doing! ;)

The only reason I dual boot nowadays is to give Sardine a whirl every now and again - with this script I can clone and upgrade the OS to Sardine inside 30 minutes and I'm only typing 6 or 7 commands which aren't exactly difficult to remember (particularly as six of them are practically the same!) :)

The OS clone takes about 10-15 minutes, and the upgrade to Sardine another 15-20 minutes. Most of the time is spent waiting for files to copy or download/upgrade... run the next step... wait... run the next step... etc. until finished. Then reboot and enjoy (well as much as one can enjoy Sardine - the new finger menu is looking good though).

Hopefully these instructions will make life simpler for some people and may even allow yet more people to sample Sardine. It's an alternative to the various wiki instructions (although it skimps in some important areas such as partitioning etc.) but should be easier to follow if you don't want to have to think too much! :)

RioT 2007-08-08 19:45

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by fpp (Post 66726)
Well I for, one, don't -- much. I just want the added space and speed, and follow Howtos :-)
Thanks Fanoush, and thanks Mil...

I hear that... I learn as much as I can but I really dont have time anymore.


Quote:

Originally Posted by schmots (Post 66723)
I like your method, it will help the mindless dual boot. I guess I just like to know whats going on under the hood as I figured anyone who would bother with a dual boot wou.d

People use their minds AND n800/770 for different things.

smileyninja 2007-08-11 17:13

Re: Cloning OS to SD Card: Simplified instructions
 
Is this a typo?

Quote:

5. At least a 256MB partition is needed on /dev/mmcblk0p2 (partition 2, external SD/MMC card
I was under the impression that mmcblk0p(x) was the internal card (aka mmc2) and mmcblk1p(x) was the external card- mmc1. The script nupgrade.sh looks like it is working on mmcblk0 (internal card) but is calling it the external card.

The card slot on the bottom of the N800 under the stand is considered the external card and the card beside the battery on the back of the unit is the internal card--right?

Milhouse 2007-08-12 12:47

Re: Cloning OS to SD Card: Simplified instructions
 
Yes, that is a typo - mmcblk0px is the INTERNAL card, thanks for catching that.

I've now corrected the instructions (replacing external for internal) and uploaded an updated script - the original script worked fine, but would have displayed confusing comments... :)

Sarty 2007-08-23 16:49

Re: Cloning OS to SD Card: Simplified instructions
 
Noob reporting:

I've encountered problems at step 7 of this guide. Here's what I'm getting (verbatim):

sudo gainroot
/home/user # cd /home/user/bin
/home/user/bin # ./nupgrade 0
/bin/sh: ./nupgrade: not found
/home/user/bin #

Should I be typing in "./nupgrade.sh 0"?

I'm running IT2006 on n770, and I should add that I've checked in the /home/user/bin directory and both nupgrade.sh and tar are present.

Milhouse 2007-08-23 17:34

Re: Cloning OS to SD Card: Simplified instructions
 
Yes my bad, thanks for catching that - I'll update the instructions now. :)

ysss 2007-08-23 18:35

Re: Cloning OS to SD Card: Simplified instructions
 
I'm very interested to perform this procedure. How much faster does loading things from SD is, compared to the JFFS2 partition? Can hdparm be used to measure the jffs2 partition speed?

Milhouse 2007-08-23 18:39

Re: Cloning OS to SD Card: Simplified instructions
 
Search the forum for "hdparm", you'll find the thread with the answers you seek.

ysss 2007-08-23 19:12

Re: Cloning OS to SD Card: Simplified instructions
 
Thanks Milhouse. I did try searching for 'hdparm jffs2' but for some reason that thread didn't turn up in the result, although both terms are referenced in the thread.

TA-t3 2007-08-27 11:06

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by Sarty (Post 70646)
Noob reporting:

I've encountered problems at step 7 of this guide. Here's what I'm getting (verbatim):

sudo gainroot
/home/user # cd /home/user/bin
/home/user/bin # ./nupgrade 0
/bin/sh: ./nupgrade: not found
/home/user/bin #

Should I be typing in "./nupgrade.sh 0"?

Yes. This is different from DOS where you enter a command, and DOS starts looking for files with .com, .exe or .bat extensions. In *nix you execute a file, not a command, so the full filename must be specified.
The filename extension is just as any other part of the filename, and only there for your convenience (.sh is often used to indicate to you that it's a shellscript, but you could equally well call the file nupgrade.myscript, or, indeed, just nupgrade)

bunanson 2007-09-12 22:26

Re: Cloning OS to SD/MMC Card: Simplified instructions
 
Quote:

Originally Posted by Milhouse (Post 66701)
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:rolleyes:

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

Milhouse 2007-09-12 22:58

Re: Cloning OS to SD Card: Simplified instructions
 
1) I would suggest the minimum size partition you need for OS 2006 is 256MB, that's roughly equivalent to the size of the internal (128MB compressed) flash memory. 512MB for OS 2006 should be ample.

2) Yep, no problem

3) Yep - tar up the content of the OS2006 partition on 1GB MMC and then untar it on your 2GB MMC. Once you've mounted the card on your Ubuntu box, cd to the root of the partition and create the tar as follows: "tar cvzf /tmp/os2006.tar.gz /" then swap the MMC cards and restore the clone using "cd <root of mmc partition>; tar xvzf /tmp/os2006.tar.gz". That should work, or something similar... :) If you can mount both cards at the same time you can pipe the output from the first tar command into the second tar and avoid creating a temporary file.

4) Not sure about mmcblk03...

I think someone else asked some of your questions in another thread (probably the OS2007HE thread) - you should check there.

bunanson 2007-09-15 06:31

Re: Cloning OS to SD/MMC Card: Simplified instructions
 
Quote:

Originally Posted by Milhouse (Post 66701)
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

______________________________________
2006OS Flash/MMC 2007He2007.36-2 MMC 2G

Follow Mil's Simplified instructions, now 2007He2007.36-2 is booting of MMC 2G. Thanks Mil! As explained, the steps are easy to follow, ./nupgrade 0-4. I made some very minor change to suit my use, I give .45G for the OS and 1.37 G for media (a 2G reads only as 1.89G before formatting) and I use Fat32 instead of Fat16,

/dev/mmcblk0p1: 1,45000,b
/dev/mmcblk0p2: 45001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

I am not a SW developer, the chance of installing 1.5G app is highly unlikely for me, at this stage,;) Kind of curious what other people's partition like.

I jumped right to step 7 as I already has the prerequisite, but it kicked me out on ./nupgrade.sh 3 > Internal application error, Xterm close. I re-started from step 6, no more error. Very interesting....... Now I booted from MMC and has 237 M space for apps, OMG!!!

bun

Green_Star 2007-09-15 22:38

Re: Cloning OS to SD Card: Simplified instructions
 
I followed these instructions for my 770, everything went fine, but finally i am not able to access my FAT partition. in file manager memory card item was grayed out !! when i checked in control panel it is saying my memory card is corrupted (ofcourse i booted from memory card), can some one tell me how to resolve this problem? thanks.

bunanson 2007-09-16 16:06

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by Green_Star (Post 75720)
I followed these instructions for my 770, everything went fine, but finally i am not able to access my FAT partition. in file manager memory card item was grayed out !! when i checked in control panel it is saying my memory card is corrupted (ofcourse i booted from memory card), can some one tell me how to resolve this problem? thanks.

Last ditch effort, take the card out and leave it alone for 10.5 min (just kidding, leave it awhile is good enough) and gently, gently re-insert it the best way you can, and hope it work. otherwise, re-formating is a consideration.

bun

bunanson 2007-09-16 16:17

Re: Cloning OS to SD Card: Simplified instructions
 
Mil, thank you, thank you, and thank you.

Had some problem with opera, and cannot undo whatever happened to it, it broke and would not work. I wiped my tears dry, and without hesitation, jumped right into step 7 of your instruction, ./nupgrade.sh 0-4, then went helping my wife to prepare breakfast. Dont know how long it take, as if I care, when I came back, it's done and everything is back to normal. That is what I call a regular automated installation.........100% hands free. Thank you again, Mil.

This is day and night when I triedto clone the 2006OS to the MMC It wont download, file was missing, this TAR but not this TAR, my good grief, that is worst than to teach a pig to dance!


bun

Milhouse 2007-09-16 17:06

Re: Cloning OS to SD Card: Simplified instructions
 
My pleasure!

I wrote this script so that when I had a spare 30 minutes I could disengage brain, run the script and walk away safe in the knowledge that when I returned I would have a succesfully cloned OS. Glad it's helping you too! :)

Green_Star 2007-09-16 17:31

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by bunanson (Post 75843)
Last ditch effort, take the card out and leave it alone for 10.5 min (just kidding, leave it awhile is good enough) and gently, gently re-insert it the best way you can, and hope it work. otherwise, re-formating is a consideration.

bun

thanks man.

Actually i am booted into my MMC without any problems, but only thing is i am not able to find the remaining FAT partition. your trick will work if i booted from internal flash, right?

I guess it can be fixed by reformatting the FAT partition, but i donno how to do that?

bunanson 2007-09-16 22:16

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by Green_Star (Post 75872)
thanks man.

Actually i am booted into my MMC without any problems, but only thing is i am not able to find the remaining FAT partition. your trick will work if i booted from internal flash, right??


___________________________________________
Nay, if it works, it works. You turned the 770 off, and take out the card, bla bla bla. There is a possibility that the card was not inserted 'perfectly' but is allowing the previous format/working temporary and thus heated up the media and causing the problems. As I said, it is a last ditch effort. For hard drive, I even put it in refrigertor and will sometime allow me to recover some data before it dies again after 15min or so working.

[QUOTE=____________________________________________
I guess it can be fixed by reformatting the FAT partition, but i donno how to do that?[/QUOTE]

This, boot from MM, step 4 is partition, will kill the other partition too, not recommend. the formatting is next step, http://examplified.net/guide/Nokia_7...ting_from_MMC/. Tools>file manager>memory card also has a formatting command, not sure how it works, I think step 4 above should take care of you, post if questions. good luck.

bun

Green_Star 2007-09-16 22:43

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by bunanson (Post 75907)
___________________________________________
Nay, if it works, it works. You turned the 770 off, and take out the card, bla bla bla. There is a possibility that the card was not inserted 'perfectly' but is allowing the previous format/working temporary and thus heated up the media and causing the problems. As I said, it is a last ditch effort. For hard drive, I even put it in refrigertor and will sometime allow me to recover some data before it dies again after 15min or so working.



This, boot from MM, step 4 is partition, will kill the other partition too, not recommend. the formatting is next step, http://examplified.net/guide/Nokia_7...ting_from_MMC/. Tools>file manager>memory card also has a formatting command, not sure how it works, I think step 4 above should take care of you, post if questions. good luck.

bun

thank you so much bun,

mkdosfs /dev/mmcblk0p1
shutdown -r now

above command solved my problem, my remaining FAT partition is back, before your suggestion i was in the impression that the script by milhouse will take care of that too,,,!!

I have another question. this device gives very little time to hold menu button to get boot menu, and most of the times i am little late and it defaults boots into internal flash.

So I want to increse that time to press menu button and even if i didnt press button it should default boot into my MMC, how can i do that?

jarcat38 2007-09-17 01:22

Re: Cloning OS to SD Card: Simplified instructions
 
Im getting an error installing e2fsprogs

Package e2fsprogs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package e2fsprogs has no installation candidate

Any ideas?

Also wanted to say thank you for taking the time to write this up. Was exactly what I was looking for.

mraya 2007-09-17 02:13

Re: Cloning OS to SD Card: Simplified instructions
 
I'm almost done with this process, for not knowing anything about Linux it was easy enough, just a little problems due to errors of my own. Milhouse, thanks for posting this!

Edit: How do i know if i'm using the memory card or the flash memory?

Milhouse 2007-09-17 03:33

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by mraya (Post 75933)
Edit: How do i know if i'm using the memory card or the flash memory?

Probably the easiest way is to run the "mount" command in xterm, the check where your root ("/") filesystem is mounted. If you see a line similar to the following

Code:

/dev/mtdblock4 on / type jffs2 (rw,rpsize=1024,rpuid=0,rpuid=30000)
then you are running from internal flash. If it shows ext2 instead of "jffs2" and "/media/mmcX" (where X will vary) instead of "/dev/mtdblock4", then you are running from MMC/SD card.

Milhouse 2007-09-17 03:35

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by jarcat38 (Post 75928)
Im getting an error installing e2fsprogs

Package e2fsprogs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package e2fsprogs has no installation candidate

Any ideas?

Also wanted to say thank you for taking the time to write this up. Was exactly what I was looking for.

Need more information... what repositories have you got setup, what device are you using (770 or N800)... some repositories are a bit flaky, or you may be using out of date repositories (try changing mistral to gregale etc.)

Milhouse 2007-09-17 03:36

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by Green_Star (Post 75909)
I have another question. this device gives very little time to hold menu button to get boot menu, and most of the times i am little late and it defaults boots into internal flash.

So I want to increse that time to press menu button and even if i didnt press button it should default boot into my MMC, how can i do that?

Someone was asking something similar within the last two weeks - they wanted to reduce the default timeout to something less than 30 seconds... try searching the forum for bootmenu related threads with replies from fanoush.

jarcat38 2007-09-17 23:45

Re: Cloning OS to SD Card: Simplified instructions
 
@Milhouse

For some reason i didn't even have the basic repo installed:
Web address: http://repository.maemo.org/
Distribution: gregale
Components: free non-free

so once that was in e2fsprogs installed fine...thanks for the quick responses though..great thread topic

Milhouse 2007-09-18 00:38

Re: Cloning OS to SD Card: Simplified instructions
 
Thanks for that - I've added the repository details to the first post in case it catches anyone else out.

ascherjim 2007-09-18 01:07

Re: Cloning OS to SD Card: Simplified instructions
 
Milhouse: I just want to join the chorus of appreciation for what you've done. I've been booting from my mmc for years now, both on the 770 and the N800. I shudder whenever a new firmware comes out, not only because of the hassle involved in flashing it to the main system, and reinstalling all my applications -- but then, even more so, of having to get it cloned onto the mmc. I've had to do it too many times already, and whereas Fanoush and his "comperes''" established instructions have proved sufficiently clear, it was not until I encountered yours that the whole matter became, if not an actual pleasure, at least an almost no-brainer. Congratulations for your initiative and your results (in efforts and accomplishments more than in just this one instance).

bunanson 2007-09-20 02:35

Re: Cloning OS to SD Card: Simplified instructions
 
[Edit: How do i know if i'm using the memory card or the flash memory?[/QUOTE]


How about a nobrainer checking:menu>control panel>memory>details>storage mem either in use or avail is >64 MB, you are booting from MMC, in general.


bun

markku 2007-09-23 16:02

Re: Cloning OS to SD Card: Simplified instructions
 
Xterm was suddenly closed in the middle of phase nupgrade.sh 3 so can i just do the command again or do i have to do it in this specific order(o, 1, 2, 3, and 4)? There came message "internal error" and xterm was closed. Is this harmful for the system?

markku 2007-09-23 18:47

Re: Cloning OS to SD Card: Simplified instructions
 
Okei, I solved that. I just proceed from phase 3 to 4 and all went well. I haven't noticed that system is faster but there's now more space to install applications. If I upgrade to Sardine will those installed applications be there also and will they work on Sardine? Does Sardine mean I have to install all once again? Now I'm thinking upgrading to Sardine, before this I didn't have enough courage to even think about upgrading.

Thank you Millhouse for these instructions! Great job.

Milhouse 2007-09-24 00:30

Re: Cloning OS to SD Card: Simplified instructions
 
Unfortunately the upgrade to Sardine has been failing for the last few weeks with dependency issues. You can try it, but I wouldn't expect it to work (although the issues will be fixed eventually) and your applications will remain intact (but they might not work due to API changes in the latest Sardine/Chinook OS). They're not kidding when they state that "Sardine is unstable and will often be badly broken and smelly". :)

markku 2007-09-24 05:12

Re: Cloning OS to SD Card: Simplified instructions
 
Thanks Milhouse, I'll try it later when I'm more used to this cloning process. I've read about Sardine and I'm interested about it. Like you said, maybe it's better to leave it for those who knows what they are doing, I'm still quite newbie but learning all the time!

rs-px 2007-10-11 09:29

Re: Cloning OS to SD Card: Simplified instructions
 
This doesn't work on my N770 :( The OS is 3.2006.49-2. I'm trying to clone onto a new 1GB Nokia card.

All the steps complete successfully. The problem is that the boot menu doesn't appear after reboot, and mount shows that the system is still booting from jffs2.

The MMC card then shows up as corrupted, but can be formatted after this and works fine.

When partitioning the card, I follow the instructions here:

http://examplified.net/guide/Nokia_7...ting_from_MMC/

Step 4. I split the card between VFAT and Linux.

Any ideas?

EDIT: Figured it out. I didn't realise that you had to manually install the dual-boot menu software. Done that and can now boot from mmc.

bunanson 2007-10-11 11:56

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by rs-px (Post 81316)
This doesn't work on my N770 :( The OS is 3.2006.49-2. I'm trying to clone onto a new 1GB Nokia card.

All the steps complete successfully. The problem is that the boot menu doesn't appear after reboot, and mount shows that the system is still booting from jffs2.

The MMC card then shows up as corrupted, but can be formatted after this and works fine.

When partitioning the card, I follow the instructions here:

http://examplified.net/guide/Nokia_7...ting_from_MMC/

Step 4. I split the card between VFAT and Linux.

Any ideas?

EDIT: Figured it out. I didn't realise that you had to manually install the dual-boot menu software. Done that and can now boot from mmc.

Glad to hear it works.:) What is your partition size on your 1G MMC?


bun


All times are GMT. The time now is 13:53.

vBulletin® Version 3.8.8