LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2009, 10:00 AM   #1
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Rep: Reputation: 15
How do i change the kernel to boot from?


hi i want to change the kernel to boot from use my video card river
i want to boot from kernel-2.6.30.5-43.fc11.i586
how can i do that
here are some important outputs i've got
Quote:
[liveuser@localhost ~]$ rpm -qa | grep kernel
kernel-2.6.30.5-43.fc11.i586
kerneloops-0.12-5.fc11.i586
kernel-2.6.29.4-167.fc11.i586
kernel-firmware-2.6.30.5-43.fc11.noarch
[liveuser@localhost ~]$ uname -r
2.6.29.4-167.fc11.i586
[liveuser@localhost ~]$ yum list installed | grep kmod-nvidia
kmod-nvidia.i586 185.18.36-1.fc11.1 installed
kmod-nvidia-2.6.30.5-43.fc11.i586.i586 185.18.36-1.fc11.1 installed
 
Old 09-13-2009, 10:43 AM   #2
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
have you compiled and installed the kernel 2.6.30.5?
the last step is make install and that should give you a new entry in the grub.
hope this helps
nishith
 
Old 09-13-2009, 03:17 PM   #3
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
An entry in the file /etc/grub.conf can solve your problem. Here's an example of it:

Code:
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.6-1.435.2.3)
        root (hd0,0)
        kernel /vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.6-1.435.2.3.img
title Fedora Core (2.6.5-1.358)
        root (hd0,0)
        kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.5-1.358.img
title UML Vanilla (2.6.7)
        root (hd0,0)
        kernel /vmlinuz-uml ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.7.img

Just add your custom entry at the end beginning with

Code:
title My Kernel
When you restart your system you should see your kernel listed in the OS/Kernels list. Select your kernel and see if you succeed. If not, then post the contents of your grub.conf file with the modifications you make in it.
 
Old 09-13-2009, 04:23 PM   #4
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hi_This_is_Dev View Post
An entry in the file /etc/grub.conf can solve your problem. Here's an example of it:

Code:
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.6-1.435.2.3)
        root (hd0,0)
        kernel /vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.6-1.435.2.3.img
title Fedora Core (2.6.5-1.358)
        root (hd0,0)
        kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.5-1.358.img
title UML Vanilla (2.6.7)
        root (hd0,0)
        kernel /vmlinuz-uml ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.7.img

Just add your custom entry at the end beginning with

Code:
title My Kernel
When you restart your system you should see your kernel listed in the OS/Kernels list. Select your kernel and see if you succeed. If not, then post the contents of your grub.conf file with the modifications you make in it.
will it work on the usb
im using a bootable usb
and i have no such file called grub.conf in /etc

i have the two kernels installed but i want to boot from kernel-2.6.30.5-43.fc11.i586
and my fedora is booting from the other one

please explain with examples
i am a newbie in linux

Last edited by lampamp; 09-13-2009 at 05:03 PM.
 
Old 09-14-2009, 04:53 AM   #5
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
won't anybody answer?
 
Old 09-14-2009, 05:58 AM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by lampamp View Post
won't anybody answer?
As to booting from a USB stick, this is accomplished with your BIOS, not the Grub configuration on your hard drive. You have to enable USB booting, and you have to give the USB boot device priority over the hard drive.

As to the location of the grub configuration file, it is located at:

/boot/grub/grub.conf
 
Old 09-14-2009, 06:37 AM   #7
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lutusp View Post
As to booting from a USB stick, this is accomplished with your BIOS, not the Grub configuration on your hard drive. You have to enable USB booting, and you have to give the USB boot device priority over the hard drive.

As to the location of the grub configuration file, it is located at:

/boot/grub/grub.conf
noo
i know that
i am able to boot my usb
but my usb is running on kernel-2.6.29.4-167.fc11.i586
and i want to run it on kernel-2.6.30.5-43.fc11.i586

i have them both installed but my usb fedora is running on kernel-2.6.29.4-167.fc11.i586 so i only want to change the kernel im using
 
Old 09-14-2009, 07:46 AM   #8
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
You've been given all the information you need to solve the problem. All you have to do is follow the instructions from Hi_This_is_Dev and lutusp.
 
Old 09-14-2009, 07:58 AM   #9
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mdg View Post
You've been given all the information you need to solve the problem. All you have to do is follow the instructions from Hi_This_is_Dev and lutusp.
but i dont have the files they talked about (in etc and boot/grub)
 
Old 09-14-2009, 08:19 AM   #10
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Then try looking for the file menu.lst in /boot/grub
 
Old 09-14-2009, 08:25 AM   #11
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
can you give us the output of
Code:
ls -l
when inside the /boot and /boot/grub..

regards
mobin
 
Old 09-14-2009, 08:44 AM   #12
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mdg View Post
Then try looking for the file menu.lst in /boot/grub
in /boot/grub
i have only one file called "splash.xpm.gz"
 
Old 09-14-2009, 08:46 AM   #13
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mobinskariya View Post
can you give us the output of
Code:
ls -l
when inside the /boot and /boot/grub..

regards
mobin
sorry but what's the command to become in /boot?
 
Old 09-14-2009, 08:49 AM   #14
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
i meant to change your directory to /boot..
Code:
cd /boot
edit: also i havnt tried usb booting..

Last edited by mobinskariya; 09-14-2009 at 08:50 AM.
 
Old 09-14-2009, 09:03 AM   #15
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mobinskariya View Post
i meant to change your directory to /boot..
Code:
cd /boot
edit: also i havnt tried usb booting..
the output is
Quote:
[liveuser@localhost boot]$ ls -l
total 12196
-rw-r--r--. 1 root root 97567 2009-05-27 17:25 config-2.6.29.4-167.fc11.i586
-rw-r--r--. 1 root root 100548 2009-08-27 21:30 config-2.6.30.5-43.fc11.i586
drwxr-xr-x. 3 root root 4096 2009-06-04 13:07 efi
-rw-r--r--. 1 root root 118396 2009-04-24 15:19 elf-memtest86+-2.11
drwxr-xr-x. 2 root root 4096 2009-04-29 17:33 grub
-rw-------. 1 root root 3168668 2009-09-15 16:58 initrd-2.6.30.5-43.fc11.i586.img
-rw-r--r--. 1 root root 116720 2009-04-24 15:19 memtest86+-2.11
-rw-r--r--. 1 root root 1257178 2009-05-27 17:25 System.map-2.6.29.4-167.fc11.i586
-rw-r--r--. 1 root root 1365421 2009-08-27 21:30 System.map-2.6.30.5-43.fc11.i586
-rwxr-xr-x. 1 root root 3035056 2009-05-27 17:25 vmlinuz-2.6.29.4-167.fc11.i586
-rwxr-xr-x. 1 root root 3208560 2009-08-27 21:30 vmlinuz-2.6.30.5-43.fc11.i586
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the tux logo during kernel boot kushalkoolwal Debian 3 10-20-2014 05:08 AM
Any reason to change symbolic links in /boot with generic kernel? gibson79 Slackware 2 09-04-2009 09:24 AM
Change de default boot kernel mr_sarge Linux - Newbie 6 10-10-2005 11:30 AM
how to change "kernel arguments" in grub boot loader permanently stupid_guy Linux - Newbie 7 06-09-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration