Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
reinstalling grub
reinstalling grub
I have a dual-boot system (XP/Debian) and i've just reinstalled windows xp which erased grub. How can i boot into debian and how can i reinstall grub?
You used to be able to use installer CDs as rescue discs, I think that changed with sarge.
Use Knoppix or a similar Live CD - http://live.debian.net is getting good, you can just use the base version. Then sudo su to get root access, mount your Debian partition, use chroot <mountpoint> to chroot into it and then run grub-install (hd0). When you reboot Grub should be reinstalled.
Use Knoppix or a similar Live CD - http://live.debian.net is getting good, you can just use the base version. Then sudo su to get root access, mount your Debian partition, use chroot <mountpoint> to chroot into it and then run grub-install (hd0). When you reboot Grub should be reinstalled.
Start the Grub program from the live CD:
# grub
You will get a prompt like this:
grub >
Enter the root name (in Grub language) of where the Grub menu and config files are located. I am assuming the 2nd partition of the 1st HD:
grub > root (hd0,1)
Then install the grub loader in the boot partition
grub > setup (hd0)
and then exit grub and reboot
grub > quit
Note that if you do not know the your grub files are located, you can use this command:
grub > find /boot/grub/stage1
Grub has tab completion. When you are entering a command in Grub hit the tab key to see what the possabilities are.
Once you have gotten everything back together, make a grub floppy (or CD) in case you loose your bootloader again.
There is also an option of editing the XP bootloader. If you are interested do a search on it.
# grub
You will get a prompt like this:
grub >
Enter the root name (in Grub language) of where the Grub menu and config files are located. I am assuming the 2nd partition of the 1st HD:
grub > root (hd0,1)
Then install the grub loader in the boot partition
grub > setup (hd0)
and then exit grub and reboot
grub > quit
Note that if you do not know the your grub files are located, you can use this command:
grub > find /boot/grub/stage1
Grub has tab completion. When you are entering a command in Grub hit the tab key to see what the possabilities are.
Once you have gotten everything back together, make a grub floppy (or CD) in case you loose your bootloader again.
There is also an option of editing the XP bootloader. If you are interested do a search on it.
Debian Sys Admin
http://www.tldp.org/LDP/sag/html/index.html
http://www.tldp.org/LDP/sag/html/index.html