![]() |
Introducing console-tools v1 (install-tools replacemement)
DISABLE VIRTUAL MEMORY IN CONTROL PANEL BEFORE ATTEMPTING CLONING OR PARTITIONING
UPDATE Because of several people requesting an EASY nothing way to clone your system. I have created a new set of menus called pbeasy UPDATE pbeasy contains 4 options. 1) Partition, select a disk and partition it, the system will reboot 2) Clone, After you partition run this to clone the flash OS image to the new partition you created. Bootmenu will be installed and system will reboot. Partition will be formatted as ext3 3)Upgrade, to the latest version of bootmenu (for future releases of bootmenu) 4)Bootmenu, This Just installs bootmenu, scans and puts all ext2/3 partitions in bootmenu You can still run pb for an advanced set of tools ------------------------------------------------------------------------------------ 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 43-7 on an 810, please report any issues) There were several changes in output of command line tools in 43-7 which I had to fix and rewrite. I have not goneback and tested in versions prior to 43-7 and I am unsure in it will work in lower versions. It should but somethings may fail due to scripting errors. 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 installed packages via dpkg. Great for recovery after installing something you shouldn't have. Not to be used lightly Bootmenu
Backup Allows you to backup from SD/Flash/USB Disk to SD/Flash/USB Disk Full and Incremental backups are supported as well as bz2 compression (compression is slow, takes about 20x longer. If backup takes 1 minute without compression it will take 20 minutes with compression) Currently only backups to ext2 or ext3 partitions are supported. I will be adding support for simple backup to FAT partition in the future. Restore Allows you to restore from SD/Flash/USB Disk to SD/Flash/USB Disk. Allows for restoring multiple archives at once, so you can select to restore full and any number of incremental backups. 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 I will not be updating install-tools, bootmenu-installer or mgmt-tools any longer. install-tools will not be updated to support 43-7. mgmt-tools in theory should work if you update initfs flasher from the menu. I have not tested it. I am only supporting console-tools from here on out. CLICK > Console-Tools Version 1 Download < HERE or CLICK > Console-Tools Version 1 Download < HERE Takes 9MB installed, 7MB downloaded. This installs also: fdisk - parted - cfdisk - wget - tar - bzip2 - e2fsprogs, so the 9MB is not that bad. To run open xterm and type: pb <enter> Thats it open xterm, type "pb" and hit enter [B][U] ----------------------------------------------------------------------------- OR To run open xterm and type: pbeasy <enter> Thats it open xterm, type "pbeasy" and hit enter [B][U] ----------------------------------------------------------------------------- NOTE: You can adjust the font in xterm with the zoom + - keys You should adjust the font on the main menu and avoid changing the font while operations are in progress. You should also try to avoid changing from full screen to windowed while operations are in progress ----------------------------------------------------------------------------- This is version 1, and there will be some updates and some cleanup. The new SSU caused me to rush to get this done. Its all working good, please report any problems. Have fun!!!!!!!!!! NOTE: I have been debugging this for two days and I think I have all the functionality working. PLEASE report any and all repeatable problems I try to test the software as much as possible, but you may find oddities, badly worded menus. I will do some howto's and some menu updates soon. I have been working non-stop since I saw SSU update to finish console-tools. The decision to not update install-tools was made because There was 4 versions install-tools install-tools-N810 and install-tools-ad and bootmenu-installer. This was 4 debs I had to update each time new nokia version is published. More to come... Understanding Disk Devices There are internal (mmcblk0) and external (mmcblk1) The Internal SD slot (mmcblk0) is located on the file system at /dev/mmcblk0 The Extermal SD slot (mmcblk1) is located on the file system at /dev/mmcblk1 These represent the entire physical device. /dev/mmcblk1 is the whole SD card. If you wanted to partition the cards from a command line, you would run fdisk or cfdisk and pass to it the physical device you wish to partition. For example: fdisk /dev/mmcblk0 or cfdisk /dev/mmcblk1 In order to Clone your flash to a SD slot you need to partition your SD card. These partitions are also located on the file system and are represented as: /dev/mmcblk0p1 (First Partition on Internal Memory/SD) /dev/mmcblk1p1 (First Partition on External Memory/SD) /dev/mmcblk1p3 (Third Partition on External Memory/SD) /dev/mmcblk1p4 (Fourth Partition on Extermal Memory/SD) /dev/mmcblk0p2 (Second Partition on Internal Memory/SD) Partition Allocations and rules: As a General rule you will want to make partition 1 on both Internal and External a FAT partition. FAT (File Allocation Table) is the partition type used by Microsoft Windows. These partitions /dev/mmcblk0p1 and /dev/mmcblk1p1 are the internal partitions that are shared to a host system when you plug in the USB cable. When you are creating filesystems for cloning you will create them as Linux partitions, and format them as either ext2 or ext3. I have been using ext3 for a while now without issue and I highly recommend it. Ext2 support is included though. Ext3 is a journaled file system and it will recover cleanly after a crash without needing fsck (file system check) run. If you choose ext2 you will need to run fsck on a file system after any crashes. There is an option under bootmenu menu to enable fsck on boot to flash, it can only enabled while booted to flash. This will check all filesystems when you boot to flash, it will play a wav when complete, it leaves fsck output in /tmp/fsck.txt Swap partitions, you can use swap partitions or use Virtual Memory in control panel. I prefer partitions. I personally use swap partitions. I have my partitions booting off internal memory using a swap partition on external memory. I have my partitions booting off External memory using a swap partition on internal memory. Please look at the following information pertaining to bugs and usage. >> NEWBIE FAQ << Provided by Eladon |
Re: Introducing console-tools v1 (install-tools replacemement)
Haven't tested it yet but looks great. pb-allin1+extras :D
|
Re: Introducing console-tools v1 (install-tools replacemement)
First off I had to make xterm font smaller (to fit the console-tools' ncurses screen) to make it start, otherwise I'd get "ESC pressed" error and it'd quit. (N800 here)
Next I had a quick look around the new menus. I half-expected there to be, for instance, preset options for cloning system to SD (2GB/4GB/8GB etc), but it appears that at least at this stage that means manually creating new partitions to "target" and figuring out how to move the "source" over. Some HOWTOs would be useful indeed. :p I also tried the REMOVE packages option. I had an internal SD with recent system which fails (reboot loop) soon after booting to desktop, but the menu found only the booted flash partition. I'd also suggest that you start using version names (eg. console-tools_v0.95.deb or somesuch) and perhaps even get the package to Maemo Extras or another repo for easy updating while letting them worry about download traffic. :p |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
When pb starts it scans for new partitions and any ext2 ext3 partitions should show up to be able to remove software? As for the repos and naming, well, maybe some day. There is just not enough hours in the day.. |
Re: Introducing console-tools v1 (install-tools replacemement)
HI! Thanks for your programs :)
Tried to install on an N800 with almost new 43-7 (+ openssh, mc, python); got the error: /usr/bin/dpkg-deb -f '/home/user/MyDocs/.documents/console-tools.deb' /usr/bin/dpkg --install '/home/user/MyDocs/.documents/console-tools.deb' Selecting previously deselected package console-tools. (Reading database ... 16923 files and directories currently installed.) Unpacking console-tools (from .../.documents/console-tools.deb) ... dpkg: error processing /home/user/MyDocs/.documents/console-tools.deb (--install): trying to overwrite `/usr/share/terminfo/x/xterm', which is also in package terminfo-base Errors were encountered while processing: /home/user/MyDocs/.documents/console-tools.deb |
Re: Introducing console-tools v1 (install-tools replacemement)
Help pb!
I have tried to install the console tools, but get a message: "Unable to install console-tools". I am using a N800 with OS cloned to SD. I tried installing it there and got the error message. I then read the installation details and saw that about 9MB is required, but I have about 4.3GB available. Next I tried booting to Flash and installing there, but got the same message. I have about 53MB free in Flash. Also, when I tried to download from the first source (penguinbait.com) It displayed a garbled text file. But the second source worked fine. Any suggestions? ps I am using release 43.7 in both Flash and cloned OS. |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
Probably same problem as previous post, let me know?? |
Re: Introducing console-tools v1 (install-tools replacemement)
Installation worked fine now.
Clone menu shows message: You have selected to clone all data on Can't make sub-window at (9,3), size (1,5). to Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options. Would we debug it to the end for n800? I could go through all the menu items |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
Can you tell me more about your system? How many SD installed? What sizes? What partitions have been created? When you start the menu: pb does it start with a scan and a %bar? |
Re: Introducing console-tools v1 (install-tools replacemement)
Currently 2SDs: internal 1gb, formatted by installtools to 3 partitions, and removable 16gb, whole 16gb fat32 partition;
pb starts with nice bar and scanning process (if i quickly remove the onscreen keyboard on start, otherwise says 'esc pressed' after scanning) then I click OK on clone, see fast running text and the message I wrote in a window. |
Re: Introducing console-tools v1 (install-tools replacemement)
Try running it as user from ssh, see if its still failing for you? It might be the onscreen keyboard of 800. I will try to test tomorrow
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
Edit: don't bother to answer. I found the answer :) (it seems that I can't delete this message?) |
Re: Introducing console-tools v1 (install-tools replacemement)
I'm using N800, diablo 43-7 version.
Installation: no problem. Run pb: in window mode gives "Esc pressed" error, and back to prompt immediately. Runs fine in full screen mode. Run Backup: I have both internal (8 gb with 3 partition) and external mmc (1gb). It only allow me to select mmcblk0 (1GB ext2 partition on internal card which contains my clone). I can't back up to internat fat partition or external card. Run Bootmenu: My boot menu was wiped out after upgrading from 36-5 to 43-7. After run, reboot, and choose to boot up from internal card (it says mmc6), it fail to boot up (my internal card clone is still 36-5, cloned using install-tool). Do I have to re-clone? I would like to avoid re-cloning because I have installed different apps and configured differently from internal flash. Run Swap: configured flash bootup to use swap partition on internal card. Reboot and seems ok. Edit: After rebooting and re-running backup, it now always skip the 'select target' dialog, and displays an error dialog;You have selected to backup all data on /dev/mtdblock4 to Error: Expected at least 7 tokens for --radiolist, have 4 . ..." |
Re: Introducing console-tools v1 (install-tools replacemement)
I hit into more problems. Now whenever I run "pb", I got the error "sh: 1670: unknown operand". clone won't work. I also got the following error when I run "fdisk -l":
Error: /dev/mtdblock0: unrecognized disk label Error: /dev/mtdblock1: unrecognized disk label (repeat until /dev/mtdblock4). Any advice how to fix this? Thank you! |
Re: Introducing console-tools v1 (install-tools replacemement)
Its weird that I can't download this deb from my device. Instead of downloading, the browser opens the file and all I see is a bunch of gibberish. So I download on my pc and transfer to my device.
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
|
Re: Introducing console-tools v1 (install-tools replacemement)
If your having trouble on N800 can you try from ssh and see if there is a difference??
Also run: maemo-list-user-packages from xterm and let me know the output. |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
Quote:
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
maemo-list-user-packages fdisk -l parted /dev/mmcblk0 print all |
Re: Introducing console-tools v1 (install-tools replacemement)
NOTICE if you have bash installed and setup run the following to start the menu
sh /usr/bin/pb --------------------------------------------------------------------------------------- EDIT This has been fixed and is not necessary, just run pb |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
console-tools 1.7.7-8 user/support 8777 map 2.2.8.604-1 user/navigation 8976 osso-softwarre-version-rx44 1:5.2008.43.7 user/system rootsh 1.4 user/tools 32 tutorial-home-applet 0.5.3 user/support 3796 fdisk -l error: can't have a partition outside the disk! error: /dev/mtdblock4: unrecognized disk label error: /dev/mtdblock3: unrecognized disk label error: /dev/mtdblock2: unrecognized disk label error: /dev/mtdblock1: unrecognized disk label error: /dev/mtdblock0: unrecognized disk label parted /dev/mmcblk0 print all error: can't have a partition outside the disk! |
Re: Introducing console-tools v1 (install-tools replacemement)
I seem to be unable to format my internal 2gb card.
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
The "error: /dev/mtdblockX: unrecognized disk label" Are Normal. error: can't have a partition outside the disk! I don't know what these errors are. The whole menu system depends on fdisk and parted being able to read your disks. Run the following as root and paste it back whoami for i in `ls -tr /dev/mmcblk[0-1]*`; do fdisk -l $i; parted $i print; done |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
My output of 'parted /dev/mmcblk0 print all" Model: Unknown (unknown) Disk /dev/mmcblk0: 8032MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 6679MB 6679MB primary fat32 2 6679MB 7756MB 1078MB primary ext2 3 7756MB 8028MB 271MB primary linux-swap Error: /dev/mtdblock4: unrecognised disk label Error: /dev/mtdblock3: unrecognised disk label Error: /dev/mtdblock2: unrecognised disk label Error: /dev/mtdblock1: unrecognised disk label Error: /dev/mtdblock0: unrecognised disk label My output of maemo-list-user-packages: advanced-backlight 0.14-3 user/Utilities 1140 advanced-power 0.3.0 user/other 354 aisleriot 1:2.21.5 user/games 2932 bash2 2.05b-1maemo3 user/tools 416 battlegweled 0.9-1 user/games 2276 blobby 0.6a-maemo4 user/games 1764 bluemaemo 0.1-1 user/multimedia 916 bzip2 1.0.4-2maemo5 user/tools 144 camera 3.5 user/multimedia 804 canola2 2.0.0~beta10-maemo2 user/multimedia 2604 canola2-tuning-plugin 0.2.0-maemo1 user/multimedia 172 canola2-youtube-plugin 0.2.0-maemo1 user/multimedia 312 claws-mail 3.6.0-3 user/email 7180 console-tools 1.7.7-8 user/support 8777 countdown-home 0.3-3 user/accessories 124 datejinni 0.1.20081201-1 user/tools 240 diskusage 0.2.20081201-1 user/tools 240 easy-deb-chroot 0.9.12 user/tools 626 eggtimer 0.4.2 user/other 248 emelfm2 0.4.1-rev28-chinook user/other 1320 evince 2.21.1-1.maemo8 user/accessories 2000 fbreader 0.8.17-1 user/tools 1172 fmradio 1.5.8 user/multimedia 380 fuse 2.7.3 user/tools 200 galculator 1.3.1-1 user/Utilities 776 garnet-vm 1.0.2b user/other 2944 gconf-editor 2.18.0-0.maemo1 user/tools 1596 givemefive 0.2.20081201-1 user/games 216 gnumeric 1.8.3-5maemo1 user/office 12848 gnutar 1.20-1maemo4 user/tools 1968 gnuzip 1.3.12-1maemo4 user/tools 236 gpe-calendar 2.8+maemo+svn20081212-3 user/office 536 gpe-contacts 2.8+maemo+svn20081212-3 user/office 536 gpe-todo 2.8+maemo+svn20081212-3 user/office 448 gworldclock 1.4.4-7maemo1 user/utilities 192 kmplayer 0.9.1-2 user/multimedia 676 large-statusbar-clock 0.7-7 user/accessories 188 lbreakout2 2.5.2-2.1maemo2 user/games 600 leafpad 0.8.14le-1maemo1 user/office 704 libfakekey0 0.1-3maemo1 user/libs 60 libillumination0 0.1.20081201-1 user/support 1872 libscim8c2a 1.4.7-1maemo1 user/libs 1196 libuiw 0.0.28 user/multimedia 196 libvlc0 0.9.0-test3-phytos-git20080830-diablo.2.n8x0 user/multimedia 1703 libzlibrary 0.8.17-1 user/libs 2072 maemo-recorder 0.2.0 user/multimedia 228 maemomind 0.6 user/games 884 maemopadplus 0.34-1 user/accessories 340 maemosweeper 0.2.0-8 user/games 1552 map 2.2.8.453-1 user/navigation 9628 matchbox-keyboard 0.1-3maemo2 user/utils 188 mathjinni 0.7.20081201-1 user/accessories 368 mc 1:4.6.2-pre1-1maemo3 user/tools 6380 mclock 0.5.6-2 user/other 376 mediabox 0.95 user/multimedia 1712 mplayer 1.0rc1-maemo.29.n8x0 user/multimedia 4752 nako 0.4.5-1 user/games 336 ntfs-3g 1.2310 user/tools 716 numptyphysics 0.2 user/games 512 osso-software-version-rx34-unlocked 1:5.2008.43-7 user/system osso-statusbar-cpu 0.6.1chinook1 user/misc 176 othello 0.2-2 user/games 380 panucci 0.2-5 user/multimedia 236 pengupop 2.2.4-0 user/games 1752 personal-launch 0.7-4 user/desktop 260 personal-menu 0.9-6 user/desktop 292 powerlaunch 0.8-4 user/tools 292 python-launcher 0.2osso2 user/programming 156 quiver 0.2.0-1 user/multimedia 1444 rootsh 1.4 user/tools 32 scim 1.4.7-1maemo1 user/utils 2760 scim-gtk2-immodule 1.4.7-1maemo1 user/utils 348 scim-modules-socket 1.4.7-1maemo1 user/utils 340 scim-pinyin 0.5.91-0maemo1 user/utils 5344 skype 1.7.113.22.2 user/multimedia 2580 stardict 2.4.8-maemo.r6 user/utils 596 stardict-common 2.4.8-maemo.r6 user/utils 680 stopwatch 0.2-2maemo4 user/office 124 switch-lxde 0.2.0 user/other 15 tennix 0.6.1+git20080924-maemo0 user/games 960 tipcalculator 1.3.0-5 user/tools 116 tomiku 1.0.1 user/games 544 tutorial-home-applet 0.5.3 user/support 3796 unrar 1:3.8.2-1maemo4 user/tools 260 unzip 5.52-14-maemo6 user/tools 284 usb-otg-plugin 0.0 user/other 140 videocamera 0.5.2 user/multimedia 856 xarchiver 0.4.6-7maemo2 user/tools 1184 xgalaga 0.0.7-1 user/games 1592 xmms 1:1.2.10+20070601-1-maemo.11.n800 user/sound 2000 xmmsctrl 1.9-3 user/sound 140 xword 1.0.9-2 user/games 292 yellownotes-applet-diablo 0.2 user/tools 72 |
Re: Introducing console-tools v1 (install-tools replacemement)
OK, how about this pton, can you run the following
Try just running sh <enter> pb <enter> If that also fails, try the following. export PATH=/root/.bin:$PATH scan.sh sh -x /root/.bin/clone.sh 2> output Send me the output after clone.sh completes |
Re: Introducing console-tools v1 (install-tools replacemement)
I have updated the deb with a few script fixes and to not have an issue with bash.
Now even if bash is installed, you can just run pb |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
whoami root for i in `ls -tr /dev/mmcblk[0-1]*`; do fdisk -l $i; parted $i print; Error: Can't have a partition outside the disk! Error: /dev/mtdblock4: unrecognised disk label Error: /dev/mtdblock3: unrecognised disk label Error: /dev/mtdblock2: unrecognised disk label Error: /dev/mtdblock1: unrecognised disk label Error: /dev/mtdblock0: unrecognised disk label Error: Could no stat device print - No such file or directory Retry/Cancel? |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
So you have not partitioned the disk yet? Is there data on the disk you need or are you ready to wipe it? If you want to clone, you must first use cfdisk to partition the disk so you can clone to the partitions you created. |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
run as root cfdisk /dev/mmcblk1 or if its internal run cfdisk /dev/mmcblk0 Create a small FAT partition and a linux partition. Note when you make a new partition it will default to Linux partition, highlight the partition, select type and change to FAT (06). Hopefully this will fix it for you |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
cfdisk /dev/mmcblk0 Fatal ERROR: Bad primary partition 0: Partition end Press any key to exit cfdisk |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
Seems like your SD card is corrupt??? |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
+ umount /SRC + umount /TRG + sclone.sh + cat /tmp/choice.tmp + export SOURCE= Can't make sub-window at (11,3), size (1,51). + test -z Can't make sub-window at (11,3), size (1,51). sh: make: unknown operand + tclone.sh grep: make: No such file or directory grep: sub-window: No such file or directory grep: at: No such file or directory grep: (11,3),: No such file or directory grep: size: No such file or directory grep: (1,51).: No such file or directory sh: jff: unknown operand BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) multi-call binary Usage: grep [-HhrilLnqvsoeFEABC] PATTERN [FILEs...] sh: ext: unknown operand + cat /tmp/choice.tmp + export TARGET= Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options. + test -z Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options. sh: Expected: unknown operand + rm -rf /tmp/choice.tmp + dialog --extra-button --yesno You have selected to clone all data on Can't make sub-window at (11,3), size (1,51). to Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options. \n \n Is this Correct?? \n \n Selecting yes will remove all data on Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options. 15 40 + EX=0 + test 0 = 3 + test 0 = 0 + mkdir /SRC + mkdir /TRG + test Can't make sub-window at (11,3), size (1,51). = /dev/mtdblock4 sh: make: unknown operand + mount Can't make sub-window at (11,3), size (1,51). /SRC BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) multi-call binary Usage: mount [flags] DEVICE NODE [-o options,more-options] + dialog --msgbox Mounting Can't make sub-window at (11,3), size (1,51). FAILED, perhaps there is a problem with previous mounting? Try rebooting and running again? 11 60 + umount /SRC + umount /TRG + pbmenu + exit |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
as root export PATH=/root/.bin:$PATH scan.sh cat /tmp/part.tmp Paste back /tmp/part.tmp |
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
/dev/mtdblock4 "Size:256MB Used: Free:AVAIL Type:jffs2" |
Re: Introducing console-tools v1 (install-tools replacemement)
Ok. I was able to reformat the internal memory. First I connected to my pc and formated it there then, I ran sfdisk from the device and reset the partition tables. I am going to try again from the top and see how that goes.
|
Re: Introducing console-tools v1 (install-tools replacemement)
Quote:
export PATH=/root/.bin:$PATH sh -x partition-finder.sh 2> output |
All times are GMT. The time now is 02:14. |
vBulletin® Version 3.8.8