Weblog entry #1 for nasser
#1
Reinstalling Grub
Posted by nasser on Sun 24 Jun 2007 at 10:15
* Boot from debian CD
* 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.
* Do a chroot to the root partition: issuing chroot /disk
* Run grub command to enter grub shell
* Type in the root disk for grub, for example root (hd0,1). This is /dev/hda2 on my system
* Type the following command to install grub on /dev/hda: setup (hd0).
* Last step, type quit, exit from chroot, unmount all disks and reboot
* 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.
* Do a chroot to the root partition: issuing chroot /disk
* Run grub command to enter grub shell
* Type in the root disk for grub, for example root (hd0,1). This is /dev/hda2 on my system
* Type the following command to install grub on /dev/hda: setup (hd0).
* Last step, type quit, exit from chroot, unmount all disks and reboot
Comments on this Entry
I think steps 6-8 above can be replaced with
grub-install /dev/hda2
[ Parent | Reply to this comment ]
Posted by Anonymous (77.237.xx.xx) on Wed 27 Jun 2007 at 06:44
no , it doesn't Work !!!
[ Parent | Reply to this comment ]