LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-29-2005, 11:54 AM   #1
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Unhappy 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
 
Old 06-29-2005, 12:08 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
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

Last edited by titanium_geek; 06-29-2005 at 12:09 PM.
 
Old 06-29-2005, 01:13 PM   #3
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
Read about editing grub.conf in the manual. It will be useful here.
 
Old 06-30-2005, 12:35 PM   #4
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 06-30-2005, 12:50 PM   #5
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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,
 
Old 06-30-2005, 12:52 PM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
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
 
Old 06-30-2005, 01:08 PM   #7
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Hi titanium_geek

now it doesn't work .. I am STUCK

HELLLLLLLLLLLLLLLLLLLLLLLLLLLP
 
Old 06-30-2005, 02:17 PM   #8
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
Ok, deep breath, tell us what you have done so far.

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

titanium_geek
 
Old 06-30-2005, 02:19 PM   #9
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 06-30-2005, 02:20 PM   #10
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
as aside note -- I need the old distbo for a project of mine
 
Old 06-30-2005, 02:26 PM   #11
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
Arrow 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.

Last edited by gnukish; 06-30-2005 at 02:37 PM.
 
Old 06-30-2005, 02:40 PM   #12
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 06-30-2005, 02:52 PM   #13
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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
Tux,

Last edited by tuxrules; 06-30-2005 at 02:53 PM.
 
Old 06-30-2005, 03:12 PM   #14
iris2000sa
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Cooool

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

Last edited by iris2000sa; 06-30-2005 at 03:25 PM.
 
Old 06-30-2005, 03:30 PM   #15
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Here's a tutorial for you. That can clear up some air.
 
  


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
dualboot woes (win2k and redhat9) evank Linux - General 0 01-18-2005 04:12 PM
dualboot xp and redhat 7.3 sernan Red Hat 2 09-26-2003 01:15 AM
DualBoot RedHat/Win98SE, HD Mounting Q? bannie Linux - Hardware 3 09-05-2003 02:20 AM
XP dualboot whit RedHat 7.2 eXor Linux - Newbie 6 03-26-2002 02:27 PM
???Xp dualboot with RedHat 7.2???? eXor Linux - Software 1 03-21-2002 07:26 PM


All times are GMT -5. The time now is 04:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration