The kernel is located in the boot partition of your system, and on most Linux distributions, the boot partition is usually the first partition on the hard drive, and it is usually mounted at /boot
. The kernel image file is typically located in the /boot
directory and is named vmlinuz-<kernel version>
.
On the grub command line, you can locate the kernel by typing ls
command to list the contents of the /boot
directory. The kernel should be listed among the contents of the directory and you should be able to find the current kernel version.
Here is an example of how you would locate the kernel on the grub command line:
- Boot your system into the grub command line by pressing 'e' when the grub menu is displayed during the boot process.
- Use the
ls
command to list the contents of the/boot
directory.
grub> ls (hd0) (hd0,msdos1) (hd1) (hd1,msdos1)
- You can see the available partitions, select the partition that contains the boot directory, for example (hd0,msdos1) for the first partition.
grub> ls (hd0,msdos1)/
- You will see the contents of the boot partition, and you can find the kernel image file with the name vmlinuz-<kernel version>
Please note that, your partition naming and location of the kernel image may vary depending on your Linux distribution. Also, you should make sure that your grub configuration is correct and that you have the correct partition where the boot directory is located.
https://www.suse.com/c/loading-linux-kernel-manually-using-grub-sles/
No hay comentarios:
Publicar un comentario