LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DualBoot RedHat9 and RedHat 7.3 How to? (https://www.linuxquestions.org/questions/linux-newbie-8/dualboot-redhat9-and-redhat-7-3-how-to-338405/)

iris2000sa 06-29-2005 10:54 AM

DualBoot RedHat9 and RedHat 7.3 How to?
 
Hi

I have one IDE hard disk (160GB) .so I installed RedHat 7.3 on the first partition and then installed Redhat 9 on the other partition ... but unfortunatly the Grub only shows Radhat 9 partition .. so how can I adjust GRUB so I can boot either RH9 or RH7.3.

with all thanx

titanium_geek 06-29-2005 11:08 AM

checkout this grub manual, it will help you a bunch.
http://www.gnu.org/software/grub/manual/grub.html

umm... so, simply put, you need to modify your menu.lst - adding another item that points to RH7.3

post back if you have trouble.

titanium_geek

EDIT: grub is wierd in this regard: it doesn't name the harddrives the way linux does. Therefore, hda1 is hd0, 0 and hda2 is hd0, 1

gnukish 06-29-2005 12:13 PM

Read about editing grub.conf in the manual. It will be useful here.

iris2000sa 06-30-2005 11:35 AM

not working :(
 
Hi

this is me again ... I read the Grub manual .. I tried to fix some things and here is my grub that does not work :(

# grub.conf generated by anaconda
#
# 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,4)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8smp)
root (hd0,4)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/1 hdc=ide-scsi
initrd /initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-8)
root (hd0,4)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1 hdc=ide-scsi
initrd /initrd-2.4.20-8.img

#this bit I have added but it does not seem working :(
title Red Hat Linux 7.3
root (hd0,1)
kernal /vmlinuz ro root=LABEL=/1 hdc=ide-scsi

# and this is my fdisk -l
Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6 48163+ 83 Linux
/dev/hda2 7 8929 71673997+ 83 Linux
/dev/hda3 8930 9059 1044225 82 Linux swap
/dev/hda4 9060 19929 87313275 f Win95 Ext'd (LBA)
/dev/hda5 9060 9072 104391 83 Linux
/dev/hda6 9073 19799 86164596 83 Linux
/dev/hda7 19800 19929 1044193+ 82 Linux swap

# and this is my df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 81G 1.8G 76G 3% /
/dev/hda5 99M 15M 80M 16% /boot
none 251M 0 251M 0% /dev/shm


...So any help pleeeeeeeeeeeeeeeeeese ..


Thanx
:confused:

tuxrules 06-30-2005 11:50 AM

Code:

title Red Hat Linux 7.3
root (hd0,1)
kernal /vmlinuz ro root=LABEL=/1 hdc=ide-scsi

change root (hd0,1) to root(hd0,0)

Tux,

titanium_geek 06-30-2005 11:52 AM

my suggestion would be to remove that stuff you added to the grub.conf and mess with the menu.lst . The menu is what you are going to see.
Code:

##Grub menu conf!
#boot the first option in 20 seconds as the default
default=0
timeout=20
#boot RH7
title Red Hat 7
root(hd0,0)
kernel /boot/vmlinuz ro root=/dev/hda1
#boot RH9
title Red Hat 9
root(hd0,1)
kernel /boot/vmlinuz ro root=/dev/hda2
##that's it! end

you might need to make some minor tweaks to get this up on your system... this is how it worked for me...

titanium_geek

iris2000sa 06-30-2005 12:08 PM

Hi titanium_geek

now it doesn't work .. I am STUCK :(

HELLLLLLLLLLLLLLLLLLLLLLLLLLLP:eek:

titanium_geek 06-30-2005 01:17 PM

Ok, deep breath, tell us what you have done so far.

as a side note- why are you running such old distros?

titanium_geek

iris2000sa 06-30-2005 01:19 PM

Hi

I managed to overcome Grub disapper as follows:
When the grub menu appeard I pressed 'c'
then I got the grub command prompt
grub> I typed the following
grub>root (hd0,0)
grub> setup (hd0)

then it says sucess ..and I reboot the system RH 7.3 now is the active OS but no more RH9 .... So back to the drawing board .. how can I setup GRUB??

Thanks

iris2000sa 06-30-2005 01:20 PM

as aside note -- I need the old distbo for a project of mine :)

gnukish 06-30-2005 01:26 PM

Hope this helps
 
Code:

title Red Hat Linux (2.4.20-8smp)
 root (hd0,0)
 kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/1 hdc=ide-scsi
 initrd /initrd-2.4.20-8smp.img

 title Red Hat Linux-up (2.4.20-8)
 root (hd0,4)
 kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1 hdc=ide-scsi
 initrd /initrd-2.4.20-8.img

Code:


In linux, the devices are identified by grub/lilo bootloader as follows

Device Boot Start End Blocks Id System
-----------------------------------------------
 /dev/hda1 * 1 6 48163+ 83 Linux        ======>0
 /dev/hda2 7 8929 71673997+ 83 Linux ======>1
 /dev/hda3 8930 9059 1044225 82 Linux swap ======>2
 /dev/hda4 9060 19929 87313275 f Win95 Ext'd (LBA) ======>3
 /dev/hda5 9060 9072 104391 83 Linux        ======>4
 /dev/hda6 9073 19799 86164596 83 Linux  ======>5
 /dev/hda7 19800 19929 1044193+ 82 Linux swap ======>6

I think, this should fix it for you. You can get back to me , if this doesn't work. :Pengy:

iris2000sa 06-30-2005 01:40 PM

Hi

unfortunatly the Grub for RH9 is not accessibale anymore ... I have the Grub for RH7.3 which is as follows:

# grub.conf generated by anaconda
#
# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux 7
root (hd0,0)
kernel /vmlinuz-2.4.18-3smp ro root=/dev/hda2 hdc=ide-scsi
title Red Hat Linux 9
root (hd0,4)
kernel /vmlinuz ro root=/dev/hda2 hdc=ide-scsi

notice that I tried to change redhat 9 boot to root (hd0,4) but while booting it says something about initrd and memory
I realy don't remmber the error...

so any suggestions

thanx

tuxrules 06-30-2005 01:52 PM

Quote:

notice that I tried to change redhat 9 boot to root (hd0,4) but while booting it says something about initrd and memory
That's because you didn't include initrd image in your RH 9 grub entry. Quoting from your earlier post...

Quote:

title Red Hat Linux-up (2.4.20-8)
root (hd0,4)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1 hdc=ide-scsi
initrd /initrd-2.4.20-8.img -----> initrd image
You need to add that initrd line in your "new" grub config file...
Edit: obviously, you are not suppose to include "-------> initrd image" in the config file...its just a pointer :D
Tux,

iris2000sa 06-30-2005 02:12 PM

Cooool :cool:

the following tweak has really worked ...But how could it ..any explination for what happinging?

# grub.conf generated by anaconda
#
# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux 7
root (hd0,0)
kernel /vmlinuz-2.4.18-3smp ro root=/dev/hda2 hdc=ide-scsi
title Red Hat Linux 9
root (hd0,4)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1 hdc=ide-scsi
initrd /initrd-2.4.20-8.img

--------------------------------

I mean how does Grub found vmlinuz-2.4.20-8 and the img file ... I am sure I have mounted RH9 parition inside RH7.3
but I didnt' found them .. I search for them in the /boot but without any hope ... so How come it can now load RH9
while there is no img nor vmlinuz files realy exists ...so any expliantion to the GRub file please..

Thanks all for ur fruitfull contrbitions :)

tuxrules 06-30-2005 02:30 PM

Here's a tutorial for you. That can clear up some air.


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