LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help me dual boot properly please (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-dual-boot-properly-please-114971/)

iLLuSionZ 11-11-2003 05:59 PM

help me dual boot properly please
 
hey guys... i had redhat on a small drive and ran outta room so now im partitioning my 40 gig to dual boot and ive tried 3 times and still have problems...

can someone explain to me the order my os's should go?
i have xp corp
redhat 9.0

im not sure which one goes first for the boot loader to work right.:scratch:

toastermaker 11-11-2003 06:25 PM

I'm still an extreme newbie so check this with someone who knows thier stuff.

Search this site for "dual boot".

leukozyt 11-11-2003 06:35 PM

Hi,

i use dual boot too.
This are my settings:

Code:

$ cat /etc/lilo.conf
lba32
boot=/dev/hda
root=/dev/hda2
install=/boot/boot-menu.b
map=/boot/map
prompt
timeout=100
vga=normal
default=Linux
 
image=/vmlinuz
        label=Linux
        read-only
 
image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
 
# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
#      label=HURD
#      restricted
#      alias=3

other=/dev/hda1
  label="WinNT(hda1)"
 
other=/dev/hda8
  label="Windows(hda8)"

You have to edit this file.
look at
Code:

$ man lilo
and
Code:

$ man lilo.conf
MfG
leukozyt

fancypiper 11-11-2003 06:35 PM

Install Windows first, then Linux.

LILO mini HOWTO
Multiboot with LILO HOWTO
LILO, Linux Crash Rescue HOW-TO
Installing a bootloader
Multiboot with GRUB Mini-HOWTO
Linux+Win9x+Grub HOWTO

fancypiper 11-11-2003 06:37 PM

My grub.conf for your perusal
Code:

# Celeron 850 tinwhistle /boot/grub/grub.conf file
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/hda6
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat 7.3 Linux
        root (hd0,1)
        kernel /vmlinuz-2.4.20-18.7 ro root=/dev/hda6 hdd=ide-scsi
        initrd /initrd-2.4.20-18.7.img
title Mandrake 9.0 Linux
        kernel (hd0,6)/boot/vmlinuz-enterprise root=/dev/hda7 devfs=mount hdd=ide-scsi
        initrd (hd0,6)/boot/initrd-enterprise.img
title Gentoo Linux
        root (hd0,1)
        kernel (hd0,1)/boot/bzImage root=/dev/hda3 hdd=ide-scsi
title Windows 98 Sucky Edition
        rootnoverify (hd0,0)
        chainloader +1


iLLuSionZ 11-11-2003 07:57 PM

well i have xp corp on hdb1 and i have another partition for redhat thats hdb2 and a stuff drive for stuff..

i installed xp and then redhat before and it messed everything up.. it said grub is corrupted..
if i do that now how do i fix it?

can someone that has redhat and xp post me there grub.cfg file?
or should i use lilo ?

nro 11-11-2003 08:02 PM

Grub is just fine. I recommend using programs on windows(Partition Magic is the best IMO) to rearrange your HD partitioning. Don't let it format the newly created linux partition though(have red hat do this). Since your grub file is on your linux partition and you can't even get to the grub boot screen, use a boot disk(red hat can create this from the CD) and then mount your linux(from what I read, you have it on hdb1) partition and alter your grub. Please be more specific on the error that you are getting.

stonux 11-12-2003 05:32 PM

Make sure your /boot partition and Windows C: are located within the first 1023 cylinders.

A sample config looks like this:

Code:

  Device          Start    End    contents 
/dev/sda1            1        99    Linux /boot
/dev/sda2          100      1023  windows c:
/dev/sda5          1024      2201    Linux /
/dev/sda6          2202      2400    Linux swap
/dev/sda7          2401      4000  windows d:

according to the howtos, you have to dd the linux boot sector to an image file
and tell windows' boot.ini where to find it. lilo and grub might also write such
an image file.

One simple alternative to dual boot I did for friends is to make a linux boot floppy.
If they wanted to start Windows, remove the floppy while booting,
if they wanted to start linux, insert it.

iLLuSionZ 11-12-2003 06:25 PM

i dont knwo how i did it lol but i got it working properly.. its runnin smooth.. thanks guys

btw.. i just make a 7 gig / and a 2 gig /home with a 512 /swap.


All times are GMT -5. The time now is 01:46 AM.