當硬碟的 MBR 被愚蠢的 Windows 拿去時,執行下列動作可以把 grub 重新安裝到 MBR.
To get back our grub first stage boot, here a procedure you can use.
Boot from debian CD choosing linux2.4 kernel (default) Change to console 2 with alt + F2 keystrokes Make a new dir to mount the boot partition, for example /disk mount the root partition on /disk: mount /dev/hda2 /disk (This is /dev/hda2 on my system) Do a chroot to the root partition: issuing chroot /disk Run grub command to enter grub shell: grub Type in the root disk for grub, for example: root (hd0,1) Type the following command to install grub on /dev/hda: setup (hd0) Last step, type quit, exit from chroot, unmount all disks and reboot : quit
原文出處 : How to recover GRUB Debian Sarge after reinstalling Windows
Address : http://www.debian-administration.org/articles/325
沒有留言:
張貼留言