BOOTCD2DISK(1) | bootcd utils | BOOTCD2DISK(1) |
NAME¶
bootcd2disk - copy a system running from bootcd to a disk
SYNOPSIS¶
- bootcd2disk [-i|-s|-m] [-d debug_runtime_config] -- [-h|--help]
- [-c|--conf CONF] [-y|--yes] [-url url] [--only_mount] [--only_unmount] [--only_copydata] [--only_sync] [-p|--only_print_options]] [-o|--use_originaldiskname] [-z|--zerodsk] [--variable_from_bootcd2disk.conf(5) value] [--function_from_bootcd2disk.conf(5) definition]
DESCRIPTION¶
bootcd2disk is used to write a running system to disk. It was originally used do write a running bootcd built with bootcdwrite to disk, but it is also possible to write a system directly to an attached disk.
The system can be copied to one or more disk partitions seen by the running system. When running from bootcd, it is possible to let bootcd2disk automatically find a disk, make partitions on it, copy the cd to the disk and make the disk bootable.
OPTIONS¶
-i|-s|-m|-d debug_runtime_config
-c|--conf CONF
CONF=/etc/bootcd/bootcd2disk.conf
-h|--help
-o|--use_originaldiskname
-y|--yes
-url url
The image server url is configured with this option. Example:
bootcd2disk -url http://192.168.1.1/cdimage.iso
Another way the increase the performance is the use of the mounted CD/DVD itself for the copy. Example:
bootcd2disk -url file:///dev/sdc0
The swap partition of the upcoming system must have enough space to get the whole image!
--only_mount
# prepare chroot mount --bind /dev /mnt/bootcd.disc/dev mount -t proc none /mnt/bootcd.disc/proc mount -t sysfs none /mnt/bootcd.disc/sys mount -t devpts none /mnt/bootcd.disc/dev/pts
# run update-grub in chroot chroot /mnt/bootcd.disc update-grub
--only_unmount
--only_copydata
-p|--only_print_options
Hint: This option may display more information about defined functions in a non-bash environment, if calling bash bootcd2disk -p ....
-z|--zerodsk
--variable_from_bootcd2disk.conf(5) value
--function_from_bootcd2disk.conf(5) definition
--only_sync
ENV¶
All variables, that can be given as OPTIONS or in the bootcd2disk.conf file, will not be taken form Environment variables.
Only the following variables will be set as Environment variables.
LUKS_PASSWD
SEE ALSO¶
bootcd(7), bootcdwrite(1), bootcdflopcp(1), bootcdmk2diskconf(1), bootcdwrite.conf(5), bootcd2disk.conf(5)
AUTHOR¶
bernd.schumacher@hpe.com
License: GNU General Public License, version 3
COPYRIGHT¶
Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
2020-08-07 | 0.1 |