View Full Version : use knoppix to save an existing installation
tsitras
08-09-2006, 03:13 PM
hi. i do have an installation of windows in partition 1 and debian sarge in partition 2. after a reinstallation of windows i lost grub since it wrote in the MBR. is there any way to use knoppix to boot and reinstall grub?if yes please tell me the process. i think it should become sticky.
ockham23
08-09-2006, 03:42 PM
This is from the Kanotix FAQ, but it should work with Knoppix too:
Windows overwrote my Bootsector. How can I reinstall Grub?
We assume there are 2 harddiscs in the PC: windows is installed on the first harddisc, and KANOTIX is installed on a partition on the second hd, e.g. on hdb5.
Now boot the Live-CD:
Open a Terminal and become root with $ sudo root.
Mount the partition where Kanotix is installed (in our example hdb5)
# mount /media/hdb5
Now rewrite Grub to MBR:
# grub-install --recheck --no-floppy --root-directory=/media/hdb5 /dev/hda
(for KANOTIX's version 2005-03 or older use mnt instead of media)
That's it!
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.