LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2004, 08:34 PM   #1
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Rep: Reputation: 30
dual boot Redhat and Suse


I already have redhat 9 installed, but wanted to try another distor. Is it possible to install suse after the fact as a dual boot?
 
Old 12-05-2004, 08:53 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Yes, but you'll have to make a decision over which boot loader you want to use. The easiest thing would be to just click 'ok' and let Suse overwrite Grub - it'll almost certainly add an entry for Redhat. If not, just go in to the settings in Yast and add one.

Or, if you're fond of the Redhat boot loader, click 'no' when Suse asks if you'd like a Grub/Lilo entry written, and then afterwards go into the Redhat config gui/textfile and add an entry for Suse.

Either way will work.
 
Old 12-06-2004, 06:25 AM   #3
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks for the reply,

I started the process then stoped because I was having trouble understanding what I was looking at with the partitioning part of the install. How should I go through thte partitioning section? Do I tell it not to partition the drives, and then tell it where to install? Thanks again for the help.
 
Old 12-06-2004, 03:23 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Do you have any free space available on your drives, or does Redhat take it all up ?

If you have some free space, just get Suse to partition and format as much of the free space as you wish to use, and carry on as normal. You should see both the existing partitions for Redhat (probably hda1, hda2, formated as ext3 and swap etc. - Don't change these ones). You may have to experiment a little with the options.

If you don't have any free space on your drive, you'll either need to resize the existing partitions (depending on what they're formatted as, this could be either trivial or a bit annoying), or beg/borrow/buy another drive to use.

Good luck
 
Old 12-06-2004, 04:19 PM   #5
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
I can definitely find some room on one of the partitions. I could move the stuff on the hda5 partition and use that entire space. How does the partition then look? Does hda5 then have a root partition and a swap? Also how does this work with the boot paritition. I am showing my ignorance of partitions now, but does the boot partition just have the boot loader? I appreciate your help so i don't re-format my drive.
 
Old 12-06-2004, 04:33 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Depends a bit on where you've put your boot loader, but the simplest configuration would just to have one (bootable) root parition for Suse, eg. hda5, and use the existing swap partition for both Redhat and Suse.

If in doubt, you may want to back anything important up, but personally I've never lost anything when installing a multiboot setup.
 
Old 12-06-2004, 10:23 PM   #7
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
I managed to get everything installed and it looks like I didn't erase anything, which is good, but now I am having boot loader troubles. My previous instillation was RedHat 9, and I just installed Suse 9.1. I am using the grub boot loader, which resides in the /boot/grub on the suse's partitions. I couldn't get them both to share the same root for some reason. I may re-install and try that later. But anyway, here is my menu.1st file:

# Modified by YaST2. Last modification on Tue Dec 7 02:13:11 2004


color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,4)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Suse
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 vga=0x314 splash=silent desktop resume=/dev/hda3 showopts
initrd (hd0,4)/boot/initrd

##RedHat##
title RedHat
kernel (hd0,0)/vmlinux-2.4.20-8 root=/dev/hda1 hdc=ide=scsi
##ro root=LABEL=/ hdc=ide=scsi
initrd (hd0,0)/initrd-2.4.20-8.img

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
root (fd0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
initrd (hd0,4)/boot/initrd

As you can see the first loader menu is the Suse, which works fine. The second is my writing for Redhat. I get the error (Error 13: not an executable). I have mounted and looked at /vmlin** on my /dev/hda1, and it is there.

Any suggestions?
 
Old 12-07-2004, 03:03 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Just to check, but it is definitely meant to be vmlinux-2.4.20-8 and not vmlinuz, in your Redhat entry ?

/vmlinuz (or /vmlinuz-x.y.z) are usually just a symbolic links to the current kernel in /boot/vmlinux-x.y.z.i686

Last edited by mjrich; 12-07-2004 at 03:34 PM.
 
Old 12-07-2004, 04:58 PM   #9
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
That seemed to fix it, just a syntax error, but now I get:

kernel panic: no init found
try passing init= option to kernel

When I look at my files, I see the initrd-kernelVersion.img, but no initrd file. Is this the problem? Did it somehow get deleted when installing Suse?

If so how can I create this file. If not how can I rescue this?
 
Old 12-07-2004, 05:06 PM   #10
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Check whether your initrd is in fact at /. At a guess, I'd say it's more likely to be in /boot. If this is the case, then change the Redhat line

initrd (hd0,0)/initrd-2.4.20-8.img

to:

initrd (hd0,0)/boot/initrd-2.4.20-8.img

Cheers,

mj
 
Old 12-07-2004, 05:50 PM   #11
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
it doesn't seem to have the problem finding initrd.....img because when I change it to /boot/initrd...img it says can't find the file. So it must have something to do with either initrd as a file itself, which I can't find anywhere, or something else. I am going to try to copy the initrd file from suse's boot mount. If you have any thoughts, thanks.
 
Old 12-07-2004, 05:57 PM   #12
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by degraffenried13
it doesn't seem to have the problem finding initrd.....img because when I change it to /boot/initrd...img it says can't find the file. So it must have something to do with either initrd as a file itself, which I can't find anywhere, or something else. I am going to try to copy the initrd file from suse's boot mount. If you have any thoughts, thanks.
That wasn't a good idea. When I went to copy the initrd file I noticed that it is just a symbolic link to the initrd... file in there. So it must be something else.
 
Old 12-07-2004, 06:52 PM   #13
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
a) Check that /sbin/init exists.
b) Check that there is an /initrd directory on both hda1 and hda5.
 
Old 12-07-2004, 07:08 PM   #14
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks, it turns out that I needed to tell the kernel root=/dev/hda2.

I now get it to start for the most part, but to install suse I had to repartition and reformat /dev/hda5, so now on start-up it tries to mount /dev/hda5, but gives me a bunch of errors and then a prompt with which to rescue it, but Idon't know where to start. Where shoudl I look to remove this mount?
 
Old 12-07-2004, 07:23 PM   #15
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
What is your current situation ?

Do you still have the Suse/Redhat dual boot ? If so, presumably you can boot either comfortably, but when you boot Suse it give errors about hda5 ? What are the errors ? Presumably, if you installed Suse on hda5 then you'll want to mount it at some stage in the start up process - probably read only to begin with, then rw.

Cheers,

mj
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dual boot suse 9.3 and redhat enterprise ws 3 jackreed2k Linux - Newbie 10 04-27-2005 07:34 PM
dual boot suse 8.1 and redhat es 3.0 dhiruvanita Linux - Software 1 04-14-2005 04:02 PM
Dual Boot Problems Redhat 9, Fedora.........Suse 9 next patrickian Fedora 2 06-14-2004 08:08 AM
suse and redhat dual boot? zerogrep Linux - Newbie 1 04-06-2004 01:42 AM
Redhat, SuSe dual boot: DHCP problems concoran Linux - General 10 11-12-2001 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:09 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