maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting (https://talk.maemo.org/showthread.php?t=18751)

Laughing Man 2008-04-17 01:15

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Interesting, so you wouldn't even have to do the partition setup and all, just clone the image from the desktop/laptop to the card from Windows?

Anyway, I gave up on the 4 GB card. Use the Panasonic program to bring it back to 3.75 GBs and now I'm having it low level format my 16 GB and going try with that.

bunanson 2008-04-17 01:20

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by GeraldKo (Post 170861)
In Windows, you can do it with Acronis True Image ver. 11.
...

It has a 30 day FREE trial. Google/dl/install and try it free for 30 days.
No. I have nothing to do with Acronis.


bun

Laughing Man 2008-04-17 01:22

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
So I'm guessing the only reason why people can't just put up a cloned image onto the internet for people to image onto their card is legal issues regarding maemo?

Edit.. um.. quick question. Does it matter if the SD card is in locked or unlocked position (white tab is up for unlocked and down for locked)?

Cause I just took a look at my 4 GB SDHC card and noticed the tab was down..checked all the other SD and SDHC cards I own and their tabs are up..

...

mooler 2008-04-17 03:08

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
I believe when it is in the locked position it is read-only therefore yes it does matter. I remember way back when we still used 3.5" diskettes, the tab made it read only. However, SD cards may differ in that they may allow you to write to them but not delete anything off of them. I cant remember.

Laughing Man 2008-04-17 03:10

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Hmm, I must've switched it by accident somehow from when I did it the first time to when I've been trying and failing now.

Guess I'll give the 4 GB card flash one more try then.

Laughing Man 2008-04-17 03:23

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Ok, I'm an idiot. That was the problem. Maybe it should be added to the guide? (just for things to double check when it isn't working)

Dear god, I can't believe I didn't think of that sooner. But I'm glad to say I AM NOW A PROUD OWNER OF A DUAL BOOT SYSTEM. :D

bunanson 2008-04-17 16:56

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by Laughing Man (Post 170900)
Ok, I'm an idiot. That was the problem. Maybe it should be added to the guide? (just for things to double check when it isn't working)

Dear god, I can't believe I didn't think of that sooner. But I'm glad to say I AM NOW A PROUD OWNER OF A DUAL BOOT SYSTEM. :D

CONGRATULATION, CONGRATULATION, CONGRATULATION. And BTW, I really really think the credit goes to me, I think my offer to LLF and clone the SD somehow scared the evil away and made it happened. I really really think I deserved the credit :D


bun

GeraldKo 2008-04-17 17:12

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by bunanson (Post 171114)
And BTW, I really really think the credit goes to me, I think my offer to LLF and clone the SD somehow scared the evil away and made it happened. I really really think I deserved the credit :D
bun

All true. And, nonetheless, Laughing Man (and binjinx), you really ought to leave a thank-you on Post #1 if the guide worked for you. ;)

Laughing Man 2008-04-17 18:21

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Ah, I didn't do that already? Haha I'll go do it now.

whouweling 2008-04-17 21:29

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
I'm booting from SD on my n800 under OS2008 for months now, and wanted to share some problems I've experienced.

Problems range from:

- Browser giving "Could not open storage location" messages
- Connection settings lost, and then magically restored after a few reboots
- Random hangs and crashes
- Bookmarks hang for a few seconds before loading a page
- Metadata crawler plainly refuses to index files
- etc, etc, in other words: strange behaviour :-)

Every time I observed these kind of problems my internal SD card turned out to be seriously corrupted. (After running fsck from my linux desktop on the card.)

This could of course be just a problem with my specific card, a sandisk ultra II 2gb, but maybe some others also observed this and didn't realize it could be due to booting from SD / filesystem corruption.

(These sort of problems can be slightly frustrating, I can tell :-))

Anyone else noticed this?

GeraldKo 2008-04-17 21:55

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Thanks for the list of corruption problems. Schmots points this out in his blog guide (see Post #2 of this thread). I may have had a corruption problem on a Transcend card but I didn't know about fsck then and ended up doing a clone from scratch. My problems were

-MicroB browser wouldn't load
-Apps wouldn't install

Now I run fsck occasionally as a prophylactic. I don't know if this works. (Though I haven't gotten pregnant yet.) Out of maybe 4 runs, once it reported that it fixed an error. (I've run it with Schmots's variables that make it fix problems automatically, which maybe forces it to report less, too, I don't know.)

gemniii42 2008-04-17 22:31

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by GeraldKo (Post 170861)
In Windows, you can do it with Acronis True Image ver. 11.

I don't know about Linux one way or the other.

After rereading the instructions it looks like the only place I would need to hook up via USB is if I want to reflash my system. If I just wanted to clone a copy of what I have working on my N810 couldn't I skip step 3, and in 4d copy the files from pc to SD thence to Documents on the Flash Drive.
And then all else just goes as written.

Should this work?

bunanson 2008-04-18 00:04

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by whouweling (Post 171249)
I'm booting from SD on my n800 under OS2008 for months now, and wanted to share some problems I've experienced.

Problems range from:

...
Every time I observed these kind of problems my internal SD card turned out to be seriously corrupted. (After running fsck from my linux desktop on the card.)
...
Anyone else noticed this?

Video center runs an order of magnitude better on flash boot. True for both N800, N810. Video center runs the same on flash boot or MMC boot on 770.

bun

GeraldKo 2008-04-18 01:10

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by gemniii42 (Post 171279)
After rereading the instructions it looks like the only place I would need to hook up via USB is if I want to reflash my system. If I just wanted to clone a copy of what I have working on my N810 couldn't I skip step 3, and in 4d copy the files from pc to SD thence to Documents on the Flash Drive.
And then all else just goes as written.

Should this work?

Actually, you won't need USB at all. You can just use your NIT's built-in browser to download the zipped file from Rapidshare. Just unzip on the Tablet and move it to the same place as I say in the directions.

Laughing Man 2008-04-19 03:26

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Do you need to be booted into flash to clone using Acronis True Image?

I wound up redoing it since I was having trouble with CPU usage when my external 16 GB SDHC was in. So I divided up my 16 GB and used it for the internal. Though now it reports that I can only extend my virtual memory up to 96 MBs.. which is kinda odd (I have about 3.5 GBs for the device memory and the rest 11+ GBs is now internal memory).

GeraldKo 2008-04-19 04:09

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by Laughing Man (Post 171861)
Do you need to be booted into flash to clone using Acronis True Image?

I wound up redoing it since I was having trouble with CPU usage when my external 16 GB SDHC was in. So I divided up my 16 GB and used it for the internal. Though now it reports that I can only extend my virtual memory up to 96 MBs.. which is kinda odd (I have about 3.5 GBs for the device memory and the rest 11+ GBs is now internal memory).

I copy or back up the clone with Acronis with two USB ports; in one is the SD card with the OS on it, and in the other is either another SD card or a flash drive (which can be much smaller than the card you're copying, depending how much the card is filled). No NIT there at all.

The only-96mb-for-vm I don't get.

Laughing Man 2008-04-19 04:56

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Yeah, I don't understand it myself. But I can't really see it affecting much (heck I can play Battle of Wesnoth even with 96 MBs extended) so I'm fine with it.

Oddly when I'm booted into flash, it still says I can only extend to 96 MBs. *shrugs* must be something with the FAT partition. It was working at 128 MBs earlier. Maybe I'll do a chdisk in Windows with it sometime.

I'll have to figure out how to back it up then using the NIT then. Since I don't have an SDHC reader (I've been using the Panasonic format utility with the SD HC cards in the NIT).

GeraldKo 2008-04-19 05:40

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by Laughing Man (Post 171887)
I'll have to figure out how to back it up then using the NIT then. Since I don't have an SDHC reader (I've been using the Panasonic format utility with the SD HC cards in the NIT).

Then maybe you can do the Acronis with the card in the NIT, too. But Acronis is going to make you have something to clone the partition onto. I couldn't get it to make a partition image onto the hard drive. (It's possible that you can get it to do that, too, though; if you look at Acronis, you'll see something about making a special Acronis partition, and maybe if you do that it will let you.)

Laughing Man 2008-04-19 05:50

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Yeah, I just tried it and I can use it to do it through the NIT. Just gotta find a partition to clone it too. >.<

Bad thing about having a 16 GB SDHC..you need a 16 GB sized partition for it. >.<

GeraldKo 2008-04-19 05:54

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by Laughing Man (Post 171899)
Bad thing about having a 16 GB SDHC..you need a 16 GB sized partition for it. >.<

If you mean a 16GB card or flash drive to copy the partition to or to back it up to, no you don't. As I said earlier, Acronis will make a smaller copy or backup, how small depending on how much data, etc. is on the original and how much compression is applied.

mjjiang 2008-04-19 07:29

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Excellent post, very convenient. But I met the same problem as "Unable to connect via USB. memory card in use: Internal memory card". I don't know how to modify the .sh file. I nearlly know nothing about linux.
GeraldKo, could you tell me the detailed procedure to modify the osso-mmc-umount.sh? Thanks.

GeraldKo 2008-04-19 07:40

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by mjjiang (Post 171918)
Excellent post, very convenient. But I met the same problem as "Unable to connect via USB. memory card in use: Internal memory card". I don't know how to modify the .sh file. I nearlly know nothing about linux.
GeraldKo, could you tell me the detailed procedure to modify the osso-mmc-umount.sh? Thanks.

Well, mjjiang, I know almost no Linux either! But I don't understand your question. If this relates to the guide, at what step does your problem first arise? What message do you get at that point?

bunanson 2008-04-19 10:41

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by Laughing Man (Post 171861)
Do you need to be booted into flash to clone using Acronis True Image?

I wound up redoing it since I was having trouble with CPU usage when my external 16 GB SDHC was in. So I divided up my 16 GB and used it for the internal. Though now it reports that I can only extend my virtual memory up to 96 MBs.. which is kinda odd (I have about 3.5 GBs for the device memory and the rest 11+ GBs is now internal memory).

Control Panel>Memory is known to have bug and not reliable, http://www.internettablettalk.com/fo...ad.php?t=11824. Go maemo.org/gronmayer.com search for Diskusage of your OS, dl and install it. That would give you an idea where/what ALL your disk partitions are.

bun

mjjiang 2008-04-19 22:26

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by GeraldKo (Post 171919)
Well, mjjiang, I know almost no Linux either! But I don't understand your question. If this relates to the guide, at what step does your problem first arise? What message do you get at that point?

What I mean is to modify the .sh file as below:
from:


Code:
if [ $? = 0 ]; then
umount $MP 2> /dev/null
fi
RC=$?
else
# it is not mounted
RC=0
fi
to:

Code:
if [ $? = 0 ]; then
if [ "$MP" != "/" ] ; then umount $MP 2> /dev/null ; fi
RC=$?
else
# it is not mounted
RC=0
fi


Can I move the file to my XP desktop and modify it? Or there is a more convenient way? Thanks.

GeraldKo 2008-04-19 22:32

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
This is over my head. Maybe someone else will be of more help. (Someone who knows Linux!) And maybe this is beneath your level, but: You can also edit files in emelFM2. Select the file and click the icon of a page with a pencil on it.

Laughing Man 2008-04-20 04:57

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by bunanson (Post 171939)
Control Panel>Memory is known to have bug and not reliable, http://www.internettablettalk.com/fo...ad.php?t=11824. Go maemo.org/gronmayer.com search for Diskusage of your OS, dl and install it. That would give you an idea where/what ALL your disk partitions are.

bun

I have diskusage but there's nothing that says swap. And interestingly, after installing KDE (I still have 1 GB free left on my device memory), 8 GBs free on my internal memory card, and 2 GBs free on my external. My virtual memory has dropped from 96 MB to 0. And it tells me I do not have enough space to extend virtual memory.

Curious as to see if this is actually the case I did the only thing I knew how. Got into root and did "free" (linux command for memory).

Swap reports 0 0 0. O.O

Laughing Man 2008-04-20 05:04

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by mjjiang (Post 172098)
What I mean is to modify the .sh file as below:
from:


Code:
if [ $? = 0 ]; then
umount $MP 2> /dev/null
fi
RC=$?
else
# it is not mounted
RC=0
fi
to:

Code:
if [ $? = 0 ]; then
if [ "$MP" != "/" ] ; then umount $MP 2> /dev/null ; fi
RC=$?
else
# it is not mounted
RC=0
fi


Can I move the file to my XP desktop and modify it? Or there is a more convenient way? Thanks.

I suppose you could, but that would be a hassle. (copying it over, then editting it then copying it back with the right permissions and all).

You could just edit the file in the terminal as well. With nano or vi. Likely "sudo vi nameoffile.sh" then just edit it and save.

bunanson 2008-04-20 05:31

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by Laughing Man (Post 172185)
I have diskusage but there's nothing that says swap. ...

When KDE is running, diskusage shows a new swap drive.


bun

Laughing Man 2008-04-20 05:45

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
I'm aware that KDE does create its own swap but does Hildon/Maemo use it? Anyway I had restarted my tablet at this point so KDE hadn't been started up again and it still reported no swap partition (as well as that 0, 0, 0 thing from free).

I'm wondering if there is a swap or not though (maybe it's just not being reported), considering some apps I run pretty much need swap or they would crash according to posters (e.g. wesnoth) and they seem to run just fine still.

t24 2008-04-23 08:09

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Thanks for the tutorial!

I wanted to clone my personalized OS on my N810 (A) on my friend's N810 (B).

I followed the procedure closely for the two NITs... Starting with the tweaked OS on A and a fresh install on B..


The only minor problem was the links for the external memory card are different on the N810.
umount /media/mmc2 [someone with an N810 … is this mmc2? If not, please PM me and I'll make a change here]
sfdisk /dev/mmcblk0 -uM [note: that's a zero, not a capital letter O]
Actually, on the N810, the external card is /media/mmc1 .. and the link is /dev/mmcblk1

After everything was done, I only had to take the card from A and insert it in B, and press 'home' at reboot to select the external card.

I didn't notice any glitch, yet.. though the exact same configuration for two different hardware may have few consequences.

--

Now, the NITs boot by default on the internal memory (previous OS). How can I change?

GeraldKo 2008-04-23 20:25

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by t24 (Post 173522)
Now, the NITs boot by default on the internal memory (previous OS). How can I change?

Try this (the part after "EDIT") and see if it changes the default. Please report back.

Thanks for your info on my question on the N810 card name; I'll make that change soon.

braveally 2008-04-24 04:34

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
When I try to unmount the memory card for partition, it keeps telling me that the device is busy

GeraldKo 2008-04-24 04:49

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Well, if you're using an N800, try putting the card in the outside slot and using mmc1 in the directions in place of mmc2. If it's already in the outside slot in either the N800 or N810 try just opening the little door before you begin. (I've never tried this but I recall fanoush saying something like that.) Let us know if this does anything.

braveally 2008-04-24 05:54

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Tried it with the door open (plus a restart) and it still gives me the same message. I'm using an N810.

When I formatted the memory card, i used the NIT's card reader as the drive with that panasonic software. was that bad? everything seems fine. one difference i noticed since i reflashed it was it no longer alerts me when i open the memory card door. but it still dissappears from the file manager. could be nothing. what could be accessing the mem card?

superleon 2008-04-25 12:13

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Hi,I have a problem while use this instruction on my n800.
my sd card is kingston 1G and separated to 2 partition,one is 300mb the other is 500mb ,followed this code:
#sfdisk /dev/mmcblk0 -uM

/dev/mmcblk0p1: 0,300,06
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

I installed the software well and followed the other steps .When I started to clone with command:./nupgrade.sh wipe ,copied the files , but suddenly the procedure stopped and showed the following code:
./usr/lib/microb-engine/chrom/en-GB/locale/en-GB/global.... cannot open: No such file or directory.

Is it my sd card problem? I have succeded once using the transcend 8G class6 sdhc card, but I got another problem ,my 8G sdhc card lost 2g space which I can't find back by sfdisk or other software.

svs57 2008-04-25 12:28

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
I successfuly clone OS to SD.
After few days I boot from NAND and try to mount SD.
mount failed.
Nothing in dmesg.
I have second partion on SD as ext2 and empty first partition.
OS normal boot from SD.
I can't understand why mount failed when I boot form NAND...
fsck work on it.
Internal flash mount o'k

GeraldKo 2008-04-25 19:31

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by svs57 (Post 174533)
I successfuly clone OS to SD.
After few days I boot from NAND and try to mount SD.
mount failed.
Nothing in dmesg.
I have second partion on SD as ext2 and empty first partition.
OS normal boot from SD.
I can't understand why mount failed when I boot form NAND...
fsck work on it.
Internal flash mount o'k

Not sure I follow, but do you have a FAT-formatted partition on the first partition on SD? You need to.

GeraldKo 2008-04-25 19:35

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by superleon (Post 174529)
I have succeded once using the transcend 8G class6 sdhc card, but I got another problem ,my 8G sdhc card lost 2g space which I can't find back by sfdisk or other software.

I have that card too and no problems. If your second line when defining partitions is:

Code:

/dev/mmcblk0p2: ,,,
it should have taken up all the space on the card. Those commas mean: take up the rest of the card with partition 2. Maybe if you redo it, you should use the Panasonic formatter first.

GeraldKo 2008-04-25 19:48

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by superleon (Post 174529)
Hi,I have a problem while use this instruction on my n800.
my sd card is kingston 1G and separated to 2 partition,one is 300mb the other is 500mb ,followed this code:
#sfdisk /dev/mmcblk0 -uM

/dev/mmcblk0p1: 0,300,06
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

I installed the software well and followed the other steps .When I started to clone with command:./nupgrade.sh wipe ,copied the files , but suddenly the procedure stopped and showed the following code:
./usr/lib/microb-engine/chrom/en-GB/locale/en-GB/global.... cannot open: No such file or directory.

Is it my sd card problem?

Well, the partition sizes are right, and the loss of 200MB is not surprising. For the first partition, I use 0,300,0C -- not 06 -- which makes me think you used a different set of instructions. But I don't think the 06 caused your problem. I have no idea what did, but it doesn't sound to me like it's your card. I'd just try again.

GeraldKo 2008-04-25 19:50

Re: HOW TO: Simplest and Complete Cloning of OS to MMC; Dual-Booting
 
Quote:

Originally Posted by braveally (Post 173954)
Tried it with the door open (plus a restart) and it still gives me the same message. I'm using an N810.

When I formatted the memory card, i used the NIT's card reader as the drive with that panasonic software. was that bad? everything seems fine. one difference i noticed since i reflashed it was it no longer alerts me when i open the memory card door. but it still dissappears from the file manager. could be nothing. what could be accessing the mem card?

I don't know answer to either question. Sorry.


All times are GMT. The time now is 00:15.

vBulletin® Version 3.8.8