Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]converting my gentoo-box to dual boot with archlinux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
suicideducky
Apprentice
Apprentice


Joined: 29 Jan 2007
Posts: 208

PostPosted: Thu Sep 13, 2007 9:38 pm    Post subject: [solved]converting my gentoo-box to dual boot with archlinux Reply with quote

ok well i have gentoo linux installed on this system now, heres my partitioning layout (simple and boring, i know)
hda1 boot
hda2 swap
hda3 gentoo
and ive just installed arch linux in partition hda4
hda4 archlinux

but archlinux refers to them as sda(1-4) and gentoo refers to them as hda(1-4) ?!? they cant be both sata and ide...

the problem lies that my boot partition holds the gentoo version of grub, i dont know how else to put it, and also the kernel image and initramfs
but id like it to be able to dual boot into arch, adding the appropriate arch entry into my menu.lst file doesnt seem to do it, well kinda

i added the appropriate lines into my menu.lst two entries, one for archlinux, and archlinux fallback, the only difference is the kernel image
but the 1st fails to mount sda4 whereas the 2nd one does it just fine?!?
but thats a problem for the arch community XD

basically what i want to do it move the kernel image and all the files from sda1 to sda3/boot but id still like grub itself to remain in my sda1
reasons for this? im more of a distro jumper TBH, ive stuck with gentoo for just under a year abouts but that urge to muck around with distros is coming back, idealy what id like my HDD to eventually be is the following

hda1 boot
hda2 swap
hda3 gentoo
hda4 extended
hda5 archlinux
hda6 LFS

in the end id like to be able to do whatever with each partition without destroying my bootloader but i also dont want to do much tinkering with the sda1 partition other than with menu.lst

any suggestions/help would be much apprechiated

thanks again, Ducky

SOLUTION:
changed (hd0,0) to (hd0,2) and then moved the system map, kernel image and initramfs files to my boot dir
and for the arch prob i just did a mkinitcpio -k 2.6.22-arch -g /boot/kernel26.img

thanks again all, ducky


Last edited by suicideducky on Fri Sep 14, 2007 1:22 am; edited 1 time in total
Back to top
View user's profile Send private message
suicideducky
Apprentice
Apprentice


Joined: 29 Jan 2007
Posts: 208

PostPosted: Thu Sep 13, 2007 10:17 pm    Post subject: Reply with quote

my current grub.conf
Code:
default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

#colour light-blue/black light-cyan/blue

title=Gentoo Linux 2.6.22-r2
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.22-gentoo-r2 root=/dev/ram0 init=/linuxrc ramdisk=8912 real_root=/dev/hda3 udev vga=791 splash=silent
initrd /boot/initramfs-genkernel-x86-2.6.22-gentoo-r2

title=Arch Linux
root (hd0,3)
kernel /boot/vmlinuz26 root=/dev/sda4 ro
initrd /boot/kernel26.img

title=Arch Linux Fallback
root (hd0,3)
kernel /boot/vmlinuz26 root=/dev/sda4 ro
initrd /boot/kernel26-fallback.img


how would i make it look in /sda3/boot for the kernel image and initramfs?!?
Back to top
View user's profile Send private message
Coelacanth
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2006
Posts: 83

PostPosted: Thu Sep 13, 2007 11:53 pm    Post subject: Reply with quote

just change
root (hd0,0)
to
root (hd0,2)
in the Gentoo entry
Back to top
View user's profile Send private message
suicideducky
Apprentice
Apprentice


Joined: 29 Jan 2007
Posts: 208

PostPosted: Fri Sep 14, 2007 12:05 am    Post subject: Reply with quote

Coelacanth wrote:
just change
root (hd0,0)
to
root (hd0,2)
in the Gentoo entry

oh tah XD
but then do i only need to grab out the kernel and initramfs image and the rest i presume is grub and a splash image?!?
Back to top
View user's profile Send private message
Coelacanth
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2006
Posts: 83

PostPosted: Fri Sep 14, 2007 8:51 pm    Post subject: Reply with quote

suicideducky wrote:
Coelacanth wrote:
just change
root (hd0,0)
to
root (hd0,2)
in the Gentoo entry

oh tah XD
but then do i only need to grab out the kernel and initramfs image and the rest i presume is grub and a splash image?!?

That's right. All you need to move is the kernel and the initrd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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