问题如下:
% grub-install /dev/sdc5
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists
即grub-install
拒绝继续使用阻止列表,并说“文件系统 'ext2' 不支持嵌入”。但是,我的不是ext2
文件系统,而是ext4
,并且它不需要 fsck:
$ mount | grep /dev/sdc5
/dev/sdc5 on /mnt/osp type ext4 (rw,noatime,nodiratime,data=ordered)
% umount /dev/sdc5
umount: /dev/sdc5: not mounted.
% fsck.ext4 /dev/sdc5
e2fsck 1.44.1 (24-Mar-2018)
osp: clean, 115049/513072 files, 897251/2048287 blocks
因为grub-install
认为我的文件系统是 ext2 而不是 ext4,我甚至无法将 grub 引导加载程序安装到它,所以我的操作系统无法启动。
答案1
问题不在于它将其识别为 ext2 而不是 ext4。问题在于您告诉它安装到 ext4 格式的分区中,而不是安装到包含该分区的磁盘上。
尝试:
grub-install /dev/sdc