一般而言,应从启动加载器的用户指南上查阅正确的操作方法。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