Linux 系统内核管理与网络故障排查指南
1. 内核管理
在 Linux 系统中,有时需要对内核进行管理,例如切换到旧内核或添加新内核。
1.1 启动旧内核
若要启动旧内核,可重启系统,并在启动提示时输入“safe”标签。
1.2 使用 GRUB 配置多内核启动
如果系统使用 GRUB,可修改grub.conf文件,让用户能选择启动任一 Linux 内核。以下是修改后的grub.conf文件示例:
[root]# cat /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,2) # kernel /boot/vmlinuz−version ro root=/dev/hda3 # initrd /boot/initrd−version.img #boot=/dev/hda default=0 timeout=10 splashimage=(hd0,2)/boot/grub/splash.xpm.gz passwo