LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-08-2004, 11:13 AM   #1
J.Q. Monkey
Member
 
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Rep: Reputation: 15
Grub packed up and left


In what I thought would be a simple way to do things I used a windows xp install disk to set up a partition out of some unused/unpartitioned hard drive space, then exited the setup program. The thing is, I think it overwrote the MBR and now the machine boots straight into Windows. I did make a boot diskette for linux, but I'm setting this machine up for my boss, and I don't think he'd be overly joyed about using the start up disk.

How can I fix the mbr to use grub?

Thanks for the help.
-Matt
 
Old 01-08-2004, 11:23 AM   #2
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
Boot into linux with the boot disk. Then in terminal as root do

grub-install /dev/hda

to put grub on the MBR of the Master Harddrive on the first IDE channel. Then edit menu.lst in /boot/grub/ (may be called different ..grub.conf) to boot the windows partition.

-Zero

Last edited by Zero-0-Effect; 01-08-2004 at 04:50 PM.
 
Old 01-08-2004, 11:44 AM   #3
J.Q. Monkey
Member
 
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Original Poster
Rep: Reputation: 15
That did it. Thanks for the quick reply
 
Old 01-08-2004, 03:21 PM   #4
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
Glad I could help.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's this: __attribute__((packed)) frankli Programming 19 09-13-2012 11:08 PM
machine doesn't boot now ... just GRUB in upper left; installed redhat9 on hdb ppayton Red Hat 2 11-19-2004 01:43 AM
Only grub left..? Lillan Linux - General 20 04-07-2004 12:18 PM
Only grub left..? Lillan Linux - Newbie 3 04-06-2004 01:09 PM
Diald and mysterious packed daja58 Linux - Networking 0 12-02-2000 05:20 PM


All times are GMT -5. The time now is 03:19 PM.

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