Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dualboot with Mandrake
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
John Herdy
Guest





PostPosted: Sun Jun 23, 2002 3:40 pm    Post subject: Dualboot with Mandrake Reply with quote

Gents,

I want to try Gentoo but I don't want to give up my Mandrake installation (yet). I want to create a dualboot but I already have a root and swap partition used by Mandrake. Is it possible to create another root and swap partition for Gentoo. I want Gentoo and Mandrake to operate completely seperate. I have searched trough the Gentoo-forum but only found dualboot-questions/solutions regarding Windows. Any tips and tricks would be appreciated.

Regards,
John Herdy.
Back to top
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Jun 23, 2002 4:28 pm    Post subject: Reply with quote

It should be essentially the same. Since you have Mandrake installed, you can use that boot
manager to add Gentoo. Of course, you'll need partitions to do it :D
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
John Herdy
Guest





PostPosted: Sun Jun 23, 2002 6:44 pm    Post subject: Dualboot with Mandrake Reply with quote

Thanks for your reply. I understand how to add Gentoo to my bootmanager the part I don't understand is how to create 2 root and swap partitions (1 for Mandrake and 1 for Gentoo). Windows doesn't use these partitions so I only have to mount the Windows-partition. IMHO it's not the same. Do you have a little bit more information?

Regards,
John Herdy.
Back to top
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Jun 23, 2002 7:24 pm    Post subject: Reply with quote

What is your current partition table on the drive you would like to dual boot?
I wouldn't waste time creating 2 swap partitions with the intent to give
Mandrake and Gentoo their own swaps.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Gorgar
Guest





PostPosted: Tue Jun 25, 2002 4:33 am    Post subject: Try doing something like this Reply with quote

WARNING THIS MAY NOT WORK I HAVEN'T TESTED IT YET

I can get it booting the gentoo kernel and running the initrd but had been having problems with the init bit.
Any input would be appreciated

I AM DOING THIS EXACT THING TONITE :twisted




Create gentoo in some directory say /gentoo on you're root drive
mkdir /gentoo/oldrootstuff
create a symbolic link on your mandrake stuff from
/lib/modules/<WHATEVER YOU'RE GENTOO KERNEL IS> to /gentoo/lib/modules/<WHATEVER YOU'RE GENTOO KERNEL IS>

if you are using mandrake, then copy the initrd.img from the /boot directory.

* gunzip it
* mount it as a loop device
* edit the linuxrc file
delete all the code from in this file
and replace it with something like

#! /bin/bash
mkdir new_root

#insert your hd device here

mount /dev/hd?? new_root
mount --bind new_root /new_root/gentoo/oldrootstuff
cd new_root/gentoo
pivot_root . oldrootstuff
exec /sbin/init

<END OF FILE>

then call this file /boot/gentoord

in you're lilo.conf file create a new entry called gentoo
copy everything from you're current mandrake entry into it
change the 'initrd= ' section to 'init=/boot/gentoord'

and then run LILO

good luck.
Back to top
Gorgar
n00b
n00b


Joined: 25 Jun 2002
Posts: 2

PostPosted: Tue Jun 25, 2002 1:27 pm    Post subject: Re: Try doing something like this Reply with quote

OK Scratch the above it didn't quite work.

Got it working like this...

Create gentoo in some directory say /gentoo on you're root drive
mkdir /gentoo/oldrootstuff
create a symbolic link on your mandrake stuff from
/lib/modules/<WHATEVER YOU'RE GENTOO KERNEL IS> to /gentoo/lib/modules/<WHATEVER YOU'RE GENTOO KERNEL IS>

create a file called /gentoo/linuxrc
make it executable

in it have

#!/bin/bash

echo Mounting /proc filesystem

mount -t proc /proc /proc
mount --bind / /gentoo/oldrootstuff

echo Starting Gentoo
exec /usr/sbin/chroot /mnt/gentoo /sbin/init

<END OF FILE>

in your lilo.conf have an entry like this but modify with your own disk stuff

image=/boot/gentoo
label=gentoo
root=/dev/hda7
append="init=/gentoo/linuxrc devfs=mount"
read-write

and then run LILO

This sort of thing can be used to dual boot any linux distributions without
repartitioning as long as you create a new root structure for each one.
Back to top
View user's profile Send private message
John Herdy
Guest





PostPosted: Thu Jun 27, 2002 4:50 pm    Post subject: Dualboot with Mandrake Reply with quote

Thanks for your time and support I really appreciate it. It helps a lot. I'm starting to like Gentoo so much that a dualboot may not be neccesary. :wink:

Regards,
John Herdy.

PS. sorry for my late reply.
Back to top
iKiddo
Guru
Guru


Joined: 27 Jun 2002
Posts: 341
Location: Europe?

PostPosted: Fri Jun 28, 2002 10:05 am    Post subject: Reply with quote

I did it quite easily, I had 3 partitions for Mandrake (one swap and one / and one /boot) and added another for gentoo. I then simply installed gentoo using the install instructions where I used my Mandrake /boot and swap partitions as Gentoo /boot and swap partitions too. I just created a new / partition for Gentoo (using the Mandrake partitioning tool). It works fine...
Back to top
View user's profile Send private message
isdnip
n00b
n00b


Joined: 31 May 2002
Posts: 6

PostPosted: Tue Jul 23, 2002 2:18 am    Post subject: Installing Mandrake broke my init... Reply with quote

I had Gentoo 1.1a running with /dev/hda10 as its / partition. I also had Red Hat or something else with /dev/hda7 as its own / partition, with /hda8 as a common /home and /hda9 as a common swap. It was okay for a while, noting that Red Has there before Gentoo, but Gentoo put in its own grub (not lilo). I was not using Red Hat much, mostly Win98 on /hda2, but was also frustrated about the gentoo install. So I decided to try Mandrake Cooker ("8.3", which is not a real number), which has KDE3 and GNOME2. But being Cooker, is allowed to be buggy....

Anyway, after playing with Mandrake Cooker for a while, I decided to go back into Gentoo to tackle some issues (like pam.d, which was waaaaay too restrictive for me). Lo and behold, booting it gives me:

Kernel panic: No init found. Try passing init= option to kernel.

Now the grub.conf file looks like this:


timeout 10
color black/cyan yellow/cyan
i18n (hd0,0)/grub/messages
keytable (hd0,0)/us.klt
splashimage=(hd0,0)/grub/splash.xpm.gz
altconfigfile (hd0,0)/grub/menu.once
default 3

title Mandrake Linux
kernel (hd0,0)/vmlinuz root=/dev/hda7 devfs=mount hdc=ide-scsi
initrd (hd0,0)/initrd.img

title Gentoo Linux
kernel (hd0,0)/vmlinuz-2.4.18-3 root=/dev/hda10 devfs=mount hdc=ide-scsi
initrd (hd0,0)/initrd-2.4.18-3.img


The initrd files and kernel files are both on the boot partiition /hda1. I didn't do anything to /hda10, and /usr/sbin/init is present in both Mandrake and Gentoo (though not identical files, a few bytes different length).

Any clues about how to get gentoo going again? (I couldn't come up with an init= option that worked.) Or do I need to start again from scratch (probably with 1.3)? Thanks.
Back to top
View user's profile Send private message
chevymoon
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 112

PostPosted: Wed Oct 16, 2002 10:24 pm    Post subject: Reply with quote

I did it quite easily, I had 3 partitions for Mandrake (one swap and one / and one /boot) and added another for gentoo. I then simply installed gentoo using the install instructions where I used my Mandrake /boot and swap partitions as Gentoo /boot and swap partitions too. I just created a new / partition for Gentoo (using the Mandrake partitioning tool). It works fine.


Maybe I'm reading this wrong, but it doesn't sound to me like iKiddo did it Gorgar's way. I would prefer ikiddo's idea since Gorgar's doesn't make a whole lot of sense to me. Was it as straight forward as declaring hda1 as the Gentoo boot partition during install? What boot loader was used?

I'm trying to be careful because I've already tried this once and screwed the pooch.

javascript:emoticon(':oops:')[/i]
Back to top
View user's profile Send private message
chevymoon
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 112

PostPosted: Thu Oct 17, 2002 3:59 pm    Post subject: Reply with quote

Let me re-phrase the question. In a dual boot situation with another Linux distro, how concerned should I be about sharing the /boot partition between the two?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Oct 17, 2002 4:07 pm    Post subject: Reply with quote

As long as you keep kernels and menu.lst organized, it shouldn't be a problem.

This thread might be of interest.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
chevymoon
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 112

PostPosted: Thu Oct 17, 2002 4:49 pm    Post subject: Reply with quote

Thanks. That does help some. Specifically, I want to make sure that there aren't gentoo files that will overwrite mankdrake files when install to the boot partition. Correct me if I'm wrong, but the kernels go by different names (i.e., bzImage for Gentoo, vmlinuz-2.4.19etc for Mandrake). So there shouldn't be conflict there. But, I looked inside the Mandrake /boot and there are many other files to be concerned with. Will these conflict with a Gentoo install?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Oct 17, 2002 5:59 pm    Post subject: Reply with quote

I've not used Mandrake, so I'm not sure what files it uses. As an example, here is what my /boot contains:
Code:
# ls /boot
boot@    bzImage.current          bzImage.emergency  lost+found/
bzImage  bzImage.current.nosound  grub/

# ls /boot/grub
e2fs_stage1_5  jfs_stage1_5    reiserfs_stage1_5  stage2
fat_stage1_5   menu.lst        splash.xpm.gz      vstafs_stage1_5
ffs_stage1_5   minix_stage1_5  stage1             xfs_stage1_5
I'm guessing the 'stage' files are for Grub to boot with various filesystems.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Zaxon
n00b
n00b


Joined: 22 Sep 2002
Posts: 39
Location: Madison, Alabama

PostPosted: Thu Oct 17, 2002 6:06 pm    Post subject: Reply with quote

From my experiences they live in harmony on the boot partition and it should not be a problem, i had a dual boot with mandrake 8.2 and gentoo 1.2, don't know if that has changed though...
_________________
"Penguins can't fly, but they sure look cute!"
Back to top
View user's profile Send private message
chevymoon
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 112

PostPosted: Fri Oct 18, 2002 2:58 pm    Post subject: Reply with quote

Thanks again, guys. I did indeed Gentoo installed last night. No problems whatsoever with the shared /boot and /swap partitions.

Now I've got an "emerge kde" problem. That's another thread, though... :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum