LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2001, 10:25 PM   #1
marktaff
Member
 
Registered: Jun 2001
Location: Bellevue, WA (Seattle)
Distribution: SuSE 9.3-10.0
Posts: 53

Rep: Reputation: 15
GRUB Redhat 7.2 (Enigma) and Win2k dual boot


All,

I have a question about setting up Grub to dual boot Windows 2000 and Redhat 7.2.

I have both OS's installed. Windows boots fine automatically (no OS menu). Redhat boots fine with the boot disk.

The last system I set up this way I used LILO (in RH 7.1) and the bootpart utility, and that worked fine, but I decided to go with GRUB this time.

The question is: How do I get a boot menu to appear (using GRUB) so I can choose which OS to load?

Some relevant(?) details:

I did a custom RH install, put GRUB in first part of /boot (not MBR), no GRUB password.

Two hard drives:
Primary Master: 3.42GB Win System, 52MB /boot, and 4-650MB FAT32 partitions.
Primary Slave: 517MB Linux Swap, 3.51GB /

Any help would be greatly appreciated. Thanks.

Mark
 
Old 11-04-2001, 04:17 PM   #2
Ript
LQ Newbie
 
Registered: Aug 2001
Location: Ohio
Distribution: RH 7.2, Coyote linux 1.30
Posts: 12

Rep: Reputation: 0
simple...

Install GRUB to linux /boot partition, and use XOSL!

www.xosl.org. Its the best boot loader I can find, and its free!
 
Old 11-04-2001, 09:49 PM   #3
marktaff
Member
 
Registered: Jun 2001
Location: Bellevue, WA (Seattle)
Distribution: SuSE 9.3-10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks Ript! I'll check it out later when I'm sober (just came backfrom a birthday party). Thanks again. I'll post here FFR if it works and details how to do it.

Mark
 
Old 11-05-2001, 06:17 PM   #4
marktaff
Member
 
Registered: Jun 2001
Location: Bellevue, WA (Seattle)
Distribution: SuSE 9.3-10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Solution

All,

XOSL indeed appears to be a great bootloader, but was not the best solution for me, as it would have required repartitioning, reformating, and reinstalling both OS's.

Instead, I used the same procedure for GRUB as previously used for LILO, and it works great. See the original post for info on my hard disks.

For reference, during linux install, I chose to use GRUB instaed of LILO, and to put GRUB in the first part of /boot instead of in the MBR.

To get everything working right, here is what I did (all as root):

Boot into linux and get a command prompt (you have to use a boot disk to boot into linux at this point).

Type the following command, replacing "/dev/hda5" with the partition you made /boot:

dd if=/dev/hda5 of=/bootsect.lnx bs=512 count=1

This copies the first 512 bytes of the specified partition into the file bootsect.lnx

You will need to copy this file to your windows system drive root folder, in my case C: You can do this very easily if you have mounted your windows drive(s) in linux. Otherwise, copy it to a floppy, then boot into windows and copy it from the floppy to your windows system drive.

Once in windows, use notepad or another text editor and open C:\boot.ini

Windows will try and hide the file from you, but it is usually there.
Add the following line to the end of the file:

C:\bootsect.lnx="Redhat 7.2 Enigma"

Note that you can replace the text in quotes above with whatever text you want to appear in the windows bootloader menu list. Save your changes and close the file.

Open Start>>Settings>>Control Panel>>System. Click on the advanced tab, then click on Startup And Recovery. In the dialog box, you can choose the default OS to boot, and the timeout. Make any changes, then close the dialog box and reboot.

Choosing windows from NT's boot menu will load windows, and choosing linux will load GRUB. You can change GRUB's defaults (like you just did to windows) by editing the grub.conf file. Note that in GRUB, your menu choices are a zero-based list, meaning that the first menu item is #0, the second is #1, etc.

Set Default=N where N is the number of the OS you want to load by default.
Set Timeout=N where N is the number of seconds to wait before loading the default OS.

This solution worked for me; your milage may vary.

Mark
 
Old 11-06-2001, 11:20 PM   #5
Ript
LQ Newbie
 
Registered: Aug 2001
Location: Ohio
Distribution: RH 7.2, Coyote linux 1.30
Posts: 12

Rep: Reputation: 0
Cool....

I knew there was a way to use the NT/2k/XP boot loader to load linux. I systemed my drive with win98 before I installed 2k, so I installed XOSL on that drive, yes without a "DOS" partition, XOSL isnt a good soulution. Scince I have become used to using XOSL, I always install NT/2K/XP that way, first sys the drive with 98/95 boot disk. I also forgot this step on XP, and wenjt ahead and sys'ed it anyway, then ran a repair form the XP setup, but it pretty much did a total re-install, but I did end up witl all my same settings, etc except the video driver and then I had "DOS" on the drive also..................
 
Old 11-26-2001, 07:08 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I upgraded from 7.1 to 7.2 on my laptop that was happy with lilo on the MBR to boot both OS's.

Grub was a bit different at first, since it did not work.


I put the following bit into /etc/grub.conf


title Win2k
root (hd0,0)
makeactive
chainloader +1


Now it works perfect


I'll have to admit I was sweating there for a minute :-)


Last edited by DavidPhillips; 11-26-2001 at 07:12 AM.
 
Old 11-26-2001, 04:58 PM   #7
Ript
LQ Newbie
 
Registered: Aug 2001
Location: Ohio
Distribution: RH 7.2, Coyote linux 1.30
Posts: 12

Rep: Reputation: 0
lilo

Yea, I had Lilo but I wanted somthing 3rd party, so if I decide to change anything, it doesnt affect my boot loader. Sided Lilo is like text...
call be a GUI head...
 
Old 02-03-2002, 12:14 PM   #8
artemis
Member
 
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46

Rep: Reputation: 15
LILO instead of GRUB

I am running Red Hat 7.2 and installed GRUB into the laptop instead of LILO. I am having problems configuring X for my screen and the only instructions available for it involved using LILO and changing lilo.conf to boot into VGA mode. How can I do this in GRUB? Alternatively, how can I get LILO to install into the MBR instead of GRUB?

I reinstalled RH 7.2 and chose the LILO option, but every time I boot up it appears that LILo has not been written into the MBR and GRUB (from a previous installation) comes up instead.

Any help appreciated!

Artemis
 
Old 02-03-2002, 05:45 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
/etc/grub.conf

you will have a kernel line for each kernel like this

title Red Hat Linux (2.4.9-21)
root (hd0,0)
kernel /vmlinuz-2.4.9-21 ro root=/dev/md0 hdd=ide-scsi mem=nopentium vga=ask



add the vga=ask like I have here, when you find the setting you like change it to match
 
Old 04-16-2002, 04:24 AM   #10
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Rep: Reputation: 15
I currently have Win98 / Win 2K Advanced Server / RH7.2 on a single hard drive running from a RAID controller. I have GRUB installed to the MBR that either boots Linux or Windows.

When Windows is selected, the Windows 2000 multi-boot menu kicks in and allows you to select Windows 98 or 2000.

I guess I'm in the minority having GRUB in the MBR
 
Old 04-16-2002, 03:34 PM   #11
dkmy
LQ Newbie
 
Registered: Apr 2002
Posts: 10

Rep: Reputation: 0
dual booting

Hey there

I have got a simliar setup that seems to work fine I am dual booting redhat 7.2 with windows 98 and 2k I was told not to use grub for some reason i don't know why, So I have been using lilo and it works fine.

Lilo is on my /boot partition

Last edited by dkmy; 04-16-2002 at 03:36 PM.
 
Old 04-16-2002, 05:27 PM   #12
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
Cool Lilo vs Grub

Hi guys. Well since this is a decussion between the two boot loaders Grub and lilo I just wanna give a little info.
I think Lilo is a wonderful bootloader, it usually always works correctly. The problem, which I am a witness of, is how easy it is to break into your computer and gain root access when you have lilo installed in your MRB. If you guys recall, lilo has like a 5 second period in which is lets you choose which OS to boot into. If you use what they call "legacy" lilo you get the nice gui lilo splash screen, and if you recall at the bottom left side it says to press ctrl+x if you want to input a command into the lilo prompt. Well, that is the main problem since when you get that prompt you only need 2 steps to gain root access to that linux box.
Anyway, this is the reason why I decided to change from lilo to Grub. However, i am not sure how much secure Grub is than lilo, and if you ask me, I would be reluctant to say a whole lot more but I think is at least less simple to gain root access than it is using lilo. They both are great bootloaders independet from how secure they are though.

zLinuxz,
 
Old 04-18-2002, 02:36 AM   #13
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
grub install

/sbin/grub-install /dev/hd<n> #n being where you want it.

On the primary I assume.

#add
title Win2k
root (hd0,0)
makeactive
chainloader +1
#to /etc/grub.conf
 
Old 04-18-2002, 10:14 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think you must also rely on physical security.

What's to stop someone with a floppy disk if they know your boot password or reset your bios?
 
Old 04-19-2002, 12:40 AM   #15
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
boot pass

Well why would I give out my boot passwd?
I can also set one on the bios, and disallow booting from floppy or cd. Then again I agree. There must be some level of physical security. In fact I agree whole heartedly. Because security is a practice, not a technology. It's more of a series of technologies.

Security is like a castle. There is a stronghold. With lookouts in the towers, and a rampart or two. Accessed only by a drawbridge over a moat with crocodiles....on on a steep ridge....

I actually have an old 486 with a lock on it. It protects the power and reset buttons. I guess you can unplug it...but plugging it back in doesn't start it up.

I feel off topic. I wonder if marktaff acheived the config he desired.
 
  


Reply



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
Problems with GRUB/Dual boot with win2k server kcommins Linux - Laptop and Netbook 2 09-22-2005 05:00 AM
grub dual boot redhat 8/win2k problem bsriveria Red Hat 1 02-10-2005 08:18 AM
Fedora + Win2k Dual Boot ( using GRUB) peregrin Fedora - Installation 1 02-11-2004 06:54 AM
RH 7.2 Win2K dual boot Grub freezes? speerstra Linux - Software 0 03-23-2002 09:05 AM
Dual boot Redhat 7.2 and Win2k eduvall Linux - Software 9 02-11-2002 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration