LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2004, 04:20 AM   #1
Bix
LQ Newbie
 
Registered: Aug 2003
Distribution: RH9
Posts: 27

Rep: Reputation: 15
Proper preparations for W2K/RH9 dual boot on same HD


Hello!

I have a 3-HD system where hda is to be a W2K/RH9 dual boot.

While installing W2K, I partitioned this drive so that Windows gets 50 GB, and 26 or so GB are left "free" for RH9.

Now, I am an absolute newbie (still!), so I am afraid of installing Linux on that free space, for fear that I may do something that will prevent me from booting up Windows again!

Can anyone with experience offer some tips?

Thanks!
 
Old 06-16-2004, 04:44 AM   #2
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Rep: Reputation: 15
In the installation it does ask you if you would like to delete any partitions to make room for linux. I remember it having something like "delete linux partitions", "delete all partitions", and "use free space".

If this is unpartitioned space we're talking about here, all you need to do is choose "use free space". It will use the remaining space to create all neccesary partitions for linux. Make sure to uncheck your other hard drives where it asks you what hard drives to use.

If you're really concerned about losing windows, just make a bootable floppy with fdisk on it (Bootdisk.com) and if the unspeakable happens, all you have to do is type 'fdisk /mbr' at the a: prompt.

If any problems arise, GRUB (the boot loader) is usually pretty easy to fix if it won't boot an OS.

Best of luck!
 
Old 06-16-2004, 04:48 AM   #3
Bix
LQ Newbie
 
Registered: Aug 2003
Distribution: RH9
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for your reply!

(As you see I am just sitting here hitting F5 all night...)

You mention GRUB, which I have heard others mention, but I don't know how to invoke it.

At what point during the boot process does one call up GRUB, and how?
 
Old 06-16-2004, 12:42 PM   #4
jtwhitehead
LQ Newbie
 
Registered: Jun 2004
Location: Boca Raton, FL
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Dear OEB,

Do you know any good links or documentation on how GRUB works?

I'm having a problem with a very simple dual-boot setup - Win98 on hda and Red Hat Linux 7.2 on hdb. I already have Win98 installed and working on hda. I install Red Hat Linux 72 on hdb, select GRUB as the boot loader, select to install this on the MBR, and everything appears to install flawlessly. However, when I reboot for the first time, I get the error "GRUB hard disk error". I can boot from the Linux rescue diskette, but where do I go from there?

Any help would be greatly appreciated!
 
Old 06-16-2004, 12:52 PM   #5
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
Quote:
Originally posted by Bix
Thanks for your reply!

(As you see I am just sitting here hitting F5 all night...)

You mention GRUB, which I have heard others mention, but I don't know how to invoke it.

At what point during the boot process does one call up GRUB, and how?
Grub is the bootloader, it will automatically load when u get past the bios checks at startup. From there you can choose which operating system to boot to. From there you can choose to go to windows or load linux.

Everytime you add a new kernel to your linux system, it will appear as an entry in grub.

[Bix]
If you are really afraid of repartitioning, may i suggest using partition magic from windows to create the ext2 and swap drives in advance, then simply select them in disk druid. This way allows you to have them ready to rock when u install. A lot easier, but at some point you'll have to work out how to use cfdisk. Do your research prior and you should be confident in doing this again.
 
Old 06-16-2004, 01:22 PM   #6
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Rep: Reputation: 15
@jtwhitehead:
If you could post your grub.conf file here, I'll take a look at it and see what's wrong. A friend of mine had trouble setting up his 2-HD system. Is this showing when GRUB just starts or when you try to boot an OS? To pull up grub.conf:

# gedit /boot/grub/grub.conf

Gedit should make it pretty easy to copy & paste here.
You could also try installing grub again which goes something like:

# /sbin/grub

grub> root (hd0,1)
grub> setup (hd0)

but I wouldn't try this until we confirm there's a real problem

Here's the RH official doc page for it. You'll also find a different way to install grub in there.

Last edited by OEP; 06-16-2004 at 01:25 PM.
 
Old 06-18-2004, 11:16 AM   #7
jtwhitehead
LQ Newbie
 
Registered: Jun 2004
Location: Boca Raton, FL
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
OEB,

I've been trying a different approach to dual-booting with two hard drives in order to not mess with the MBR. I've followed instructions in a couple of user manuals and online to install the boot manager (GRUB or LILO) in the first Linux partition (instead of the MBR). Then, after booting to Linux, copy the first 512Bytes of the boot partition to a floppy (e.g. "bootsect.lnx"), reboot to Windows, then copy from floppy to c:\. Then just modify the boot.ini file (Win2k or WinXP) to include the path - c:\bootsect.lnx="Linux".
It sounds simple and safe, but I encounter the SAME errors as when I tried to load GRUB or LILO to the MBR.
When I use GRUB, I get "GRUB hard disk error" just after rebooting and the BIOS checks (before I get a choice of OS's). With LILO, I get "L" on the screen or a bunch of "L"'s all running down the leftmost column.

Here is the GRUB file that I used with this method:

boot=/dev/hdb1
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd1,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hdb2 hdc=ide-scsi
initrd /initrd-2.4.7-10.img
title DOS
rootnoverify (hd0,0)
chainloader +1


And here is the LILO file that I used:

prompt
timeout=50
default=linux
boot=/dev/hdb1
map=/boot/map
install=/boot/boot.b
message=/boot/message
# linear #I tried with and without this line.

image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hdb2
append="hdc=ide-scsi"

other=/dev/hda1
optional
label=DOS

Thanks!
jtwhitehead
 
  


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
Dual-Boot with W2k? Boc_Mage Ubuntu 1 09-04-2005 01:40 AM
accessing linux on W2K-RH9 dual boot romanski Linux - Newbie 2 03-18-2005 05:27 AM
Monitor trouble in RH9/W2K dual-boot situation BixGomez Red Hat 3 03-01-2004 05:43 AM
Monitor trouble in RH9/W2K dual-boot situation BixGomez Linux - Newbie 0 02-28-2004 03:34 AM
proper way to dual-boot using grub bencpht Linux - General 7 09-05-2003 03:07 PM


All times are GMT -5. The time now is 11:58 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration