I am using grub2 also, but on another distro, with multiple kernels/partitions. I don't have a lot of firsthand knowledge, because not having a lot of patience, I usu just drop to the grub cli.
However, IIRC there is a grub2 command called update-grub that scans all your boot sectors on all your devices. At least that's the way its _sposed_ to work - ymmv.
:-/
----- Original Message -----
From: James
Sent: 01/24/14 01:14 PM
Subject: [gentoo-user] Re: grub2 multiple kernels
Lee <ny6p01 <at> gmail.com> writes: > I am using grub2 also, but on another distro, with multiple > kernels/partitions. I don't have a lot of firsthand knowledge, because not > having a lot of patience, I usu just drop to the grub cli. > However, IIRC there is a grub2 command called update-grub that scans all > your boot sectors on all your devices. At least that's the way its _sposed_ > to work - ymmv. Yes, I read about update-grub, but it must be part of an additional packages, as I cannot find it (using whereis as root) ? On gentoo, which packages contains the update-grub command? Or is "grub2-mkconfig " the same command ? James
I could be remembering wrong, but I'm pretty sure update-grub was the command for legacy grub.
Like Andres* said, the command for grub2 is grub2-mkconfig -o /boot/grub/grub.cfg .
* Sorry for ASCII-ing your name; I've yet to set up unicode support.
----- Original Message -----
From: Lee
Sent: 01/24/14 12:46 PM
Subject: Re: [gentoo-user] grub2 multiple kernels
However, IIRC there is a grub2 command called update-grub that scans all your boot sectors on all your devices. At least that's the way its _sposed_ to work - ymmv.
:-/
I think update-grub was the command for legacy grub. On my system the appropriate command is grub2-mkconfig.
As a side note to James, if you don't see your secondary kernels on the grub2 screen on boot, look under the advanced options. My grub2 setup seems to put extra kernels under the advanced tab.
I don't recall making any changes to Grub2 so it might be the default behaviour.
Hi James,
If you put the kernels in /boot with proper names and launch:
grub2-mkconfig -o /boot/grub/grub.cfg
Grub will set up the kernels for you.
If you want (not likely) to create a manual entry, put it in /etc/grub.d/40_custom
--
Andrés Becerra Sandoval
-- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
I misremembered. the correct command is indeed the mkconfig one. I'd recommend backing up your old config first or outputting to stdout so you can check everything first.
----- Original Message -----
From: James
Sent: 01/24/14 05:27 PM
Subject: [gentoo-user] Re: grub2 multiple kernels
I had a problem with the doc useflag, so I've been reading across the net. So now all of those "docs" are installing.....
I re-emerged with the doc flag. You can find the docs at
file:///usr/share/doc/grub-2.00_p5107-r2/html/grub.html/index.html
Though it appears the same manual is available here