更新后 grub-install 出现错误

更新后 grub-install 出现错误

昨天我在我的机器上执行了 apt-get 更新:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

在更新过程中,我收到一条错误消息,提示 grub-install 失败。更新也停止了。现在,当我手动尝试运行 grub-install 时,我收到相同的错误:

grub-install /dev/sdb
Installing for i386-pc platform.
grub-install: error: disk `mduuid/32f3800c32f8e591df70a045db28f609' not found.

fdisk -l 的内容如下:

fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
256 heads, 63 sectors/track, 363376 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.


Disk /dev/md2: 2991.3 GB, 2991329640448 bytes
2 heads, 4 sectors/track, 730305088 cylinders, total 5842440704 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table


Disk /dev/md0: 8585 MB, 8585674752 bytes
2 heads, 4 sectors/track, 2096112 cylinders, total 16768896 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table


Disk /dev/md1: 536 MB, 536543232 bytes
2 heads, 4 sectors/track, 130992 cylinders, total 1047936 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

有两个磁盘正在运行软件 raid。这是 mdadm 的输出:

mdadm --detail --scan
ARRAY /dev/md/2 metadata=1.2 name=rescue:2 UUID=49425383:18f73adb:6ebb09e6:fc69e14a
ARRAY /dev/md/0 metadata=1.2 name=rescue:0 UUID=861ecfae:2c015de6:229d0894:82819cc0
ARRAY /dev/md/1 metadata=1.2 name=rescue:1    UUID=32f3800c:32f8e591:df70a045:db28f609

这与我的 mdadm.conf 的内容相符:

cat /etc/mdadm/mdadm.conf

CREATE owner=root group=disk mode=0660 auto=yes

HOMEHOST <system>

MAILADDR root

ARRAY /dev/md/0 metadata=1.2 UUID=861ecfae:2c015de6:229d0894:82819cc0 name=rescue:0
ARRAY /dev/md/1 metadata=1.2 UUID=32f3800c:32f8e591:df70a045:db28f609    name=rescue:1
ARRAY /dev/md/2 metadata=1.2 UUID=49425383:18f73adb:6ebb09e6:fc69e14a name=rescue:2

知道这里发生什么事了吗?

相关内容