View Full Version : Can Knoppix be used to install grub in the MBR
cykick
06-01-2004, 02:09 AM
Can Knoppix be used to install grub in the MBR for recovery in case of a corrupted MBR, assuming that the same version of grub is also installed in the /boot/grub/ directory of a known boot partition? If yes, what might be the procedure?
knixkw
06-03-2004, 05:08 PM
Yes. Start grub. At the grub prompt type (for example):
root (hd2,0)
setup (hd2)
quit
The command root tells grub on which partition /boot/grub can be found. The command setup tells grub where to write the MBR.
After entering root (hd typing <TAB> shows the possible disks.
Good luck
mzilikazi
06-03-2004, 06:20 PM
Can Knoppix be used to install grub in the MBR for recovery in case of a corrupted MBR, assuming that the same version of grub is also installed in the /boot/grub/ directory of a known boot partition? If yes, what might be the procedure?
Well first of all....you don't need any partitions marked as bootable. ;) That's a DOS/ntldr thing. Secondly you don't need to have grub already installed.
It's easy. You need to mount your /root partition.
mount /dev/hda1 /mnt/hda1
grub-install --root-partition=/mnt/hda1
chroot /mnt/hda1
update-grub
ctrl+d
voila!
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.