PDA

View Full Version : grub2 add entry restore dd



pacecal
December 17th, 2017, 08:52 PM
With dd if=/srv/boot.img of=/dev/sda1 i can make an image. With dd if=/srv/boot.img of=/dev/sda1 i can restore an image.

Is it possible to add an entry in the grub2 menu to restore an image?

yancek
December 17th, 2017, 10:40 PM
Is it possible to add an entry in the grub2 menu to restore an image?

You can put an entry in the /boot/grub/grub.cfg file 'boot' a restored image but you can't restore it with grub because grub is just a bootloader. Do you have another OS with grub2 installed?

Creating an image would be done with: dd if=/dev/sda1 of=/srv/boot.imgi