![]() |
Clone OS to SD Deb!! Boot from SD made EASY!!
NOT FOR USE ON 43-7 or above - NO LONGER BEING UPDATED
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. Notice if you want to install KDE using the KDE boot from SD deb. http://www.internettablettalk.com/fo...ad.php?t=19675 On a 2GB card, you need to use a fresh flash. If you install a bunch of apps there will not be enough space to finish KDEv2 installation. However once KDEv2 is installed, there will be about 330MB free. 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 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. See bottom of page for 810 external slot install deb. (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. 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 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 (see special 810 external info at bottom). YOU WILL NEED 20MB FREE IN FLASH BEFORE INSTALLING. ONLY 1 SD CARD CAN BE INSERTED DURING INSTALL PROCESS. IF TWO ARE INSTALLED THE INSTALL WILL FAIL. REMOVE THE CARD and reinstall the DEB AND START AGAIN. IF YOU COMPLETE THE INSTALL AND THE CLONE WONT BOOT, OR IF THE INSTALL FAILS. BOOT/REBOOT 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/ For those who were asking, I created a N810 external slot version of the boot from SD deb. Get it from http://penguinbait.com "INSTALL TOOLS EXTERNAL 810 SLOT" After install it can be uninstalled from both Flash and SD. Supported Versions, (Not tested on 770) Nokia 770 - IT2006 versions 1.2006.26-8, 2.2006.39-14, 3.2006.49-2, IT2007 hacker edition 2.2006.48-7, 4.2007.36-2 N800 - IT2007 versions 2.2006.51-6, 3.2007.10-7, 4.2007.26-8, 4.2007.38-2 N800,N810 - IT2008 versions 1.2007.42-18, 1.2007.42-19, 2.2007.50-2, 4.2008.23-14 (Diablo), 4.2008.30-2 (first Diablo update), 4.2008.36-5 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. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Is it also working with Os2007He?
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Brilliant!
Easiest as it gets :) One thing though , is bootmenu optional? I already have a modded copy installed :) (This sounds easier than the clone scripts though, I had to run the script 5 times last time :)) |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
That said perhaps I can alter the install to only install bootmenu if its not installed. But that may take a while before I get to it. You can install it even if you have bootmenu, but this will replace your custom install... |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Might want to edit the first post; unless I missed it, it doesn't come right out and say I will eat all data on your SD card! I assume that's true, since I guess you're not doing filesystem resizing, like a typical desktop distro's install. Which could confuse somebody, better to change it first...
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Can't wait for the automated rotation kernel support deb installer ;)
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
OK guys, explain to me why I should do this?
I did just test this on KDE and I can't turn it sideways but upside down now works perfectly. nice I went through the install and it was not that bad. I suppose a deb to install kernel and xomap would be nice. but again my install went perfectly |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Can't go sideways? is that a "KDE doesn't know what to do with 480px width"? or the display won't rotate at all?
I know XV doesn't work in portrait mode, but I'd have thought K would get by fine... |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
I think emjayes is the closest with automatic rotation. But is it really that hard to install? I've done 7 installs of rotation with no problem.
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
I am still playing :) |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
What am I doing wrong? The install goes through the motions and then complains about not enough memory. The internal memory went from ~40M down to 1kb. I have a 2G SD card in the external slot that was empty other than the .deb install file. I ran it again after clearing more space but I'm down to no space again. I have the boot menu but of course it won't boot off SD. The SD card doesn't appear to have been touched. I've now uninstalled it but still have the boot menu. Can I at least remove whatever is taking up my internal memory?
N800 with OS2008 edit->I did the suggested update but quickly came up with not enough memory. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
So it hosed your flash install? Or the SD card would not boot? did it install bootmenu. ALSO please send me the log from application manager |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
@IcelandDreams, if this script works in the same way as others, unmount /opt and go in and rm -rf /opt/* (for your 1kb problem if you can boot rootfs or mount the rootfs over ssh/telnet)
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
TO FIX open xterm (you will need to become root) rm -rf /device/* if its full, its because the mount failed because the SD card was in use. So it started the tar, and filled up your flash in /device Then put the deb on flash somewhere, like documents, then run it again. Ouch, I just did not see that one coming :) |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Maybe if you rotate before you start KDE...
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
Where are you placing the DEB? put it on flash NOT on the SD CARD |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
It makes sense not to put the deb on the SD but I've done similar things in the past with the understanding that the file would go away but the load happened anyway. So I'm trying it again after regaining space on the internal memory.
Thanks. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
OK, you probably got this PB, but here's what's going on:
Code:
if [ ! -b /dev/mmc0blk2 ] ; then |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
a working personal menu.... I see a reflash/reload in my future.....;-) next time with a 2gb sd!! |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
[QUOTE=penguinbait;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. QUOTE] Where possible, would you make the DEB to read a configure file which allow one to set the size for 1, 2 and 3? This way, you do not have to track multiple versions of the DEB. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
That seems a wierd way of going about it -- the hybrid of all-up deb and reading a config file.
Maybe just prompt? or indeed, detect the card size and branch accordingly? |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
UPDATED DEB to FAIL if mount fails, which will stop the out of memory problems.
You should not get that anymore! UPDATED 13:50 EST Let me know |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
^too late, already installed now. :)
So what do you folks do with this primarily? Use it as a backup in case of a major blowup? Use it normally so to have a lot more space for installs? Use it to try out some possibly dangerous hacks and apps? Anyway, it is now working fine. thanks again. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
To be clear? using new deb and fresh flash you installed and it failed. you then reboted, and then updated the deb by installing it again. You then rebooted again and bootmenu was installed and your cloned partition was working? Thanks, Please guys, I need logs for failures... |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
This was the single worst thing I've done to my NIT so far. :(
After an extremely long install of about 20 minutes, the unit spontaneously rebooted and I got the bootmenu (like always). I booted from flash and I got a reverted desktop (back to before I clone my OS to SD earlier this year). I opened the file manager, looked at my 4gb MMC2 card and there was only 65mb available with no files on the card. Wonderful. I supposed that I'm going to have reflash and lose months of work that I spent fine-tuning. The log in app-manager, shows some error from an apt-get from back when I installed the Vagalume client (which would have been many months ago). |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
You can boot from SD but not from flash? Log is in application manager (MENU) |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
Sorry man, did you read the first post? Seriously I dont mean to shrug off the blame, but I said very clearly this may hose your system. It says testing. Also you said "I got the bootmenu (like always)" Was bootmenu already installed? Were you booted to flash when you installed it? What was on the SD card to begin with. It was supposed to wipe out the SD card, was that unclear to you? Did it corrupt your flash install? |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
Had bootmenu installed previously, does not look like anything changed there. The flash install looks ok now that I've had time to really look at it. I think instead of reflashing, I'll just reformat my MMC2 and take it from there. No biggie, I was having issues with Claws mail's data folder not showing up on MMC2 anyway. eh... |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
Boot to SD, open xterm, become root mkdir /flash mount -t jffs2 /dev/mtdblock4 /flash -o rw,rpsize=1024,rpuid=0,rpuid=30000 df (look at the output for df, is /flash at 100% full? ) (if its full, delete some things, and boot back to flash) rm /root/install-tools rm -rf /flash/device/* Also the deb was installed in flash, so opening the log when booted to SD wont get me the correct log :) |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Ok, so I reformatted MMC2. I'm willing to give this another go around. Will try again in the next few minutes.
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
(A) Just letting you know that it installed fine, first time. I don't know if it matters, but I did already have fanoush's boot menu. It left the boot menu the way it was, with the default and timing the way I had set it before, too. Great job. Thanks. It sure was painless and easy.
(B) Penguinbait, I was going to edit "my" thread on cloning (see my signature) to suggest people head here for your debs instead. But I see some people have had problems and you consider it to be still in a "testing" state. Let us know when you feel it is beyond testing stage and I'll start re-directing users. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
What Nokia device did you succeed on, and what size SD card? |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
N800. SanDisk Extreme III 4GB. |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
In the (boot from SD) just open xterm and type "sudo su -" This should make you root |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Hi,
I'd really like to try this, because I never managed to partition my SD manually. Installing the deb just doesn't work for me either. I installed the package and this is what the log stated. Is local.sh the problem file? IŽd appreciate some help. hildon-application-manager 2.0.2 /usr/bin/dpkg-deb -f '/home/user/MyDocs/.documents/install-tools.deb' /usr/bin/dpkg --install '/home/user/MyDocs/.documents/install-tools.deb' (Reading database ... 21755 files and directories currently installed.) Unpacking install-tools (from .../.documents/install-tools.deb) ... dpkg: error processing /home/user/MyDocs/.documents/install-tools.deb (--install): trying to overwrite `/etc/init.d/local.sh', which is also in package local-mmc2 Errors were encountered while processing: /home/user/MyDocs/.documents/install-tools.deb /usr/bin/dpkg-deb -f '/home/user/MyDocs/.documents/install-tools.deb' /usr/bin/dpkg --install '/home/user/MyDocs/.documents/install-tools.deb' (Reading database ... 21755 files and directories currently installed.) Unpacking install-tools (from .../.documents/install-tools.deb) ... dpkg: error processing /home/user/MyDocs/.documents/install-tools.deb (--install): trying to overwrite `/etc/init.d/local.sh', which is also in package local-mmc2 Errors were encountered while processing: /home/user/MyDocs/.documents/install-tools.deb |
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
Quote:
|
Re: Clone OS to SD Deb!! Boot from SD made EASY!!
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?
|
All times are GMT. The time now is 00:26. |
vBulletin® Version 3.8.8