如何知道安装grub的分区


13

我是Natty的Dual Booting Maverick。我想知道哪个分区安装了Grub

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

在特立独行上,没有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$ 

Answers:


12

一种方法是运行启动信息脚本。它将返回文件RESULTS.txt,其中将包含类似于以下内容的行:

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


它说`=> Grub 2安装在/ dev / sda的MBR中并寻找Bem。
Gaurav Butola,2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.