You are not logged in.
Pages: 1
Hi, when I upgraded from kernel 2.4 to kernel 2.6 I set up a dual boot in GRUB so as to I could boot both kernels this way:
# (0) Arch Linux
title Arch Linux [/boot/vmlinuz]
root (hd0,4)
kernel (hd0,0)/vmlinuz root=/dev/discs/disc2/part6 ro
# (1) Arch Linux
title Arch Linux 26 [/boot/vmlinuz26]
root (hd0,4)
kernel (hd0,0)/vmlinuz26 root=/dev/discs/disc2/part6 ro
It worked, but my question is: Is vmlinuz pointing to kernel 2.4 or is it already pointing to kernel 2.6?
I don't dare to use the entry (0) for safety sake :oops: so I do not know :oops: :oops: :oops:
Offline
I've just done similiar upgrade :-) Vmlinuz should point to kernel24. My setup is almost the same and works quite well. Also read second news from the top of http://www.archlinux.org/news.php?skip=20 for clarification :-)
Offline
I will pay more attention to the news page thanks lanrat.
Offline
# (0) Arch Linux
title Arch Linux [/boot/vmlinuz]
root (hd0,4)
kernel (hd0,0)/vmlinuz root=/dev/discs/disc2/part6 ro# (1) Arch Linux
title Arch Linux 26 [/boot/vmlinuz26]
root (hd0,4)
kernel (hd0,0)/vmlinuz26 root=/dev/discs/disc2/part6 ro
Btw, this is NOT the grub syntax. Have a look at it's documentation. It should be:
# (0) Arch Linux
title Arch Linux [/boot/vmlinuz]
root (hd0,0)
kernel /vmlinuz root=/dev/discs/disc2/part6 ro
# (1) Arch Linux
title Arch Linux 26 [/boot/vmlinuz26]
root (hd0,0)
kernel /vmlinuz26 root=/dev/discs/disc2/part6 ro
Unfortunately, root is often supposed to mean the main device, that will be mounted as the root device "/". Think about it, grub has nothing to do with "/". So this is not the goal of grub's "root" option. This option is simply used to address the base partition storing the kernel files.
Why does the wrong config work at all?
In the root line, it submits grub the wrong parameter for root, f.e. (hd0,4). This mistake will be corrected in the kernel line later by adding the correct (hd0,0) address for the kernel.
8)
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
There are multiple ways to make grub find both the kernel and the root partition.
Personally I don't have a seperate boot partition and use this:
title Linux
root (hd0,7)
kernel /boot/vmlinuz26 vga=0x314 splash=silent
initrd /boot/initrd.splash
So I don't need to specify the root=/dev/whatever kernel option because I set my root partition by telling grub 'root (hd0,7)'. I think Martillo1 could do it this way, if he wished to, by using the following:
title Arch Linux [/boot/vmlinuz26]
root (hd2,5)
kernel (hd0,0)/vmlinuz26 ro
I guess my point is this; grub uses the root line to descide both where to find the kernel AND what root option to give the kernel, unless you override any of them on the kernel line.
-bogomipz
All of your mips are belong to us!!
Offline
You are wrong. Root is the base partition the kernel is stored at, nothing more. Read grub docu if you don't trust me.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
Well, the first piece of code in my post worked on my system. With seperate boot and root partitions it's better to follow what Pink Chick says, though.
All of your mips are belong to us!!
Offline
Pages: 1