我的根分区是/dev/md0,我更改了分区和文件系统的大小。现在,当我运行 update-grub 和 install-grub 时,它失败了:
# grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: unknown filesystem.
# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-67-generic
Found initrd image: /boot/initrd.img-4.4.0-67-generic
/usr/sbin/grub-probe: error: unknown filesystem.
Found linux image: /boot/vmlinuz-4.4.0-66-generic
Found initrd image: /boot/initrd.img-4.4.0-66-generic
/usr/sbin/grub-probe: error: unknown filesystem.
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Run Code Online (Sandbox Code Playgroud)
。
# cat /proc/mdstat
...
md0 : active raid1 sda1[1] sdb1[0]
14553024 blocks [2/2] [UU]
unused devices: <none>
Run Code Online (Sandbox Code Playgroud)
。
# cat /proc/partitions
major minor …
Run Code Online (Sandbox Code Playgroud)