Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have done this but cannot figure it out. Reinstalling XP has overwritten the MBR. I dont know thats the commands that you need to type in using CD 1. Its Linux rescue or something else.
A detailed instructions/commands on this would be much appreciated.
You can easily restore grub using a live cd distro like knoppix or ubuntu live cd
Step 1: Log in a root console.
Step 2: Execute "grub".
Step 3: In the grub shell just type:
root (hd0, 3)
setup (hd0)
Where hd0 is your first hard disk and you have linux installed on the fourth partition of that disk (the first is numbered as 0), just change it to your settings.
Maybe you can find any problems while trying to restore grub, then come back with the message errors and tell us.
So you need to do it the way xukosky suggested. You can use the rescue system from your CD1.
Here is a nice grub manual: http://portal.suse.com/sdb/en/2002/0..._overview.html
It is written for SUSE sytems, but the commands should be the same in RedHat. The file menu.lst is called grub.conf in RedHat (AFAIK).
Make sure you know on which partition your kernel is located (this will be the above mentioned root).
1> Boot RH9 Disc 1 CD
2> Type in linux rescue at RH9 Disc 1 boot screen
3> Type chroot /mnt/sysimage at the rescue console
4> Type grub-install /dev/hda
5> type exit 2x with the CD ejected from the CDROM drive
6> Have fun with GRUB
Sorry for posting to an old thread but I spent 3hrs searching till I found this post which fixed my system after XP install wiped grub from my mbr.
For my sata drive I had to type
grub-install /dev/sda
-restore grub after windows install-
Insert fedora install dvd, select recovery mode.
After hardware/os detection you'll get a command prompt, run these commands:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.