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:
|
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 |
An entry in the file /etc/grub.conf can solve your problem. Here's an example of it:
Code:
#boot=/dev/hda Just add your custom entry at the end beginning with Code:
title My Kernel |
Quote:
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 |
won't anybody answer?
|
Quote:
As to the location of the grub configuration file, it is located at: /boot/grub/grub.conf |
Quote:
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 |
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.
|
Quote:
|
Then try looking for the file menu.lst in /boot/grub
|
can you give us the output of
Code:
ls -l regards mobin |
Quote:
i have only one file called "splash.xpm.gz" |
Quote:
|
i meant to change your directory to /boot..
Code:
cd /boot |
Quote:
Quote:
|
see also the outputs in the top post
they show that i'm running 2.6.29.4-167.fc11.i586 |
Quote:
cd to that directory as given below: Code:
cd grub Code:
ls -l Have a look at the steps I have shown below: Code:
-bash-2.05b# pwd The same file (linked) is found in the directory /etc also as given below: Code:
-bash-2.05b# pwd About booting from a USB drive, I cannot help you because I have never tried it. But yes, the USB drive must be bootable and you have to configure your BIOS to change first priority from your hard disk or floppy disk or whatever it may be to USB Drive. |
Quote:
# cd grub Notice that the file grub.conf, that you believe doesn't exist, is listed. Make a copy for safekeeping: # cp grub.conf grub.backup Now edit the configuration: # kwrite grub.conf Add a menu entry to the menu list to allow booting from the kernel you want. For example, you might have an existing menu entry like this (copied from my grub.conf): title Fedora (2.6.30.5-43.fc11.i686.PAE) root (hd0,0) kernel /boot/vmlinuz-2.6.30.5-43.fc11.i686.PAE ro root=UUID=d07e202b-d783-4d15-a303-93c15ff4c17f rhgb quiet initrd /boot/initrd-2.6.30.5-43.fc11.i686.PAE.img Make a copy of your version of this text block, add it to the menu list below the original entry, and give it a different title. Change the kernel specifier numbers to correspond to the kernel you want to add to the menu by reading the numbers located in the /boot file list. Save the edited grub.conf file and boot from the USB stick. |
Do you have a /boot/grub/menu.lst file. That is the one to modify.
|
OP says he has no menu.lst.how can that happen? i havnt tried usb booting(so ignorant)
Quote:
|
You will need to provide more information about your installation. Why do you use a usb to boot? Is it a boot disk that simply contains the MBR used to continue booting from another partition? How did you produce this boot disk? Did you follow a howto?
Print out "cat /proc/cmdline". That will show where the partition containing the kernel is. Post the output of "sudo /sbin/fdisk -l" which shows your partitions. Post the output of "cat /etc/fstab". The boot directory may be in it's own partition. Post the output of "ls /boot" and "ls /". I've seen installations where the kernel and grub files are in the root (/) directory. normally, the /boot/grub directory will contain these files: Code:
/boot/grub d post the results. We need a starting point before we even know where the relevant files are located. This stanza should look like: Code:
title openSUSE 11.1 - 2.6.27.29-0.1 (default) |
Quote:
i couldn't format the hd because i have many important files on it so i've got some outputs: Quote:
Quote:
Quote:
|
give us the output of
Code:
df -h |
Quote:
Quote:
|
i found a folder called boot in /mnt/live/efi
this folder contains Quote:
the contents of the 3 files abobe are: Quote:
|
where is your new kernel image?i cant find any in your /boot other than vmlinuz0.
|
Quote:
i searched for it can u give me a way to uninstall the old kernel |
uninstalling old kernel without installing the new one?? which kernel will you use to boot then?actually you dont need to uninstall old kernel for the new one to work.. the only thing to be done is, compile the new kernel, install it, make an initrd for that kernel image and add a new entry in the grub by editing menu.lst..
btw what steps did you follow to install a kernel? |
Quote:
it automatically installed kernel-2.6.30.5-43.fc11.i586 and an nvidia driver compatible with kernel-2.6.30.5-43.fc11.i586 so because my fedora is still running on the old kernel, my nvidia isnt working correctly. is there a way to install a kmod-nvidia package which is compatible with 2.6.29.4-167.fc11.i586? |
i am totally ignorant about usb booting and i am assuming that it is similar to that of a normal linux. since there was no one replying to you, i am just trying to help you. i dont know anything about the nvdia drivers..maybe try fdisk -l as a root..
please give the output of Code:
su - |
Quote:
Quote:
i appreciate what ur doing :) |
is there a way to remove a specific kernel? i'll try maybe it work
|
You probably should have mentioned that you are using live usb creator from the beginning. Are you running off a live CD?
You may have lost the new kernel after a reboot. According to a wikipedia article, there is a persistence option. I'm betting this wasn't enabled. You are using isolinux to boot and your system may be using unionfs to overlay new files to a read-only ISO image when the persistence option is enabled. Is this what you used to install it: http://en.wikipedia.org/wiki/Fedora_Live_USB_creator |
Quote:
but it's not a read only image i'm trying to update the kernel to use the video card so i was thinking is there a way to install a kmod-nvidia package which is compatible with 2.6.29.4-167.fc11.i586? |
Add the rpmfusion repo. It may have it. Also search on the rpm.fusion.net website. Search on google using "site:pbone.net nvidia 2.6.29.4"
|
Quote:
|
All times are GMT -5. The time now is 07:39 PM. |