You are not logged in.

#1 2004-05-11 22:21:45

Martillo1
Member
From: My kabila in Lavapiés
Registered: 2004-02-20
Posts: 66

Kernel 2.6 in GRUB

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

#2 2004-05-12 01:24:34

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Kernel 2.6 in GRUB

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

#3 2004-05-12 19:51:12

Martillo1
Member
From: My kabila in Lavapiés
Registered: 2004-02-20
Posts: 66

Re: Kernel 2.6 in GRUB

I will pay more attention to the news page  wink  thanks lanrat.

Offline

#4 2004-05-13 14:31:31

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Kernel 2.6 in GRUB

Martillo1 wrote:

# (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

#5 2004-05-20 12:11:07

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: Kernel 2.6 in GRUB

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

#6 2004-05-20 14:15:11

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Kernel 2.6 in GRUB

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

#7 2004-05-21 13:14:49

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: Kernel 2.6 in GRUB

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

Board footer

Powered by FluxBB