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??


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

vBulletin® Version 3.8.8