Bootfiles clonezilla
boot/grub.cfg
syslinux/isolinux.cfg
syslinux/syslinux.cfg
menuentry "Clonezilla Unattended Restore"{
search --set -f /live/vmlinuz
fakebios
linux /live/vmlinuz boot=live config noswap nolocales edd=on nomodeset ocs_prerun="mount /dev/sda2 /home/partimag" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -b -r -j2 -p poweroff restoredisk IMAGENAME-IMG mmcblk0" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="no" ocs_lang="en_US.UTF-8" vga=788 ip=frommedia nosplash
initrd /live/initrd.img
}
lsblk will list all block devices. It lends itself well to scripting:
$ lsblk -io KNAME,TYPE,SIZE,MODEL
KNAME TYPE SIZE MODEL
sda disk 149.1G TOSHIBA MK1637GS
sda1 part 23.3G
sda2 part 28G
sda3 part 93.6G
sda4 part 4.3G
sr0 rom 1024M CD/DVDW TS-L632M
lsblk is present in util-linux package and is thus far more universal than proposed alternatives.
No Comments