linux_og_unix:clonezilla
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | linux_og_unix:clonezilla [2023/10/21 19:19] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[linux_og_unix: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Clonezilla ===== | ||
+ | |||
+ | Parameter brugt hos SuperUsers | ||
+ | |||
+ | < | ||
+ | ocs_live_keymap=" | ||
+ | locales=en_US.UTF-8 | ||
+ | ocs_prerun1=" | ||
+ | ocs_prerun2=" | ||
+ | ocs_prerun3=" | ||
+ | ocs_live_run=" | ||
+ | ocs_postrun1=" | ||
+ | ocs_postrun2=" | ||
+ | ocs_postrun3=" | ||
+ | ocs_postrun4=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | ocs-sr general options:< | ||
+ | -l, --language INDEX Set the language to be shown by index number: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | -b, -batch, --batch | ||
+ | -c, --confirm | ||
+ | -d, --debug-mode | ||
+ | --debug=LEVEL | ||
+ | -m, --module MODULE | ||
+ | -o0, --run-prerun-dir | ||
+ | -o1, -o, --run-postrun-dir | ||
+ | -w, --wait-time TIME Wait for TIME secs before saving/ | ||
+ | --nogui | ||
+ | -a, --no-force-dma-on | ||
+ | -mp, --mount-point MOUNT_POINT Use NFS to mount MOUNT_POINT as directory ocsroot (ocsroot is assigned in drbl.conf) | ||
+ | -or, --ocsroot DIR Specify DIR (absolute path) as directory ocsroot (i.e. overwrite the ocsroot assigned in drbl.conf) | ||
+ | -p, --postaction [choose|poweroff|reboot|command|CMD] | ||
+ | -ns, --ntfs-progress-in-image-dir Save the ntfsclone progress tmp file in the image dir so that if cloning is in DRBL client, the progress can be check in the server (Default in to be put in local /tmp/, which is local tmpfs). | ||
+ | -um, --user-mode [beginner|expert] | ||
+ | -v, --verbose | ||
+ | -d0, --dialog | ||
+ | -d1, --Xdialog | ||
+ | -d2, --whiptail | ||
+ | -d3, --gdialog | ||
+ | -d4, --kdialog | ||
+ | -x, --interactive | ||
+ | ocs-sr save options:< | ||
+ | -fsck-src-part, | ||
+ | -fsck-src-part-y, | ||
+ | -gm, --gen-md5sum | ||
+ | -gs, --gen-sha1sum Generate the SHA1 checksum for the image. Later you can use -cs|--check-sha1sum option to check the image when restoring the image. Note! It might take a lot of time to generate if the image size is large. | ||
+ | -j2, --clone-hidden-data Use dd to clone the image of the data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool. | ||
+ | -ntfs-ok, --ntfs-ok | ||
+ | -rm-win-swap-hib, | ||
+ | -q, --use-ntfsclone | ||
+ | -q1, --force-to-use-dd | ||
+ | -q2, --use-partclone | ||
+ | -rescue, --rescue Turn on rescue mode, i.e. try to skip bad sectors. | ||
+ | -sc, --skip-check-restorable By default Clonezilla will check the image if restorable after it is created. This option allows you to skip that. | ||
+ | -z0, --no-compress | ||
+ | -z1, --gzip-compress | ||
+ | -z1p, --smp-gzip-compress Compress using parallel gzip program (pigz) when saving: fast and small image file, good for multi-core or multi-CPU machine | ||
+ | -z2, --bz2-compress | ||
+ | -z2p, --smp-bzip2-compress Compress using parallel bzip2 program (pbzip2) when saving: faster and smallest image file, good for multi-core or multi-CPU machine | ||
+ | -z3, --lzo-compress | ||
+ | -z4, --lzma-compress | ||
+ | -z5, --xz-compress | ||
+ | -z5p, --smp-xz-compress Compress using parallel xz when saving: slow but smallest image file, faster decompression than bzip2. | ||
+ | -z6, --lzip-compress | ||
+ | -z6p, --smp-lzip-compress Compress using parallel lzip when saving: slow but smallest image file, faster decompression than bzip2. | ||
+ | -z7, --lrzip-compress | ||
+ | -i, --image-size SIZE Set the split image file volume size SIZE (MB). When ocs-sr is run with -x, the default SIZE is set as 2000, if without -x, we will not split it. | ||
+ | Three words are reserved for IMAGE_NAME, " | ||
+ | A word is reserved for DEVICE, " | ||
+ | </ | ||
+ | ocs-sr restore options:< | ||
+ | -g, --grub-install GRUB_PARTITION | ||
+ | -r, --resize-partition | ||
+ | -k, --no-fdisk, --no-create-partition | ||
+ | -icrc, --icrc | ||
+ | -irhr, --irhr | ||
+ | -ius, --ius Skip updating syslinux-related files on the restored GNU/ | ||
+ | -icds, --ignore-chk-dsk-size-pt Skip checking destination disk size before creating the partition table on it. By default it will be checked and if the size is smaller than the source disk, quit. | ||
+ | -k1, | ||
+ | -k2, Enter command line prompt to create partition table manually before restoring image. | ||
+ | -t, --no-restore-mbr Do NOT restore the MBR (Mater Boot Record) when restoring image. If this option is set, you must make sure there is an existing MBR in the current restored harddisk. Default is Yes | ||
+ | -u, --select-img-in-client Input the image name in clients | ||
+ | -e, --load-geometry Force to use the saved CHS (cylinders, heads, sectors) when using sfdisk | ||
+ | -e1, --change-geometry NTFS-BOOT-PARTITION Force to change the CHS (cylinders, heads, sectors) value of NTFS boot partitoin after image is restored. NTFS-BOOT-PARTITION can be one of "/ | ||
+ | -e2, --load-geometry-from-edd Force to use the CHS (cylinders, heads, sectors) from EDD (Enhanced Disk Device) when creating partition table by sfdisk | ||
+ | -y, -y0, --always-restore, | ||
+ | -y1, --always-restore-default-clone Let Clonezilla server as restore server, i.e. client will always has restore mode to choose (The default mode in PXE menu is clone, so if client boots, it will enter clone always, i.e. clone forever) | ||
+ | -j, --create-part-by-sfdisk Use sfdisk to create partition table instead of using dd to dump the partition table from saved image (This is default) | ||
+ | -j0, --create-part-by-dd Use dd to dump the partition table from saved image instead of sfdisk. ///Note/// This does NOT work when logical drives exist. | ||
+ | -j1, --dump-mbr-in-the-end Use dd to dump the MBR (total 512 bytes, i.e. 446 bytes (executable code area) + 64 bytes (table of primary partitions) + 2 bytes (MBR signature; # 0xAA55) = 512 bytes) after disk image was restored. This is an insurance for some hard drive has different numbers of cylinder, head and sector between image was saved and restored. | ||
+ | -j2, --clone-hidden-data Use dd to clone the image of the data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool. | ||
+ | -hn0 PREFIX | ||
+ | -hn1 PREFIX | ||
+ | --max-time-to-wait TIME When not enough clients have connected (but at least one), start anyways when TIME seconds since first client connection have pased. This option is used with --clients-to-wait | ||
+ | -cm, --check-md5sum | ||
+ | -cs, --check-sha1sum Check the SHA1 checksum for the image. To use this option, you must enable -gs|--gen-sha1sum option when the image is saved. Note! It might take a lot of time to check if the image size is large. | ||
+ | --mcast-port | ||
+ | A word is reserved for IMAGE_NAME, " | ||
+ | A word is reserved for DEVICE, " | ||
+ | </ | ||
+ | Eksempler: | ||
+ | To save or restore image in client (Only that DRBL client will join, and its local partitions is NOT mounted). NOTE!!! You should run the command in DRBL client or you have to make sure the target device is NOT busy!. | ||
+ | To save all the data in local first IDE harddrive ' | ||
+ | | ||
+ | To save the data in first and second partitions in local first IDE harddrive ' | ||
+ | | ||
+ | To restore image IMAGE1 to local hda. grub-install will be run after cloning (image IMAGE1 is already in DRBL server. NOTE!!! You should run the command in DRBL client or make sure hda is NOT busy/ | ||
+ | | ||
+ | To restore image first and second partitions from IMAGE2 to local hda1 and hda2. grub-install will be run after cloning (image IMAGE2 is already in DRBL server. NOTE!!! You should run the command in DRBL client or make sure hda is NOT busy/ | ||
+ | | ||
+ | To save disk(s)/ | ||
+ | | ||
linux_og_unix/clonezilla.txt · Last modified: 2023/10/21 19:19 by 127.0.0.1