Re: SV: Bootloader lost after lightning struck my computer and forced me to reinstall Windows XP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marie-ThÃrÃse Lorentzen wrote:

Can I reinstall grub without completely reinstalling Linux?


Yes. (I seem to need to do this on a fairly regular basis, I don't know why :-)

Boot a rescue disk or similar and do what ever is necessary to do a "chroot" -- booting the CD as a rescue disk does this by default, the sysadmin rescue disk offers it as a choice. Anyway, then do

chroot /mnt/sysimage

and

grub-install '(hd0)'

This will put the grub boot sector back. You can also do

grub-install '(fd0)'

which will put a boot sector on a floppy. The rest of the boot (the kernel and whatnot) still comes from the hard disk, but it's a useful floppy to have around when you're installing Windows as it gives an easy way back into Linux without having to go through booting a rescue disk -- once you're running Linux again you can just "grub-install '(hd0)'" to re-install the grub boot sector.

jch


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux