![]() |
Management Tools (install-tools gui edition) v1
NOT FOR USE ON 43-7 or above - NO LONGER BEING UPDATED may work has not been tested, no longer being updated
I have put together a set of scripts with gui menus to clone and backup/restore Flash and SD partitions. (Note I have only tested this on 2008 Firmware 36-5 on an 810, please report any issues) Please be patient, some menus may take 30-60 seconds to reappear depending on the number of partitions available. Clone Allows you to clone from SD/Flash/USB Disk to SD/Flash/USB Disk Remove Allows you to mount another bootable partition and remove a install package via dpkg. Great for recovery after installing something you shouldn't have. Bootmenu
Backup Allows you to backup from SD/Flash/USB Disk to SD/Flash/USB Disk Restore Allows you to restore from SD/Flash/USB Disk to SD/Flash/USB Disk Swap Select partition to enable swap on, and select which swap device to use. (If booting from mmcblk0 I put swap on mmcblk1 and vice verse) USB Toggle USB support HOST/OTG and Check its status NOTE THESE TAKE UP ABOUT 22MB FROM FLASH (About 35MB on boot from SD) (Be sure you have enough free space to install them) Sorry its kinda big, but its worth it. PREREQ MUST HAVE GPARTED-HACK INSTALLED gparted is used to partition the SD/USB Disk http://penguinbait.com/gparted-hack.deb http://tablethacker.com/software/gparted-hack.deb Note gparted can not partition ANY sd cards if you are booted to an SD. It can still partition external disk though. INSTALL MGMT-TOOLS http://penguinbait.com/mgmt-tools.deb http://tablethacker.com/software/mgmt-tools.deb Please take backups of anything important before doing anything crazy. As long as you have a tar backup from mgmt-tools you can recover. Also No booting from USB disk yet, maybe some day. This could be rewritten and cleaned up a lot more, but it works and if I don't release I will be playing forever. I can easily add more functionality with just more scripting in the future. I am looking forward to the comments??? This represents a weeks work of all my spare time, and a pissed off wife ;) Hope you enjoy it.. Please let me know about any bugs or problems?? http://penguinbait.com/mgmt-tools.png PS, I accept thanks below, or cash donations at my website :D ------------------------------------------------------------ Additional possibly usefull inforamtion (based on questions from lm2) ------------------------------------------------------------ #1 In order to clone or restore, the filesystem you are overwriting must exist. Use gparted (Partition editor) to create your filesystems. My menus will allow you to format them, but they must exist prior to running mgmt-tools. There is no one step process. Use gparted to create filesystems, preferrably #1 FAT , #2 ext2 or 3, #3 then perhaps a swap partition. My tools allow you to have many partitions on one SD card. You could have 6 bootable images from 1 SD card easily. Once the clone is complete then you must install bootmenu. I know its not a 1 button push, but its 10000% more reliable and very configurable. (no more reboot and pray :) ) Partitioning rules Always make first partition on card FAT (any size), this is the filesystem that is seen by maemo (internal and external SD) /media/mmc1 and media/mmc2 I try to place my swap partiton on the opposite card if possible, not the card I will be booting from saves on I/O contention #2 you can always click close or ok as soon as they appear. Just NEVER click cancel unless you want to abort. If you click ok and its not done nothing will happen. Additional Info--------------- FAT is the filesystem type used by default on SD cards, in order to boot from them you need an ext2 or ext3 partition. ext2 and ext3 are linux filesystems and are required for booting from SD SWAP partiton is needed to use swap or virtual memory can be used. ("Virtual Memeory" Try to enable it on the card your not booting from, and remember this will sit on the FAT partiton so make sure its big enough for your virtual memory) jffs2 This is the partition used by Flash. This will always be jffs2. You can clone directly from jffs2 to ext2/3 and from ext2/3 to jffs2 flash device shows up as /dev/mtdblock4 SD cards show up as /dev/mmcblk0 (Base card) /dev/mmcblk0p1 (p1 is the first partition and should be FAT) /dev/mmcblk0p2 (would be your first ext2/3 partition) and depending on how many partitions it could go from mmcblk0p1-7 These are the internal and external SD cards mmcblk0 and mmcblk1 |
Re: Management Tools (install-tools gui edition) v1
I've tried to install the mgmt-tools after installing gparted-hack and the app manager keeps saying unable to install. Will try dpkg next.
Edit: tried dpkg and still failed. here is the log Nokia-N810-36-5:/media/mmc1/Downloads/Debs# dpkg -i mgmt-tools.deb (Reading database ... 21701 files and directories currently installed.) Unpacking mgmt-tools (from mgmt-tools.deb) ... dpkg: error processing mgmt-tools.deb (--install): trying to overwrite `/usr/lib/libcrypto.so.0.9.7', which is also in package libssl0.9.7 dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: mgmt-tools.deb |
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
Same here:
Code:
Nokia-N800-23-14:/media/mmc1# dpkg -i mgmt-tools.deb |
Re: Management Tools (install-tools gui edition) v1
I am on it, I will fix the conflict, give me 10 minutes
|
Re: Management Tools (install-tools gui edition) v1
It has been updated, download it again as of NOW and try again!!!
|
Re: Management Tools (install-tools gui edition) v1
Code:
Nokia-N800-23-14:/home/user/MyDocs# dpkg -i mgmt-to ols.deb |
Re: Management Tools (install-tools gui edition) v1
fixed libgail conflicts, please try again...
|
Re: Management Tools (install-tools gui edition) v1
Managed to install with application manager without any problem.
You said you only tested it for OS2008. I'm running on OS2007 and I get an error about the libpangocairo being missing. Since I don't have any usb connection, I suppose there's nothing I can do about that, is there? |
Re: Management Tools (install-tools gui edition) v1
success!!!!
|
Re: Management Tools (install-tools gui edition) v1
Quote:
Well try this?? Here is the libpangocairo files included with 2008OS http://penguinbait.com/libpc.tar open xterm sudo su - cd / tar xvf /path/to/libpc.tar lemme know? |
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
In the remove file selector if you could include all then we would be able to scan through all of the files and do multi selections insteand of having to go letter by letter.
Other than that when we do recovery would it be possible to chose which files we want to bring back instead of having to do the whole image. Thanks for the great work. |
Re: Management Tools (install-tools gui edition) v1
Ok. Got n800, normally booting from internal sd. Now booting from flash w/ management tools installed. How to know what to backup for complete sd-boot backup? Which partitions? jffs2? ext2? (I'm not good enough w/ linux yet to know where to begin....)
|
Re: Management Tools (install-tools gui edition) v1
When installing mgmt-tools on diablo I get the following conflict:
dpkg: error processing mgmt-tools.deb (--install): trying to overwrite '/usr/lib/libmagic.so.1.0.0', which is also in package libmagic1 I think the midnight commander package depends on libmagic1. |
Re: Management Tools (install-tools gui edition) v1
Quote:
The application won't accept all the files in one window, that why I broke it down by alphabit. Sorry cant fix this at the moment. Also removing the filesets from a partiton is a last resort recovery effort. Oops I installed an app and now I cannot boot. (that was its intent anyway) #2 I planned on doing a restore files from backup, again this also goes back to the same issue as #1. I cannot display all the files in a window. Perhaps v2. |
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
Quote:
Flash runs from /dev/mtdblock4 (jffs2) cloning this to SD will get you boot from SD Hope this helps?? |
Re: Management Tools (install-tools gui edition) v1
OK, I want to make sure I understand.
Let's say I do a backup of the flash's filesystem today. Then, tomorrow, I want to boot from an SD that is exactly similar to how my flash is set up today. Must the SD that I want to be a replica of today's flash already be bootable before I do this restore? That is, must the SD already have a filesystem that is then replaced by the filesystem that I backed up? Or is there one step to move from a clean SD to a bootable SD that is essentially a replica of the original flash? A couple of other notes: I was confused on several dialogs that I think had "Text" as their heading. I wasn't sure at first if these dialogs were reporting progress, or just giving me information that, once read, I should click OK to proceed. It turned out that I was supposed to click OK. So it might help others if the instructions for moving through the steps were a bit more explicit. Relatedly, although the progress bar shows a full blue progress line when a process has finished, the text continues to say something like "Working..." (I can't remember what). So I wasn't sure if I should click OK, or wait for it to stop "working". These are minor things, and my unclarity is mostly *MY* unclarity about filesystems and such. Thanks for your hard work......and patience! |
Re: Management Tools (install-tools gui edition) v1
Managed to install your library and libcario2 but libnotify1 is only installable for OS2008.
|
Re: Management Tools (install-tools gui edition) v1
Quote:
#1 In order to clone or restore, the filesystem you are overwriting must exist. Use gparted (Partition editor) to create your filesystems. My menus will allow you to format them, but they must exist prior to running mgmt-tools. There is no one step process. Use gparted to create filesystems, preferrably #1 FAT , #2 ext2 or 3, #3 then perhaps a swap partition. My tools allow you to have many partitions on one SD card. You could have 6 bootable images from 1 SD card easily. Once the clone is complete then you must install bootmenu. I know its not a 1 button push, but its 10000% more reliable and very configurable. Partitioning rules Always make first partition on card FAT (any size), this is the filesystem that is seen by maemo (internal and external SD) /media/mmc1 and media/mmc2 I try to place my swap partiton on the opposite card if possible, not the card I will be booting from saves on I/O contention #2 you can always click close or ok as soon as they appear. Just NEVER click cancel unless you want to abort. If you click ok and its not done nothing will happen. FAT is the filesystem type used by default on SD cards, in order to boot from them you need an ext2 or ext3 partition. ext2 and ext3 are linux filesystems and are required for booting from SD SWAP partiton is needed to use swap or virtual memory can be used. ("Virtual Memeory" Try to enable it on the card your not booting from, and remember this will sit on the FAT partiton so make sure its big enough for your virtual memory) jffs2 This is the partition used by Flash. This will always be jffs2. You can clone directly from jffs2 to ext2/3 and from ext2/3 to jffs2 flash device shows up as /dev/mtdblock4 SD cards show up as /dev/mmcblk0 (Base card) /dev/mmcblk0p1 (p1 is the first partition and should be FAT) /dev/mmcblk0p2 (would be your first ext2/3 partition) and depending on how many partitions it could go from mmcblk0p1-7 These are the internal and external SD cards mmcblk0 and mmcblk1 Hopefully some of this helps? |
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
Quote:
http://penguinbait.com/2007libs.tar Probably should have been named 2008libs.tar, but I digress. If you can get it working I will make a second deb for 2007OS, or maybe just an addon deb... This contains libnotify.so.1 libnotify.so.1.1.2 libpangocairo-1.0.so.0 libpangocairo-1.0.so.0.1600.4 ibcairo.so.2 libcairo.so.2.11.5 open xterm sudo su - cd / tar xvf /path/to/2007libs.tar good luck let me know whats next? |
Re: Management Tools (install-tools gui edition) v1
Quote:
Unpacking mgmt-tools (from mgmt-tools.deb) ... dpkg: error processing mgmt-tools.deb (--install): trying to overwrite `/usr/bin/file', which is also in package file |
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
Quote:
Updated to remove the conflict with /usr/bin/file version 1.0.1.1 both links have been updated |
Re: Management Tools (install-tools gui edition) v1
Success!!
I used gparted to establish partitions on clean external 2gb sd that were symmetrical to my standard cloned internal sd. Then I used management tools to clone from internal to external. Then bootmenu update. Then successful reboot from newly cloned external. Amazing. Bravo! Now I will try cloning clean flash to the external, backing up the internal, and then restoring the internal's backup to relatively clean external. This is fun! |
Re: Management Tools (install-tools gui edition) v1
Say, what exactly a "scale value" and how do I know which to choose while I'm writing a new bootmenu?
|
Re: Management Tools (install-tools gui edition) v1
Quote:
This is the default timeout value for bootmenu 0-60 |
Re: Management Tools (install-tools gui edition) v1
Thanks. I can't believe how much I've learned about how the tablet/linux works in just a few hours of playing with your management tools. I can't really say how grateful I am for your work.
|
Re: Management Tools (install-tools gui edition) v1
Is there something I'm supposed to do when Zenity pops up after a restore?
NEVERMIND, I figured it out. (I know, it wasn't rocket science...) :) |
Re: Management Tools (install-tools gui edition) v1
Quote:
|
Re: Management Tools (install-tools gui edition) v1
Twice now, when working with management tools while booting from sd, the resulting updated bootmenu is populated with nearly a dozen options, most with "N/A" at the end. It's only when I boot into flash and update bootmenu from there, that I get a bootmenu reflecting the choice I have made during the bootmenu-updating process.
|
Re: Management Tools (install-tools gui edition) v1
Quote:
But if you update via mgmt-tools (while booted to SD) it results in lots of items that are incorrect? Sorry just trying to nail down exactly what I am reading? I tested both and it workds fine from flash or SD???? |
Re: Management Tools (install-tools gui edition) v1
Yes, that's right.
Also, after a day of playing with mgmt-tools, I decided to restore my bootmenu to boot from an SD that (I thought!) had not been changed today. I did use it as the source of a clone, but that shouldn't have changed the amount of space available in "device" when booted to that sd. However, when now booted to that SD, I am told that Device has just 1kb available. I am using acronis now to restore that SD's partitions, files, etc. to what they were this morning. But any idea what could have happened? |
Re: Management Tools (install-tools gui edition) v1
Quote:
#1 "I decided to restore my bootmenu to boot from an SD that (I thought!) had not been changed today." Not sure what this means? What do you mean restore your bootmenu? Also note that bootmenu is not stored on SD or flash, it is on initfs which is totally separate. So NO backup or restore using my tools will alter bootmenu #2 "I did use it as the source of a clone, but that shouldn't have changed the amount of space available in "device" when booted to that sd. However, when now booted to that SD, I am told that Device has just 1kb available." How big is the filesystem on SD?? Thats correct that using it as a source will not alter the Filesystem. If you backup to it though, you might use up all the space. look in /backup does it exist? is there anything in it? we should get together on IRC or gtalk or aim or msn or yahoo or whatever you got?? |
Re: Management Tools (install-tools gui edition) v1
While trying to partition SD card with gparted, I got these messages:
Code:
/home/user # gparted /dev/mmcblk0 Sorry if this is obvious... |
Re: Management Tools (install-tools gui edition) v1
Quote:
Its because your running 2007OS, I will add that lib to the tar and and let you know when I update it |
Re: Management Tools (install-tools gui edition) v1
http://penguinbait.com/2008libs.tar
usr/GPARTED/lib/libpangocairo-1.0.so.0 usr/GPARTED/lib/libpangocairo-1.0.so.0.1600.4 usr/GPARTED/lib/libcairo.so.2 usr/GPARTED/lib/libcairo.so.2.11.5 usr/GPARTED/lib/libnotify.so.1 usr/GPARTED/lib/libnotify.so.1.1.2 usr/GPARTED/lib/libXcomposite.so.1 usr/GPARTED/lib/libXcomposite.so.1.0.0 open xterm sudo su - cd / tar xvf /path/to/2008libs.tar Also note that gparted is a hack, it was stolen from debian. It should be run from the menu While booting from flash it will look for mmcblk0 mmcblk1 sda sdb While booting from SD it will only scan for sda/sdb if usb devices are available. While booted to SD you cannot use gparted on mmcblk0/mmcblk1, if you attempt it will reboot. |
All times are GMT. The time now is 21:10. |
vBulletin® Version 3.8.8