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-04-30 02:04

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

Originally Posted by PinCushionQueen (Post 176163)
Hey PB! Just curious... did you make any changes to KDE from the last version that I installed 358v2 for the booting from mmc users?


No not yet, I am working more on the installer process. Is there something you have in mind?

I created a kde-installer.deb for boot from SD users also. It downloads the files and installs them. Takes a bit of time though, it seems to work like a charm... It even does md5sum checks, ooohhh aaahhh

penguinbait 2008-05-01 02:11

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
any other reports good bad ugly??

ebrindle 2008-05-01 02:43

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

Here is a follow up to my submission yesterday stating that I ran in to the memory
problem - and would likely need to reflash as things were messed up.

Was doing this in an airport - while waiting for a plane.... any did some debug
while on my flight - and found that my personal menu problem was associated
with being out of memory in the flash /. Deleted some little used packages and
an old rev of KDE - and got my system back fully functional without
any loss of data or the need for a reflash.

Bottom line - the 2nd attempt on my n800 w/8gb sd worked great.

I seem to recall before the first attempt that didnt work - I had less then 20m free.
Second attempt with about 25mb free worked.

Thanks penguinbait!

ebrindle 2008-05-01 17:14

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

Originally Posted by penguinbait (Post 176068)
I give you sudo ALL=ALL in SD partition, you have to install becomeroot or the like for the flash partition.

In the (boot from SD) just open xterm and type "sudo su -"

This should make you root


I had the ssh packages loaded, and after the sd installer - i too lost
my root access.

I simply unloaded the ssh packages, and reloaded them - and voila -
my old password had returned.

penguinbait 2008-05-01 18:01

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

Originally Posted by smog (Post 176830)
in the end it was all good but If it's better for you I may delete all my previous messages in this thread so the other users won't go away after reading my self-inflicted troubles :D

Only you can prevent forest fires, as smokey the bear says!!

#$%$#@! happens, glad to see you came out in good shape

manfredi90 2008-05-01 18:20

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Fantastic idea! It will made more more more simple and easy clone the OS...
The probles is that I have a N810...:D so, when you will release a version that support the external card? thanx...;)

smog 2008-05-01 18:25

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

Originally Posted by penguinbait (Post 176842)
Only you can prevent forest fires, as smokey the bear says!!

#$%$#@! happens, glad to see you came out in good shape


I'm not afraid to reflash

penguinbait 2008-05-01 18:32

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

Originally Posted by manfredi90 (Post 176854)
Fantastic idea! It will made more more more simple and easy clone the OS...
The probles is that I have a N810...:D so, when you will release a version that support the external card? thanx...;)

Its a very simple update, probaly make for specifically for boot external 810. Maybe this weekend, its a minor update. Just wanted to hammer out all the functionality before moving on...

ahli.os 2008-05-02 14:10

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Uninstalling KDE (kdesup) quits with an error message ("rm cannot remove 'etc/rc2.d/S91cups").
How can I (manually) get rid of kde?

Karl

[[ cold ]] 2008-05-02 14:11

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

Originally Posted by penguinbait (Post 175792)
I made a DEB that will clone the currently running OS to a 2GB CARD. It will also clone it to bigger/smaller cards but its not really setup for that.

1GB
1: 64MB FAT
2: 872GB EXT2 (BOOT)
3: 64MB SWAP

2GB
1: 128MB FAT
2: 1.75GB EXT2 (BOOT)
3: 128MB SWAP

4GB
1: 256MB FAT
2: 3.5GB EXT2 (BOOT)
3: 256MB SWAP

6GB
1: 384MB FAT
2: 5.255GB EXT2 (BOOT)
3: 384MB SWAP

8GB
1: 512MB FAT
2: 6.6GB EXT2 (BOOT)
3: 512MB SWAP


If things go smoothly with this, I will make some more DEB's with different layouts for different sizes.

My initial build is only for N800 (either SD slot) or N810 IF YOU WANT TO CLONE TO THE INTERNAL 2GB CARD. This will not work on the n810 with a SD card. More work to follow.

(SEE BELOW) for a link to the DEB if you want to try it out. NOTICE (It may HOSE your device and cause you to REFLASH your OS.)
Use at own risk. Take backups of any important data before continuing.


The new deb will partition your SD/MMC card, clone the Flash to the card. Install Boot Menu (with telnet support). Then you just reboot to your new menu and partition.



This is really in testing phase, and I think the bugs are all out, but I want to have a few people test on other cards. So please (See Below) to test and please post your experiences out here...

Thanks


pb

This will partition and format SD card
This will clone currently running OS to SD card
This will install bootmenu (with telnet recovery)
This will fsck all EXT2 partitions on SD cards when booted to flash (plays wav when complete) (view log /tmp/fsck.txt)
This will add sudo ALL=ALL in /etc/sudoers (gives you root access "sudo su -") Only on cloned partition not on flash



TESTING USE AT OWN RISK




-- This will remove ALL current data on you SD card --


-- This will remove ALL current data on you SD card --


-- This will remove ALL current data on you SD card --


-- This will remove ALL current data on you SD card --




AGAIN THIS IS FOR EITHER SLOT IN N800, AND ONLY WILL INSTALL TO INSTERNAL 2gb ON N810. iT WILL NOT CURRENTLY INSTALL TO N810 WITH A SD CARD.

YOU WILL NEED 15MB FREE IN FLASH BEFORE INSTALLING.

ONLY 1 SD CARD CAN BE INSERTED DURING INSTALL PROCESS. IF TWO ARE INSTALLED THE INSTALL WILL COMPLETE SUCCESSFULLY, BUT IT ACTUALLY FAILED. REMOVE THE DEB AND START AGAIN.

IF YOU COMPLETE THE INSTALL AND THE CLONE WONT BOOT. BOOT BACK TO FLASH AND RUN IT A SECOND TIME (LET IT UPDATE) THIS SHOULD FIX IT. SOME CARDS SEEM TO NEED TO BE REBOOTED BEFORE BEING USEFULL AFTER PARTITIONING


Go to penguinbait.com

right click on "INSTALL TOOLS"

"save target as" (SAVE FILE ON FLASH NOT ON SD CARD)

Save the file somewhere, open application manager and select "install from file" from the menu. Select the file you just saved.

Once the install completes, reboot for your new bootmenu and select your SD card on boot.

PLEASE SEND ME LOG FROM APPLICATION MANAGER IF YOU GET A FAILURE :)


Thanks everyone, especially Fanoush (As Usual)

This deb steals all Fanoushes great work and packs it up with some scripting for my uses. If you would like to reinstall initfs with different options please see link below to Fanoush's home page
http://fanoush.wz.cz/maemo/

Is there any problem using a 16GB SDHC card??

penguinbait 2008-05-02 14:46

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

Originally Posted by ahli.os (Post 177147)
Uninstalling KDE (kdesup) quits with an error message ("rm cannot remove 'etc/rc2.d/S91cups").
How can I (manually) get rid of kde?

Karl


rm -rf /var/lib/dpkg/info/kde*

then you should be able to remove the apps from application manager

you would also want to remove
rm -rf /home/user/.kde if you are going to install the boot from SD version when you are done.

penguinbait 2008-05-02 15:00

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

Originally Posted by [[ cold ]] (Post 177148)
Is there any problem using a 16GB SDHC card??

No but it would have a 1gb swap, not sure if it woud work, I only have an 8, but the 8 makes a 512 swap and it works, so it might.

ahli.os 2008-05-02 15:15

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

Originally Posted by penguinbait (Post 177159)
rm -rf /var/lib/dpkg/info/kde*

then you should be able to remove the apps from application manager

you would also want to remove
rm -rf /home/user/.kde if you are going to install the boot from SD version when you are done.

That did it! But still I get this error message: "trying to overwrite .... local.sh which is ...local-mmc1

I try to install to a N810 (internal card), with no external sd-card inserted.
Karl

rwijnhov 2008-05-02 15:46

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
ok i am trying to install this on my n810 but I keep getting the error while installing install tools that it can't install install tools. I have no card inserted.

tabletrat 2008-05-02 15:52

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

Originally Posted by penguinbait (Post 176597)
any other reports good bad ugly??

Followed the instructions, opened the install-tools in application manager, sat doing its progress bar thing for a while and then gave me the allways helpfull 'Couldn't install install-tools'
Tried again, it asked me if I wanted to update (so I guess it must have done something the first time) and after a while it said 'Couldn't update install-tools'

Although now I notice, it is sitting there in the installed applications list. Hmm.. how lucky am I feeling!

This is on a newly flashed 810 with no additional card in it

[[ cold ]] 2008-05-02 16:57

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

Originally Posted by tabletrat (Post 177192)
Followed the instructions, opened the install-tools in application manager, sat doing its progress bar thing for a while and then gave me the allways helpfull 'Couldn't install install-tools'
Tried again, it asked me if I wanted to update (so I guess it must have done something the first time) and after a while it said 'Couldn't update install-tools'

Although now I notice, it is sitting there in the installed applications list. Hmm.. how lucky am I feeling!

This is on a newly flashed 810 with no additional card in it

same happens to me with N800 + 16gb

EDIT: must be this issue: http://www.internettablettalk.com/fo...051#post137051

penguinbait 2008-05-02 17:17

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

Originally Posted by [[ cold ]] (Post 177222)
same happens to me with N800 + 16gb

EDIT: must be this issue: http://www.internettablettalk.com/fo...051#post137051

If it failed the first time, you need to reboot, and run again. Reboot is necessary?

penguinbait 2008-05-02 17:18

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

Originally Posted by ahli.os (Post 177176)
That did it! But still I get this error message: "trying to overwrite .... local.sh which is ...local-mmc1

I try to install to a N810 (internal card), with no external sd-card inserted.
Karl



You need to remove local-mmc1 also, this was part of your old KDE install

penguinbait 2008-05-02 17:19

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

Originally Posted by tabletrat (Post 177192)
Followed the instructions, opened the install-tools in application manager, sat doing its progress bar thing for a while and then gave me the allways helpfull 'Couldn't install install-tools'
Tried again, it asked me if I wanted to update (so I guess it must have done something the first time) and after a while it said 'Couldn't update install-tools'

Although now I notice, it is sitting there in the installed applications list. Hmm.. how lucky am I feeling!

This is on a newly flashed 810 with no additional card in it

If it fails first time, did it reboot? EVERYONE Please send me your application manager logs

rwijnhov 2008-05-02 18:27

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
ok where do I find the log?

Benson 2008-05-02 18:36

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Start App Mugger. Go Tools -> Log... -> Save as.
(If you haven't tried this install yet, you might go there now and clear it; then if the install fails, it won't have any extraneous data...)

rwijnhov 2008-05-02 18:54

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
ok I solved it. So for all you n810 owners. Under control panel, memory disable virtual memory. This locks the internal memory card. Then format the internal memory card. After fist install it will tell you that it can't install. Then reboot and run again. Then everything works as a sharm.

penguinbait 2008-05-02 19:11

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

Originally Posted by rwijnhov (Post 177255)
ok where do I find the log?

In application manager menu, under tools > Log

[[ cold ]] 2008-05-02 20:32

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

Originally Posted by [[ cold ]] (Post 177222)
same happens to me with N800 + 16gb

EDIT: must be this issue: http://www.internettablettalk.com/fo...051#post137051

formatted my sd in low level and worked fine :D
installing KDE from your debs right now !

tabletrat 2008-05-02 21:07

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

Originally Posted by penguinbait (Post 177235)
If it fails first time, did it reboot? EVERYONE Please send me your application manager logs

No. As I said, it just said 'Coulnt' install'.

I rebooted manually. Nothing happened.

I will try installing again now after a reboot.

Nope.

Ahh - ok, it says the SD card is in use. I don't know what by as it is just started.
lsof | grep mmc2
says nothing

penguinbait 2008-05-02 21:15

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

Originally Posted by tabletrat (Post 177311)
No. As I said, it just said 'Coulnt' install'.

I rebooted manually. Nothing happened.

I will try installing again now after a reboot.

Nope.

Ahh - ok, it says the SD card is in use. I don't know what by as it is just started.
lsof | grep mmc2
says nothing

Quote:

Originally Posted by rwijnhov (Post 177262)
ok I solved it. So for all you n810 owners. Under control panel, memory disable virtual memory. This locks the internal memory card. Then format the internal memory card. After fist install it will tell you that it can't install. Then reboot and run again. Then everything works as a sharm.



Reading above posted

tabletrat 2008-05-03 01:30

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

Originally Posted by penguinbait (Post 177315)
Reading above posted

Thanks. I had come back to the computer after trying it and hadn't hit refresh on the page to see those posts, sorry.

Everything seems to be working now. The sizes of the partitions wasn't as you said though (though close enough), not that it matters that much.

I will go and investigate fanoush's page to see if there is a way to stop the requirement to select a boot device! It is a bit of a pain on an 810 when you have to slide the keyboard out to select.

penguinbait 2008-05-03 02:24

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

Originally Posted by tabletrat (Post 177366)
Thanks. I had come back to the computer after trying it and hadn't hit refresh on the page to see those posts, sorry.

Everything seems to be working now. The sizes of the partitions wasn't as you said though (though close enough), not that it matters that much.

I will go and investigate fanoush's page to see if there is a way to stop the requirement to select a boot device! It is a bit of a pain on an 810 when you have to slide the keyboard out to select.

you can change the boot default device from the command line.
chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
chroot /mnt/initfs cal-tool --set-root-device ask:flash
chroot /mnt/initfs cal-tool --set-root-device ask:mmc12


But the 30 second timeout will have to be changed by reinstalling bootmenu. sorry,

download the initfs flasher
cp /mnt/initfs/bootmenu.conf into initfs_flasher
edit bootment timeout
install initfs
reboot done

what size partitions do you have, what card ??

b-man 2008-05-03 02:28

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Hay penguindait!, i wasn't abele to install kde but i was abele to install your new "clone os to SD deb" and it works pritty good! :D :D :D especially my 1.3gb system free space. :)

the only real problem i am having is that i was foolish enough to try to create some vurtual memory and now every time i turn it on it says "vurtual memory is corrupt" and i can't remove it. Is there a way of fixing this problem?

enywase, thank you for your help and for theas great deb's! ;)

p.s. i'm booting from mmc2

penguinbait 2008-05-03 02:34

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

Originally Posted by b-man (Post 177377)
Hay penguindait!, i wasn't abele to install kde but i was abele to install your new "boot from sd deb" and it works pritty good! :D :D :D especially my 1.3gb system free space. :)

the only real problem i am having is that i was foolish enough to try to create some vurtual memory and now every time i turn it on it says "vurtual memory is corrupt" and i can't remove it. Is there a way of fixing this problem?

enywase, thank you for your help and for theas great deb's! ;)

p.s. i'm booting from mmc2


before you install anything else , you shoud install, kde on boot from sd installer now

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

tabletrat 2008-05-03 03:07

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

Originally Posted by penguinbait (Post 177375)
But the 30 second timeout will have to be changed by reinstalling bootmenu. sorry,

download the initfs flasher
cp /mnt/initfs/bootmenu.conf into initfs_flasher
edit bootment timeout
install initfs
reboot done

what size partitions do you have, what card ??

Thanks for the info.

It is the internal memory of an 810. I seem to have 119MB swap and FAT space, and the rest as the internal memory, so I cant have 128MB swap file.
But I am not complaining, it means I now have plenty of useable space on the device in a non fat format I can use for unixy things.
It was a bit of a pain compiling on the device and running out of room all the time.

rwijnhov 2008-05-03 08:24

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
ok on my n810 i tried to also use kde installer for boot from sd. But there is just to little room to fit dat also on the internal sd. Is this ment to be? or should it be possible?

atlas95 2008-05-03 10:59

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Sorry but I'm french and I havn't understand all the insctruction,
I just want a NO or YES for this question please:

I have a n810 and a 4gb external plug inside, is it possible to copy the system one the 4gb external card?

Thanks

gemniii42 2008-05-03 11:36

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

Originally Posted by atlas95 (Post 177455)
Sorry but I'm french and I havn't understand all the insctruction,
I just want a NO or YES for this question please:

I have a n810 and a 4gb external plug inside, is it possible to copy the system one the 4gb external card?

Thanks

From reading the thread NO - qualified by not yet.

I was about to post -
These instructions are great but do you have a foolproof and idiotproof way to back up my N810 system to external flash (so I can restore it when I invariably mess up and do not have an operable USB port) and do the instructions?

tabletrat 2008-05-03 16:22

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
strangely my swap partition seems to have dissapeared now. It says there is no room for swap, but I can't see where it is gone!

tabletrat 2008-05-04 17:11

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
OK, after a bit of digging about, restarting etc, I can't seem to get it to accept swap from the UI. Am I missing something here?

linuxrebel 2008-05-05 03:43

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Ok... here goes.

1. Clean 2GB card in mmc2 (internal slot on n800, running latest 2008 (admittedly modified like crazy.)

2. SCP'd the install.deb int /home/user.

3. Resisted temptation to go Linux on this and do dpkg -i .... using the installer instead. (grumble ;) )

4. Remembered why I hate the install tool... moved the deb into one of the MyDoc dot files.

5. Get warned by Nokia that they aren't responsible for the software. (well du-uh)

6. Get passive pop-up that the memory card is available. (this looks like it's a good thing.)

7. Xylon "eye" still running after about 1 minute. Expecting this to be a long install so no problem.

8. Took less than 5 but more than 1 minute (time isn't an option here.) Gave me an all clean message that the install was successful.

9. Removed power to shut down.

10. rebooted greeted with fanoushes boot loader. accepted the default.

11. Boot from mmc2 failed .... booting from flash (this thankfully succeeded.

12 upon boot I get a message that the memory card is corrupted or otherwise unreadable.

13. Did a USB connect to my laptop (running Debian)

14. From the laptop I see this

fdisk -l /dev/sdb
/dev/sdb1 1 3829 122527+ 6 FAT16
/dev/sdb2 3830 57435 1715392 83 Linux
/dev/sdb3 57436 61264 122528 82 Linux swap / Solaris

Unable to mount or read the files there as well. I'm going to re-format and try again with this card. Ok... got into an endless boot loop.... Got out of it by moving the SD card to the other slot. Now back to square one. about to finish the clean up and try again.

penguinbait 2008-05-05 11:45

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

Originally Posted by linuxrebel (Post 177992)
Ok... here goes.

1. Clean 2GB card in mmc2 (internal slot on n800, running latest 2008 (admittedly modified like crazy.)

2. SCP'd the install.deb int /home/user.

3. Resisted temptation to go Linux on this and do dpkg -i .... using the installer instead. (grumble ;) )

4. Remembered why I hate the install tool... moved the deb into one of the MyDoc dot files.

5. Get warned by Nokia that they aren't responsible for the software. (well du-uh)

6. Get passive pop-up that the memory card is available. (this looks like it's a good thing.)

7. Xylon "eye" still running after about 1 minute. Expecting this to be a long install so no problem.

8. Took less than 5 but more than 1 minute (time isn't an option here.) Gave me an all clean message that the install was successful.

9. Removed power to shut down.

10. rebooted greeted with fanoushes boot loader. accepted the default.

11. Boot from mmc2 failed .... booting from flash (this thankfully succeeded.

12 upon boot I get a message that the memory card is corrupted or otherwise unreadable.

13. Did a USB connect to my laptop (running Debian)

14. From the laptop I see this

fdisk -l /dev/sdb
/dev/sdb1 1 3829 122527+ 6 FAT16
/dev/sdb2 3830 57435 1715392 83 Linux
/dev/sdb3 57436 61264 122528 82 Linux swap / Solaris

Unable to mount or read the files there as well. I'm going to re-format and try again with this card. Ok... got into an endless boot loop.... Got out of it by moving the SD card to the other slot. Now back to square one. about to finish the clean up and try again.



Again , as noted in the install info, if it fails the first time, just boot back to flash and re-run it again.

What I noticed is some cards need to be rebooted after partitioning. I you reformat it again and then run again, it may fail again.

rwijnhov 2008-05-05 12:51

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
same problem here with the virtual memory on an n810.

penguinbait 2008-05-05 13:29

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

Originally Posted by rwijnhov (Post 178072)
same problem here with the virtual memory on an n810.

What exactly is the problem? You cannot enable it at any size?

You do know this creates a swap partition and enables it, so you do not need to use a swap file, unless you want even more swap?

open xterm, and type

free

it will show you how much swap you have and its usage


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

vBulletin® Version 3.8.8