os-prober 不返回任何内容

tra*_*ter 3 grub2

如果 os-prober 什么也不返回,这意味着什么。

我知道这应该找到我安装的所有操作系统。但我是从 ubuntu 运行的,所以我希望它至少能找到它。但我根本没有得到任何输出。

sudo fdisk -l 给出

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00067959

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4680    37590016   83  Linux
/dev/sda2            4680        4866     1489921    5  Extended
/dev/sda5            4680        4866     1489920   82  Linux swap / Solaris
Run Code Online (Sandbox Code Playgroud)

arr*_*nge 5

os-prober脚本旨在查找已安装的根系统之外的其他操作系统。由于您没有任何这些(交换不是操作系统),因此os-prober不会返回任何内容。

要填充 grub 菜单,请使用以下sudo update-grub命令。这也将包括已安装的分区。