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
 
Search this Thread
Old 07-21-2003, 07:41 PM   #1
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Rep: Reputation: 15
ran grub-install, no longer sure how to boot windows


I have one drive, split in half, first half is NTFS (win2k) and second is my linux + swap. I ran grub-install /dev/hda1, wanting to remove the windows boot loader, now grub loads first (before the windows boot loader did), but I can't load windows. I have 3 other kernels that load fine.

I've tried this from a similiar thread:

rootnoverify (hd0,0)
makeactive
chainloader (hd0,0)+1
boot

but that doesn't work.

I've read how Windows likes to be first on the drive, and about using these commands:

map (hd0) (hd1)
map (hd1) (hd0)

But I don't think it matters since I only have one drive.

If anyone can point me in the right direction, much thanks.

Gol
 
Old 07-21-2003, 08:26 PM   #2
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Original Poster
Rep: Reputation: 15
More info:

my fdisk -l:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1084 8707198+ 7 HPFS/NTFS
/dev/hda2 1085 2432 10827810 5 Extended
/dev/hda5 1085 2307 9823716 83 Linux
/dev/hda6 2308 2432 1004031 82 Linux swap

I ran grub-install /dev/hda1, which I am guessing was a mistake. I thought I could mirror my desktop machine config which loads grub first, then when I select DOS, loads windows2k.

2 problems are that I don't have floppy (laptop) and have no idea how to boot windows to where I can run fdisk /fixmbr?

Any tips? I guess the problem is I overwrote the first sectort on /dev/hda1 with grub? Is there any way to fix this within Linux?
 
Old 07-22-2003, 10:51 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to install GRUB in the MBR:
Code:
grub-install /dev/hda
To boot windows2000 from GRUB:
Code:
title Windows2000
rootnoverify (hd0,0)
chainloader +1
 
Old 07-22-2003, 02:03 PM   #4
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Yes I know how to do that. My problem is I am pretty sure I typed "grub-install /dev/hda1", which I would believe overwrote the neccesary info on the win2k partition (/dev/hda1) to boot itself. Is there any way to fix this?

Gol
 
Old 07-22-2003, 02:35 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
With the Windows2000 CD, you could try to boot it and use the Repair System option.
Although I don't remember if the win2k CD has the option, it should.

Once done, you use the RedHat 9.0 CD to boot into Rescue mode and re-install GRUB back into the MBR.

RedHat Rescue Mode
http://www.redhat.com/docs/manuals/l...mode-boot.html
 
Old 07-22-2003, 02:47 PM   #6
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Rep: Reputation: 15
more specifically with the 2000 cd go into the recovery console. type "fixboot" and then type "fixmbr" and then do what mathieu said. :-)
 
Old 07-23-2003, 11:15 AM   #7
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the help.

After booting with my laptop's win2k CD (a normal win2k pro cd wouldn't work for some reason), I went to the recovery console and ran fboot which then wrote to boot sector of c:

I didn't run fixmbr because I figured then it would be untouched and grub would run fine. However GRUB froze after printing GRUB. I booted up with my Knoppix cd and ran grub-install to /dev/hda and now I'm set up.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 12:53 PM
recovering from grub-install /dev/hda1 deleting windows XP boot loader Steve Mading Linux - Software 7 02-22-2010 07:53 PM
FreeBSD didn't install, i can no longer boot into Windows diesel_travis *BSD 5 03-28-2004 05:27 PM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM


All times are GMT -5. The time now is 07:20 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