Setting a linux computer to run only on the kernel that came with cd

I installed a win modem and have got it to work with ubuntu 8.04 however the driver only works with kernel 2.6.24-16-generic. How do I get it to boot up all the time with this kernel so that he doesn't need to make a choice from the grub boot menu where I have newer kernels installed. -- Ron Dean 2 Shannon Place Nawton Hamilton Ph 8493904

From memory edit /boot/grub/menu.lst as root and edit the entry labelled default or similar. It will have a number and change it to match the one you want.
On Sun, Nov 30, 2008 at 9:13 PM, Ron Dean <rvdean(a)ihug.co.nz> wrote:
I installed a win modem and have got it to work with ubuntu 8.04 however the driver only works with kernel 2.6.24-16-generic. How do I get it to boot up all the time with this kernel so that he doesn't need to make a choice from the grub boot menu where I have newer kernels installed.
-- Ron Dean 2 Shannon Place Nawton Hamilton Ph 8493904
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
-- Web: http://wand.net.nz/~iam4/, http://www.jandi.co.nz Blog: http://iansblog.jandi.co.nz

And Grub counts from 0 (i.e. 0 is the first entry, 1 is the second ...) It's labelled default - ubuntu may have left all the comments in - the file is commented well on debian. On 30/Nov/08 21:20 , "Ian McDonald" <ian.mcdonald(a)jandi.co.nz> wrote:
From memory edit /boot/grub/menu.lst as root and edit the entry labelled default or similar. It will have a number and change it to match the one you want.
On Sun, Nov 30, 2008 at 9:13 PM, Ron Dean <rvdean(a)ihug.co.nz> wrote:
I installed a win modem and have got it to work with ubuntu 8.04 however the driver only works with kernel 2.6.24-16-generic. How do I get it to boot up all the time with this kernel so that he doesn't need to make a choice from the grub boot menu where I have newer kernels installed.
-- Ron Dean 2 Shannon Place Nawton Hamilton Ph 8493904
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

I needed to do something similar because the virtualbox module packages don't seem to keep up with kernel releases). Here's what I did. - edit /boot/grub/menu.lst ( alt-F2 and type 'gksudo gedit /boot/grub/menu.lst') - scroll down until you find the entry you want (it will begin with a line that reads "title Ubuntu kernel 8.10.1 2.6.24-16-generic") - Highlight that and the next four lines (the whole block, there should be a blank line after it) and copy to clipboard - Scroll back up until you see "### BEGIN AUTOMAGIC KERNELS LIST", paste the lines you copied directly above that. Save and exit the editor. 2008/11/30 Ron Dean <rvdean(a)ihug.co.nz>:
I installed a win modem and have got it to work with ubuntu 8.04 however the driver only works with kernel 2.6.24-16-generic. How do I get it to boot up all the time with this kernel so that he doesn't need to make a choice from the grub boot menu where I have newer kernels installed.
-- Ron Dean 2 Shannon Place Nawton Hamilton Ph 8493904
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
-- This email is for the intended recipient only. If you are not the intended recipient you must burn your computer, while standing on one foot and chanting the entire jabberwocky. The opinions expressed here are not necessarily the opinions of the person who expressed them.

BTW, the problem with changing "default=" is that every time there's a new kernel package, the one you want it to boot moves down one entry. That's why I didn't do it that way... The proper way it to 'pin' the kernel package I think, but I never figured out how to do that. 2008/11/30 Bruce Kingsbury <zcat(a)zcat.geek.nz>:
I needed to do something similar because the virtualbox module packages don't seem to keep up with kernel releases). Here's what I did.
- edit /boot/grub/menu.lst ( alt-F2 and type 'gksudo gedit /boot/grub/menu.lst')
- scroll down until you find the entry you want (it will begin with a line that reads "title Ubuntu kernel 8.10.1 2.6.24-16-generic")
- Highlight that and the next four lines (the whole block, there should be a blank line after it) and copy to clipboard
- Scroll back up until you see "### BEGIN AUTOMAGIC KERNELS LIST", paste the lines you copied directly above that.
Save and exit the editor.
2008/11/30 Ron Dean <rvdean(a)ihug.co.nz>:
I installed a win modem and have got it to work with ubuntu 8.04 however the driver only works with kernel 2.6.24-16-generic. How do I get it to boot up all the time with this kernel so that he doesn't need to make a choice from the grub boot menu where I have newer kernels installed.
-- Ron Dean 2 Shannon Place Nawton Hamilton Ph 8493904
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
-- This email is for the intended recipient only. If you are not the intended recipient you must burn your computer, while standing on one foot and chanting the entire jabberwocky. The opinions expressed here are not necessarily the opinions of the person who expressed them.
-- This email is for the intended recipient only. If you are not the intended recipient you must burn your computer, while standing on one foot and chanting the entire jabberwocky. The opinions expressed here are not necessarily the opinions of the person who expressed them.

On Sun, Nov 30, 2008 at 4:30 AM, Bruce Kingsbury <zcat(a)zcat.geek.nz> wrote:
BTW, the problem with changing "default=" is that every time there's a new kernel package, the one you want it to boot moves down one entry. That's why I didn't do it that way... The proper way it to 'pin' the kernel package I think, but I never figured out how to do that.
With 'default saved' and 'savedefault' defined in your kernel entries in grub, it will always boot the most recently used kernel, not the newest added one. http://www.gnu.org/software/grub/manual/html_node/savedefault.html Craig

Errrr.. it does? If I tell it to always boot 'the third' entry, and some update adds a newer kernel, all the other boot entries get bumped down the list (two places, since there's also a single user entry by default). Does grub automatically recognise that I now want to boot 'the fifth' entry? 2008/12/1 Craig Box <craig(a)dubculture.co.nz>:
On Sun, Nov 30, 2008 at 4:30 AM, Bruce Kingsbury <zcat(a)zcat.geek.nz> wrote:
BTW, the problem with changing "default=" is that every time there's a new kernel package, the one you want it to boot moves down one entry. That's why I didn't do it that way... The proper way it to 'pin' the kernel package I think, but I never figured out how to do that.
With 'default saved' and 'savedefault' defined in your kernel entries in grub, it will always boot the most recently used kernel, not the newest added one.
http://www.gnu.org/software/grub/manual/html_node/savedefault.html Craig
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
-- This email is for the intended recipient only. If you are not the intended recipient you must burn your computer, while standing on one foot and chanting the entire jabberwocky. The opinions expressed here are not necessarily the opinions of the person who expressed them.

On Mon, 1 Dec 2008 10:20:49 +1300, Bruce Kingsbury wrote:
Errrr.. it does?
If I tell it to always boot 'the third' entry, and some update adds a newer kernel, all the other boot entries get bumped down the list (two places, since there's also a single user entry by default). Does grub automatically recognise that I now want to boot 'the fifth' entry?
If you use 'saved' instead of a number grub will instead boot the entry specified as 'savedefault'. Comments from menu.lst: ## default num <snip> # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not change this entry to 'saved' or your # array will desync and will not let you boot your system. The link Craig posted below explains the savedefault setting. - Dean
2008/12/1 Craig Box <craig(a)dubculture.co.nz>:
On Sun, Nov 30, 2008 at 4:30 AM, Bruce Kingsbury <zcat(a)zcat.geek.nz> wrote:
BTW, the problem with changing "default=" is that every time there's a new kernel package, the one you want it to boot moves down one entry. That's why I didn't do it that way... The proper way it to 'pin' the kernel package I think, but I never figured out how to do that.
With 'default saved' and 'savedefault' defined in your kernel entries in grub, it will always boot the most recently used kernel, not the newest added one.
http://www.gnu.org/software/grub/manual/html_node/savedefault.html Craig

If you use 'saved' instead of a number grub will instead boot the entry specified as 'savedefault'.
I was aware of that. I also understood that what gets 'saved' is the number of the entry, not the specific kernel version being booted. If I boot the third entry (which might be 2.6.24-16-generic at the time) and it saves that and then I upgrade and get a new kernel, is the next reboot going to bring up '2.6.24-16-generic' or 'the third entry in the list'? Or does installing a new kernel reset 'saved' to the most recent kernel? I'm pretty sure it's the last one.

On Mon, 1 Dec 2008 10:58:05 +1300, Bruce Kingsbury wrote:
If you use 'saved' instead of a number grub will instead boot the entry specified as 'savedefault'.
I was aware of that. I also understood that what gets 'saved' is the number of the entry, not the specific kernel version being booted.
If I boot the third entry (which might be 2.6.24-16-generic at the time) and it saves that and then I upgrade and get a new kernel, is the next reboot going to bring up '2.6.24-16-generic' or 'the third entry in the list'? Or does installing a new kernel reset 'saved' to the most recent kernel? I'm pretty sure it's the last one.
Sorry, looks like you're right. I just upgraded to the latest kernel after enabling savedefault and it booted the same entry in the menu which had changed to a different kernel due to the new kernel changing the list. It looks like your earlier suggestion to paste the boot lines above the automagic config is the best way to do it. - Dean
participants (6)
-
Bruce Kingsbury
-
Craig Box
-
Dean
-
Ian McDonald
-
Ron Dean
-
Warren Boyd