通常您應參考開機載入器手冊頁面瞭解相應的程序。在 Acronis 網站上也有相應的知識庫文章。
下面的例子說明在將系統磁碟(磁碟區)復原到同一硬體時,如何重新啟動 GRUB。
mkdir /mnt/system/
mount -t ext3 /dev/sda2 /mnt/system/ # root partition
mount -t ext3 /dev/sda1 /mnt/system/boot/ # boot partition
mount -t proc none /mnt/system/proc/
mount -o bind /dev/ /mnt/system/dev/
cp /mnt/system/boot/grub/menu.lst /mnt/system/boot/grub/menu.lst.backup
或
cp /mnt/system/boot/grub/grub.conf /mnt/system/boot/grub/grub.conf.backup
vi /mnt/system/boot/grub/menu.lst
title Red Hat Enterprise Linux Server (2.6.24.4)
root (hd0,0)
kernel /vmlinuz-2.6.24.4 ro root=/dev/sda2 rhgb quiet
initrd /initrd-2.6.24.4.img
這些行以 title、root、kernel 和 initrd,分別確定:
chroot /mnt/system/ /sbin/grub
或
chroot /mnt/system/ /usr/sbin/grub
root (hd0,0)
setup (hd0)
結束
umount /mnt/system/dev/
umount /mnt/system/proc/
umount /mnt/system/boot/
umount /mnt/system/
reboot