如何知道安装grub的分区

Gau*_*ola 13 grub2 dual-boot

我是Natty 的双启动Maverick。我想知道哪个分区安装了Grub

我想确保grub安装在特立独行的分区而不是整洁的分区中,这样当我删除整洁的分区时,在没有grub的情况下我就不会出现启动问题。

在 Maverick 上没有menu.list文件,/boot/grub但 natty 有一个。

这是输出 fdisk -l

gaurav@gaurav-desktop:~/Desktop$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x9cdb9cdb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7295    58592773+  83  Linux
/dev/sda2            7295       25475   146033664   83  Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3           25476       32194    53970367+  83  Linux
/dev/sda4           32195       35483    26414081    5  Extended
/dev/sda5           32195       32444     1999872   82  Linux swap / Solaris
/dev/sda6           32444       35483    24413184   83  Linux
gaurav@gaurav-desktop:~/Desktop$ 
Run Code Online (Sandbox Code Playgroud)

Cen*_*usA 12

一种方法是运行Boot Info Script。它将返回文件 RESULTS.txt,其中将包含类似于以下内容的行:

=> Grub 2 安装在 /dev/sda 的 MBR 中,并在分区 #7 的同一驱动器上查找 /boot/grub。