LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do i change the kernel to boot from? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-change-the-kernel-to-boot-from-754816/)

lampamp 09-13-2009 10:00 AM

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

nkd 09-13-2009 10:43 AM

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

Hi_This_is_Dev 09-13-2009 03:17 PM

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.

lampamp 09-13-2009 04:23 PM

Quote:

Originally Posted by Hi_This_is_Dev (Post 3681365)
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

lampamp 09-14-2009 04:53 AM

won't anybody answer?

lutusp 09-14-2009 05:58 AM

Quote:

Originally Posted by lampamp (Post 3682024)
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

lampamp 09-14-2009 06:37 AM

Quote:

Originally Posted by lutusp (Post 3682078)
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

mdg 09-14-2009 07:46 AM

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.

lampamp 09-14-2009 07:58 AM

Quote:

Originally Posted by mdg (Post 3682192)
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)

mdg 09-14-2009 08:19 AM

Then try looking for the file menu.lst in /boot/grub

mobinskariya 09-14-2009 08:25 AM

can you give us the output of
Code:

ls -l
when inside the /boot and /boot/grub..

regards
mobin

lampamp 09-14-2009 08:44 AM

Quote:

Originally Posted by mdg (Post 3682216)
Then try looking for the file menu.lst in /boot/grub

in /boot/grub
i have only one file called "splash.xpm.gz"

lampamp 09-14-2009 08:46 AM

Quote:

Originally Posted by mobinskariya (Post 3682222)
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?

mobinskariya 09-14-2009 08:49 AM

i meant to change your directory to /boot..
Code:

cd /boot
edit: also i havnt tried usb booting..

lampamp 09-14-2009 09:03 AM

Quote:

Originally Posted by mobinskariya (Post 3682255)
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


All times are GMT -5. The time now is 08:19 PM.