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)
-   -   Clone OS to SD Deb!! Boot from SD made EASY!! (https://talk.maemo.org/showthread.php?t=19639)

penguinbait 2008-10-07 21:48

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Laughing Man (Post 231402)
no problem, figured i'd just ask first in case.

Edit: I don't have to format it do I? Just do the mount and tar part?

you can do a mkfs to clean it off, or you should probably at least delete all the files.

Laughing Man 2008-10-08 19:18

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Do I also need to run the insod commands? Or would just doing mkfs and the clone, tar process and using your bootmenu.deb be sufficient?

penguinbait 2008-10-08 20:12

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Laughing Man (Post 231785)
Do I also need to run the insod commands? Or would just doing mkfs and the clone, tar process and using your bootmenu.deb be sufficient?

Well you need the mbcache.ko and ext2.ko in order to mount the filesystems

Laughing Man 2008-10-09 03:22

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Hmm.. haha when I recloned it, the clone now has the Linus saying "I pronounce, etc.. etc..". Though I wonder if there's any problem if the boot from SD does an fsck on startup each time... (I rarely reboot anyway)

penguinbait 2008-10-09 15:36

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Laughing Man (Post 231958)
Hmm.. haha when I recloned it, the clone now has the Linus saying "I pronounce, etc.. etc..". Though I wonder if there's any problem if the boot from SD does an fsck on startup each time... (I rarely reboot anyway)


No problems, the fsck will run, if it is clean, it wont fix anything, it will just exit clean. It only runs when you boot to flash.

I added this because everytime I crashed my SD, then I had to boot to flash and run fsck manually. Now I just reboot to flash after any crash and wait to hear from Linus, and I am good.

And this platform was sorely missing that wav file. :D

Laughing Man 2008-10-09 17:00

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Ack, so I'm reinstalling all the apps I had on there (the ones missed by the application manager on a restore). And I notice that conky says there's no swap. That it's 0/0. But I had swap last time (using your scripts to setup the partition sizes). What happened to it?

I do have RAM though (123 MBs of it).

I really hope I don't have to redo everything over again. >.<

Edit: Yup it's not being detected by the system, I tried programs that need swap to run and they all just crash to desktop due to lack of swap.

penguinbait 2008-10-09 17:12

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Laughing Man (Post 232133)
Ack, so I'm reinstalling all the apps I had on there (the ones missed by the application manager on a restore). And I notice that conky says there's no swap. That it's 0/0. But I had swap last time (using your scripts to setup the partition sizes). What happened to it?

I do have RAM though (123 MBs of it).

I really hope I don't have to redo everything over again. >.<

Edit: Yup it's not being detected by the system, I tried programs that need swap to run and they all just crash to desktop due to lack of swap.

My scripts when you use them to clone, create the swap partition. Which you should already have, they also turn swap on during boot.

You need to call the swapon from a startup script

Just add

swapon /dev/mmcblk0p3 (or 1p3 depending on which card your using)

you can also just run from the command line

Type free in xterm to see swap info

free

Laughing Man 2008-10-09 17:18

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Ok, I did it from root (didn't work as user) and now it detects the swap. :)

So I have to add it to a startup script (init.d?) for it to detect on future boot ups?

penguinbait 2008-10-09 17:24

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Laughing Man (Post 232148)
Ok, I did it from root (didn't work as user) and now it detects the swap. :)

So I have to add it to a startup script (init.d?) for it to detect on future boot ups?

Yes just put that line in one of your startup files

burnte 2008-10-10 10:32

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
I'm hoping that with 53 pages, I'm not cluttering things up here. :)

So, before, things ran fine. But with the latest version of the bootmenu stuff after the recent SSU, at the boot menu I always have the removable card listed as N/A, like it's not there and I can't boot from it. "Unable to boot from immc" so it defaults to the internal flash. Ideas of what to troubleshoot?

penguinbait 2008-10-10 20:45

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by burnte (Post 232365)
I'm hoping that with 53 pages, I'm not cluttering things up here. :)

So, before, things ran fine. But with the latest version of the bootmenu stuff after the recent SSU, at the boot menu I always have the removable card listed as N/A, like it's not there and I can't boot from it. "Unable to boot from immc" so it defaults to the internal flash. Ideas of what to troubleshoot?

Odd!

Well, have you tried installing it again? Sometimes it appears to work, but you need to run it again.

If you have tried installing it a few times and it still does not work, I am not sure.

However, if the card is listed as N/A, its not detecting the card. Make sure it is seated properly

burnte 2008-10-11 03:15

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
I've run it probably a dozen times. It doubt it's seated poorly because the unit can write to it just fine in the OS, but at boot time it doesn't detect it. Could it be the stall script is improperly configuring the device name so taht at boot it's looking for the wrong device? This is an N810, and I'm trying to boot from the external, not internal...

penguinbait 2008-10-11 04:31

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by burnte (Post 232618)
I've run it probably a dozen times. It doubt it's seated poorly because the unit can write to it just fine in the OS, but at boot time it doesn't detect it. Could it be the stall script is improperly configuring the device name so taht at boot it's looking for the wrong device? This is an N810, and I'm trying to boot from the external, not internal...

you are installing the install-tools-N810e.deb?

Your virtual memory is turned off right?

burnte 2008-10-12 03:10

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
No, I was using the bootmenu one, but I removed that, installed that one, and turned off VM. I forgot I had vm on. Twice, and now it kind works. The failure I have it is starts to boot from the card, then reboots. :)

So, now I just have to debug the partition on the SD card, that's improvement.

penguinbait 2008-10-12 15:46

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by burnte (Post 232860)
No, I was using the bootmenu one, but I removed that, installed that one, and turned off VM. I forgot I had vm on. Twice, and now it kind works. The failure I have it is starts to boot from the card, then reboots. :)

So, now I just have to debug the partition on the SD card, that's improvement.

Yes, bootmenu-installer ONLY installs bootmenu. install-tools clones to SD.

If it finishe and it wont boot, it sounds like something went wrong, I would try to reinstall again.

It normally takes two installs to work at all. The first one repartitions the SD to the new layout, then it needs to be reinstalled to redo it now that its booted with the new partition layout.

If you are re-installing a card that has already been partitioned by my deb, it should work the first time. Its only when the partition layouts change you need to install the second time.

I have thought about making two separate debs, but this works and I am lazy :D

Wzrd 2008-10-12 19:21

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
I just wanted to say thank you to Penguinbait. I was having trouble before with my regular OS after cloning. So I reformatted my flash, reinstalled both SSU updates, installed my programs and then I used your deb to clone to SD and it worked perfectly! (after having to run it the 2 times).

Thanks!

Eladon 2008-10-20 04:48

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Ok, I have an N810. I formatted the internal card, reflashed the device so it was totally clean, installed this app (twice) and it said successfully installed.

I have two questions. First of all, how can I get rid of the "Hello" audio message on startup. Sorry if this is already been asked, I searched the 54 page thread but didn't get any hits.

Second question, the app is successfully installed, but how can I tell if it actually did any good? The reason I say this, is because I went to install the apps I wanted, and ran out of space on my root fs! What's up with that? Have I misunderstood the purpose of this application? Isn't the point of it to let you have more room to install programs? Looks like the root filesystem still only has 256 MB!

Eladon 2008-10-20 05:05

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
One more question. Does anyone know where I can download the bin for DIABLO_4.2008.36-5 ? I'm just going to start again from scratch, sucks to have to redownload it again through the update wizard.

> Ended up picking it out of my temporary Internet files once the update wizard was done downloading... :-/

Eladon 2008-10-20 07:22

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
OK, I realize now that I simply wasn't getting the bootmenu. After starting again from scratch, even though I did exactly the same thing, strangely this time I only had to install the install-tools once, and now I'm getting the bootmenu. Once you have the bootmenu, it's fairly straightforward what you're doing, but it might not hurt to put in the instructions a hint as to what you are looking for after you have installed, so others who aren't already familiar with bootmenu (like myself) don't spend a bunch of time (like I did) assuming the install was successful, when it wasn't.

So now everything seems good. The only problem is when I boot to the internal card, and do an "apt-get update" I get:

Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up install-tools (1.0.0-5) ...
tar: short read
dpkg: error processing install-tools (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 install-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

The issue appears cosmetic, otherwise it seems like the clone worked OK. Awaiting further advice...

penguinbait 2008-10-20 11:00

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Once its working you can uninstall install-tools to get rid of the apt-get errors. You can un-install it from both flash and sd partitions

Schism 2008-10-20 14:25

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
1 Attachment(s)
Hi, I'm still having problems using install-tools-N810e.deb to clone to an external SD of 2 GB.

I have been reading through the 54 pages of this thread and I have done all things previously mentioned (such as installing the .deb many times, rebooting, checking that virtual memory is off, re-inserting the SD card, formatting the SD card again, etc, etc) but still no luck.

The bootloader is installed but it ALWAYS boots to flash.

Any tips?

Thanks!

penguinbait 2008-10-20 14:43

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Schism (Post 235037)
Hi, I'm still having problems using install-tools-N810e.deb to clone to an external SD of 2 GB.

I have been reading through the 54 pages of this thread and I have done all things previously mentioned (such as installing the .deb many times, rebooting, checking that virtual memory is off, re-inserting the SD card, formatting the SD card again, etc, etc) but still no luck.

The bootloader is installed but it ALWAYS boots to flash.

Any tips?

Thanks!


TROUBLESHOOTING

MENU WILL NOT APPEAR
boot to flash and open xterm and become root and run the following command:
chroot /mnt/initfs cal-tool –set-root-device ask:flash
Instead of flash, you can also set the default boot image to be mmcX

mmc2 is partition 2 on internal
mmc3 is partition 3 on internal
mmc12 is partition 2 on external
mmc13 is partition 3 on external

Your menu will not display until you set it to ask:somthing then reboot.

Schism 2008-10-20 14:52

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Thanks penguinbait, it works!. I didn't try it before because I thought the menu was working. I wasn't expecting this "list" of possible booting options! :D

hordeman 2008-10-20 18:09

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Interestingly, the system to me seems much more stable. Ever since running off of SD, my stowaway keyboard no longer doooes tthis anyymore. :) (Hopefully, I'm not speaking too soon.) ;)

Schism 2008-10-20 20:32

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Now I have a different problem :( This time, I tried to clone the OS to a 4 GB SD card. The installer ran smoothly but I get "Booting from mmc12 failed" and sometimes it boots but freezes on the Nokia splash screen.

Any tips?

Thanks!

penguinbait 2008-10-20 20:41

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Schism (Post 235153)
Now I have a different problem :( This time, I tried to clone the OS to a 4 GB SD card. The installer ran smoothly but I get "Booting from mmc12 failed" and sometimes it boots but freezes on the Nokia splash screen.

Any tips?

Thanks!

Most likely just reinstall it, if you installed it a few times and this persists, I am not sure. usually if its starting to load and not completing, its was not a complete clone or something went wrong during the process.

Schism 2008-10-20 21:02

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by penguinbait (Post 235156)
Most likely just reinstall it, if you installed it a few times and this persists, I am not sure. usually if its starting to load and not completing, its was not a complete clone or something went wrong during the process.

Yeah i've tried reinstalling the .deb 8 times so far and still the same. I have also tried reformatting the SD card. The log doesn't show anything weird. When it freezes I have to take the battery out because not even the power button works...

penguinbait 2008-10-20 22:27

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Schism (Post 235162)
Yeah i've tried reinstalling the .deb 8 times so far and still the same. I have also tried reformatting the SD card. The log doesn't show anything weird. When it freezes I have to take the battery out because not even the power button works...

Not sure what the problem is? Installs all finish cleanly?

Make sure your virtual memory is off.
Make sure no usb cables plugged in.
Make sure your booting in the same device you cloned it on?
You are installing from flash, not sd booted

Does your old (2gb) card still work? If you reclone the old card will it boot?

sondjata 2008-10-20 22:48

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Hey, installed KDE over the weekend. Props. PROPS. it's quick!

Two questions:

1) Does this use power management like the built in OS? Should I see the same or similar battery life as if I was only booted into Maemo?

2) If you use the screen lock there seems to be no way to unlock the OS without there being a keyboard attached. So I guess the best way is to activate the "regular" screen lock. Any plans on allowing an onscreen keyboard for unlocking the screen?

penguinbait 2008-10-20 23:00

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by sondjata (Post 235187)
Hey, installed KDE over the weekend. Props. PROPS. it's quick!

Two questions:

1) Does this use power management like the built in OS? Should I see the same or similar battery life as if I was only booted into Maemo?

2) If you use the screen lock there seems to be no way to unlock the OS without there being a keyboard attached. So I guess the best way is to activate the "regular" screen lock. Any plans on allowing an onscreen keyboard for unlocking the screen?


Well it becomes MUCH more useful when you have an 810. I don't just mean the screen lock, the whole thing. The keyboard shortcuts make it much more useable. I honestly don't even know how to do it. I tried several onscreen keyboards, but I must be missing something, because none of them work above the screenlock?

Eladon 2008-10-21 03:26

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

First of all, how can I get rid of the "Hello" audio message on startup. Sorry if this is already been asked, I searched the 54 page thread but didn't get any hits.
To answer my own question... delete (or replace?) the following file:

/root/.linus/linus.wav

Eladon 2008-10-21 03:48

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
With all the talk about disabling the virtual memory (pre-install), I'd like to ask about re-enabling it (post-install). Are there any issues with doing this? Currently the mmc2 partition is only 120 MB, which leaves only a max of 112 MB selectable for virtual memory. Any reason why this wasn't made big enough to get the full 128 MB out of it? I see .apt-archive-cache in mmc2, does that mean if I enable virtual memory, I'm going to cause apt to freak out due to lack of available space?

Eladon 2008-10-21 10:03

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Yet another question... How do you install applications that are counting on filling the "internal memory" card, rather than the flash? For example, the map program (i.e. Wayfinder). When you try to download a map, it just says sorry there isn't enough room! DOH!

Eladon 2008-10-21 10:17

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Yet another question... How do you install applications that are counting on filling the "internal memory" card, rather than the flash? For example, the map program (i.e. Wayfinder). When you try to download a map, it just says sorry there isn't enough room! DOH!
I ended up creating a "dummy card", moved the "map" folder to it, and then it worked:

Code:

mkdir /media/mmc3
chmod 777 /media/mmc3
chown user /media/mmc3
mv /media/mmc2/map /media/mmc3

I'm lucky this even worked. If anyone thinks this is evil, let me know! :o Not sure what I'll do if I find another app that behaves the same...

penguinbait 2008-10-21 11:02

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Eladon (Post 235260)
With all the talk about disabling the virtual memory (pre-install), I'd like to ask about re-enabling it (post-install). Are there any issues with doing this? Currently the mmc2 partition is only 120 MB, which leaves only a max of 112 MB selectable for virtual memory. Any reason why this wasn't made big enough to get the full 128 MB out of it? I see .apt-archive-cache in mmc2, does that mean if I enable virtual memory, I'm going to cause apt to freak out due to lack of available space?

If you installed my install tools it created a virtual memory partition and is mounted alredady, you need not do anything.

penguinbait 2008-10-21 11:06

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Eladon (Post 235308)
I ended up creating a "dummy card", moved the "map" folder to it, and then it worked:

Code:

mkdir /media/mmc3
chmod 777 /media/mmc3
chown user /media/mmc3
mv /media/mmc2/map /media/mmc3

I'm lucky this even worked. If anyone thinks this is evil, let me know! :o Not sure what I'll do if I find another app that behaves the same...

probably the best solution to this I have seen, nicely done :)

I do not use the built in mapping prog, I use maemo mapper, so I really dont hit this issue. If you use install-tools-ad.tgz (advanced edition) it would allow you to specify the size of you fat partition (mmc1/mmc2) depending on which card your cloning.

Cadabena 2008-10-22 19:22

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
I'm looking at getting an internal card solely for booting the OS from. Didn't want to make a new thread, but I know that somewhere there's a thread that details different types of cards, and says how well they do dual booting. I've spent ages looking and can't find it, so...

- Can someone direct me to the thread, or
- What cards do you recommend? Price and size doesn't matter (as long as it's >2gb), only speed and reliability matters.

Thanks.

penguinbait 2008-10-22 20:15

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Cadabena (Post 235780)
I'm looking at getting an internal card solely for booting the OS from. Didn't want to make a new thread, but I know that somewhere there's a thread that details different types of cards, and says how well they do dual booting. I've spent ages looking and can't find it, so...

- Can someone direct me to the thread, or
- What cards do you recommend? Price and size doesn't matter (as long as it's >2gb), only speed and reliability matters.

Thanks.

I personally buy Kingston and have never had an issue. I also have an old 1GB sandisk that has never given me a problem

gemniii42 2008-10-22 20:25

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Cadabena (Post 235780)
I'm looking at getting an internal card solely for booting the OS from. Didn't want to make a new thread, but I know that somewhere there's a thread that details different types of cards, and says how well they do dual booting. I've spent ages looking and can't find it, so...

- Can someone direct me to the thread, or
- What cards do you recommend? Price and size doesn't matter (as long as it's >2gb), only speed and reliability matters.

Thanks.

http://www.internettablettalk.com/fo...ad.php?t=20715

Cadabena 2008-10-22 21:19

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
That wasn't the thread I remembered (the one I remembered described in detail all different cards), but thanks anyway. I've decided to go with a 4gb Extreme III Sandisk, as I've had nothing but good experience from them with all kinds of formats. And, at £13.99 from play.com with a USB reader and soft carrying pouch, I feel it's a bargain!


All times are GMT. The time now is 21:20.

vBulletin® Version 3.8.8