mount -l /dev/sdb1 /mnt/gentoo
De directory /mnt/gentoo staat al op de RescueCD. Aan die directory wordt dan /dev/sdb1 (jouw USB schijf) gemount.
Dan maak je een image met het commando:
partimage save -z1 -c -o /dev/sda5 /mnt/gentoo/NAAM-IMAGE
Je start hiermee Partimage op met de volgende parameters: -z1 (comprimeert de image aanzienlijk, bij mij bijv van +/- 2 GB naar < 700 mb), -c voor het overrslaan van de partitiecheck en -o voor het automatisch overschrijven van een bestaande image. Je slaat op deze manier een aantal menu's over die je dan niet hoeft in te vullen. Die menu's die je dan krijgt spreken voor zichzelf (zie de link onderaan naar het partimage handbook voor schermfoto's)
Terugzetten in jouw situatie:
mount -l /dev/sdb1 -l /mnt/gentoo
partimage restore NAAM-IMAGE.000 /dev/sda5
Hier een aantal opties:
Options:
* -z, --compress (image file compression level):
-z0, --compress=0 don't compress: very fast but very big image file
-z1, --compress=1 compress using gzip: fast and small image file (default)
-z2, --compress=2 (compress using bzip2: very slow and very small image file):
* -c, --nocheck don't check the partition before saving
* -o, --overwrite overwrite the existing image file without confirmation
* -d, --nodesc don't ask any description for the image file
* -V, --volume (split image into multiple volumes files)
-VX, --volume=X create volumes with a size of X MB
* -w, --waitvol wait for a confirmation after each volume change
* -e, --erase erase empty blocks on restore with zero bytes
* -m, --allowmnt don't fail if the partition is mounted. Dangerous !
* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file
* -h, --help show help
* -v, --version show version
* -i, --compilinfo show compilation options used
* -f, --finish (action to do if finished successfully):
-f0, --finish=0 wait: don't make anything
-f1, --finish=1 halt (power off) the computer
-f2, --finish=2 reboot (restart the computer):
-f3, --finish=3 quit
* -b, --batch batch mode: the GUI won't wait for an user action
* -BX, --fully-batch=X batch mode without GUI, X is a challenge response string
* -y, --nosync don't synchronize the disks at the end of the operation (dangerous)
* -sX, --server=X give partimaged server's ip address
* -pX, --port=X give partimaged server's listening port
* -g, --debug=X set the debug level to X (default: 1):
* -n, --nossl disable SSL in network mode
* -S, --simulate simulation of restoration mode
* -aX, --automnt=X automatic mount with X options. Read the doc for more details
* -UX --username=X username to authenticate to server
* -PX --Password=X password for authentication of user to server
Hier trouwens het partimage handbook:
http://orgs.man.ac.uk/documentation/partimage/index-3.htmlen hier nog een andere nuttige site:
http://www.digitalissues.co.uk/html/os/misc/partimage.htmlIk gebruik partimage op deze manier dagelijks en heb meerder Ubuntu/Kubuntu installaties op mijn 4e partitie staan. Kan op deze manier heel vlot overschakelen van puur Ubuntu naar puur Lubuntu, van Feisty naar Gutsy enz. Ik heb omgeveer 8 systemen als partimage image op die partitie staan. Werk nu op dit moment met Ubuntu Gutsy, maar kan met de Systemrescue CD/partimage binnen 10 minuten Kubuntu-feisty hebben draaien.
PS... Ik zie dat ik maar de helft van je vraag heb beantwoord. Fat32 is niet bevorderlijk, zeker niet als je grote images gaat maken. Beter kun je met de Systemrescue CD kaal opstarten (dus zonder aparte parameters als fb800 o.i.d.) en op de commandline het commando startx geven. Je komt dan op een FWVM systeem terecht waar je o.a. Gparted tegenkomt. Hiermee kun je jouw USB disk zodanig indelen dat je die in tweeën deelt, en het nieuwe deel als Ext3 kunt formatteren. Dit wordt dan voor partimage
mount -l /dev/sdb2 /mnt/gentoo
en de rest van mijn verhaal.