LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-09-2006, 11:19 AM   #1
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Rep: Reputation: 30
Grub Disappeared When I Installed Windows Xp


I had SUSE 10 and Windows XP, I re-installed Windows XP then I didn't find the Grub! my pc boots to Windows only... How can I fix that?? I tried to boot from the SUSE CD 1 but I didn't find any repair option, only install and update...
I hope you can help
 
Old 05-09-2006, 11:36 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,675
Blog Entries: 1

Rep: Reputation: 204Reputation: 204Reputation: 204
That's because Windows is sooooo smart, it just knows you don't need Linux.

Here's how to get Linux back as a boot option:

1. Boot using a live-cd (Knoppix, Slax or SystemRescueCD)
2. Mount the linux partition
3. chroot the mounted partition
4. Install grub -> grub-install /dev/hda (or wherever you need it)
5. Edit grub.conf or menu.lst to chainload Windows.
 
Old 05-09-2006, 11:44 AM   #3
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Yes, Windows arrogantly ignores other operating systems that you have installed. However, it shouldn't have touched your linux installation (hopefully), just overwrote the mbr. Boot from your Suse install CD and switch to another terminal, there should be a few open. Run grub and reinstall it.

EDIT: Pipped to the post again. Arow replied while I was making some tea. Must get a beefier kettle.

Last edited by ioerror; 05-09-2006 at 11:46 AM.
 
Old 05-09-2006, 02:40 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Putting GRUB on a floppy avoids this annoyance. I keep meaning to move it to the mbr, but it works the way it is--so no motivation.
 
Old 05-09-2006, 03:25 PM   #5
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Original Poster
Rep: Reputation: 30
I have no Live CD, I used the SUSE Rescue system (an option on CD1), I logged as root
I tried to run grub-install /dev/hda8 (linux partition) but I got "/dev/root not a valid device"!!!
I tried to mount the /dev/hda8 to /mnt/tmp but I got "Format not recognized"
Can you help?
thanks
 
Old 05-09-2006, 04:27 PM   #6
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
I've had trouble trying to use grub-install, frankly I think it's a bit flaky. It's generally easier to run grub and install it from there, i.e.:
Quote:
root (hd0,7)
setup (hd0)
 
Old 05-11-2006, 01:26 AM   #7
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Original Poster
Rep: Reputation: 30
Thanks for your help, I solved it, the easiest solution is to use the first SUSE CD, select Installation, when the options (New or update) appear, select Repair from the other menu at the bottom and then select the Expert mode to install a new boot loader.
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual operating system: Grub dont detect Windows Xp installed in Sata Harddisk sanjeebko Linux - Hardware 2 04-05-2006 07:30 PM
Keeps loading straight to Windows (even with Grub installed) stugi Linux - Newbie 12 03-02-2006 08:49 AM
installed 2.6.11 kernel and cd-rom disappeared webazoid Linux - Software 1 05-15-2005 04:14 AM
GRUB is gone... After installed Windows... d_kote23 Linux - Newbie 9 08-27-2004 01:36 AM
GRUB has installed itself over Windows Gramphos Red Hat 3 09-25-2003 03:36 PM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration