Author Topic: Kernel boot question  (Read 268 times)

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Kernel boot question
« on: January 09, 2013, 04:12:00 PM »
I installed PCLinuxOS 2012.12.  It runs the bfs kernel.  I installed the pae kernel. 

I'll keep both kernels in place for now, but I want to automaticaly boot the bfs kernel.  so, i edited my grub menu and moved the bfs kernel to the bottom:

Quote
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=4be8056a-ca8a-4887-8c36-59c5e5248aab quiet nokmsboot vmalloc=256M acpi=on resume=UUID=067d8bd4-7c23-49f8-abd5-0b8412a5db31 splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=4be8056a-ca8a-4887-8c36-59c5e5248aab quiet nokmsboot vmalloc=256M acpi=on resume=UUID=067d8bd4-7c23-49f8-abd5-0b8412a5db31
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=4be8056a-ca8a-4887-8c36-59c5e5248aab quiet nokmsboot failsafe vmalloc=256M acpi=on
initrd (hd0,0)/boot/initrd.img

title memtest-4.20
kernel (hd0,0)/boot/memtest-4.20 BOOT_IMAGE=memtest-4.20

title 3.2.18-pclos2.pae
kernel (hd0,0)/boot/vmlinuz-3.2.18-pclos2.pae BOOT_IMAGE=3.2.18-pclos2.pae root=UUID=4be8056a-ca8a-4887-8c36-59c5e5248aab quiet nokmsboot vmalloc=256M acpi=on resume=UUID=067d8bd4-7c23-49f8-abd5-0b8412a5db31 splash=silent vga=788
initrd (hd0,0)/boot/initrd-3.2.18-pclos2.pae.img

title 3.2.18-pclos2.bfs
kernel (hd0,0)/boot/vmlinuz-3.2.18-pclos2.bfs BOOT_IMAGE=3.2.18-pclos2.bfs root=UUID=4be8056a-ca8a-4887-8c36-59c5e5248aab quiet nokmsboot vmalloc=256M acpi=on resume=UUID=067d8bd4-7c23-49f8-abd5-0b8412a5db31 splash=silent vga=788
initrd (hd0,0)/boot/initrd-3.2.18-pclos2.bfs.img

On restart, the pae kernel booted and not the bfs.

What did I do wrong?
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10620
  • MLUs Forever!
Re: Kernel boot question
« Reply #1 on: January 09, 2013, 04:34:58 PM »
You should not have moved anything .......  all that is required is to edit the

default 0

line to point to whichever entry you wish to boot.

Start the count at zero ......

to boot the last entry posted would be

default 5

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: Kernel boot question
« Reply #2 on: January 09, 2013, 06:32:43 PM »
Additionally:

If you leave the line default 0 as it is, your computer will boot with the kernel specified in the first boot stanza, i.e. with  /boot/vmlinuz on the first partition of your first hard drive. Now, vmlinuz isn't the name of the kernel itself; it's a symbolic link to the last kernel installed - in your case vmlinuz-3.2.18-pclos2.pae - regardless of the order of the other stanzas.

So if you want to boot vmlinuz-3.2.18-pclos2.bfs instead, you have to change "default 0" to "default 5" as Just17 suggested. Or change the default in PCC.
« Last Edit: January 09, 2013, 06:42:17 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kernel boot question
« Reply #3 on: January 09, 2013, 07:38:02 PM »
What the heck was I thinking??  :-[ :-[

Thanks for clarifying.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1887
  • Certified Windows Hater
Re: Kernel boot question
« Reply #4 on: January 10, 2013, 12:50:08 AM »
You can also change your system's boot options through PCLinuxOS Control Center.
Configure Your Computer -> Boot -> Set up boot system
For the whole world, you are someone.
For someone, you are the whole world.

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kernel boot question
« Reply #5 on: January 10, 2013, 07:39:00 AM »
You can also change your system's boot options through PCLinuxOS Control Center.
Configure Your Computer -> Boot -> Set up boot system

That's cool.:)  Just move the kernel up the list.:) 
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.