我在托管服务上运行Debian服务器,在那里我没有基于the的控制台访问计算机的权限。我需要升级安装和内核,但是在重新启动2.6之后,内核仍然被使用。由于虚拟化平台的原因,服务器使用grub-legacy。/boot/grub/menu.lst包含新内核,也包含default 0。
因为我无法看到在引导期间发生了什么,所以我不知道启动菜单是否真的被更新了。有什么办法可以远程调试吗?我现在不能继续升级,因为我需要运行3.2内核才能安装Jessie。
我已经运行了update-grub,并将grub安装到MBR中。虽然它也可能安装在分区上,但我最初并没有设置系统。
## ## End Default Options ##
title Debian GNU/Linux, kernel 3.2.0-4-amd64
root (hd0,0)
kernel /boot/vmlinuz-3.2.0-4-amd64 root=UUID=1ad904c4-eaf0-4860-86f0-fabfa5df7bc0 ro
initrd /boot/initrd.img-3.2.0-4-amd64
title Debian GNU/Linux, kernel 3.2.0-4-amd64 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-3.2.0-4-amd64 root=UUID=1ad904c4-eaf0-4860-86f0-fabfa5df7bc0 ro single
initrd /boot/initrd.img-3.2.0-4-amd64
title Debian GNU/Linux, kernel 2.6.39-bpo.2-amd64
root (hd0,0)
kernel /boot/vmlinuz-2.6.39-bpo.2-amd64 root=UUID=1ad904c4-eaf0-4860-86f0-fabfa5df7bc0 ro
initrd /boot/initrd.img-2.6.39-bpo.2-amd64
title Debian GNU/Linux, kernel 2.6.39-bpo.2-amd64 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.39-bpo.2-amd64 root=UUID=1ad904c4-eaf0-4860-86f0-fabfa5df7bc0 ro single
initrd /boot/initrd.img-2.6.39-bpo.2-amd64
### END DEBIAN AUTOMAGIC KERNELS LIST我试过自录,但它只是打印出来
Boot Info Script 0.61 [1 April 2012]
Identifying MBRs...
Finished. The results are in the file "RESULTS.txt"结果文件中没有任何有用的内容:
============================= Boot Info Summary: ===============================
============================ Drive/Partition Info: =============================
no valid partition table found
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/xvda1 1ad904c4-eaf0-4860-86f0-fabfa5df7bc0 ext3
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/disk/by-uuid/1ad904c4-eaf0-4860-86f0-fabfa5df7bc0 / ext3 (rw,relatime,errors=remount-ro,barrier=0,data=ordered)发布于 2016-03-14 19:40:41
这与虚拟化平台XenServer有关。显然,它并不真正使用grub,而是自行读取配置。没有完全验证,但很可能是因为grub.cfg文件只包含来自grub-pc的旧内核版本。
https://unix.stackexchange.com/questions/266259
复制相似问题