引導 Lubuntu 時 Grub 找不到內核

引導 Lubuntu 時 Grub 找不到內核

我有一台舊電腦,大約 10 年沒有使用過。它安裝了 Ubuntu 11.04 和 Windows。我想在上面安裝 Lubuntu 並且能夠使用 grub 選擇啟動內容。

我安裝了 Lubuntu 20.04 LTS 並且安裝得很好。我的 PC 上有 3 個磁碟,Ubuntu 和 Lubuntu 位於 /dev/sdc 上。當我第一次安裝 Lubuntu 時,grub 中沒有它的條目。然後我運行啟動修復並添加了一些條目。例如:

Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os 'gnulinux-simple-xxxxxxxxxsome-guidxxxxxx (on dev/sda8)

當我嘗試選擇上述內容時,我得到以下資訊:

error: file not found. error: you need to load the kernel first

我不確定什麼樣的診斷資訊會有幫助。

編輯:運行sudo grub-mkconfig -o /boot/grub/grub.cfg.new並得到以下輸出。請注意,沒有列出新的 Linux 核心:

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sdc1
done

答案1

grub-mkconfig -o /boot/grub/grub.cfg

更新你的 grub 檔應該可以解決這個問題。

相關內容