ZFS-grub zfs 检测失败

ZFS-grub zfs 检测失败

我使用根池进行安装,因为rpool安装程序之前有该选项。

我的主硬盘坏了,所以我现在正在重新镀银,同时我正在新驱动器上重新安装 grub。不幸的是,我无法正确检测到 ZFS。我收到了error: unknown filesystem.grub 的可怕错误。

请注意,我认为这与重新镀银无关,因为我正在探测现有的[不是新的]设备。

您将看到它通过了除 #12 之外的所有检查,这似乎是功能检查。但是我在日志中没有看到任何功能错误。我已启用所有 0.8.3 功能。

我可以强制它检测为 ZFS 吗,或者有没有办法修复 grub?

日志如下:

root@ubuntu-server:~# grub-probe --device /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 -vvvvvvvvvv
grub-probe: info: cannot open `/boot/grub/device.map': No such file or directory.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 is not present.
grub-probe: info: Looking for /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/sdb is a parent of /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 starts from 1050624.
grub-probe: info: opening the device hostdisk//dev/sdb.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb' in open_device()
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb1' in open_device()
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb1'
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb1'
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb2' in open_device()
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/dfly.c:72: bad magic (found 0x20494645; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-probe: info: Partition 0 starts from 2048.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: Partition 1 starts from 1050624.
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 is present.
grub-probe: info: Looking for /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/sdb is a parent of /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 starts from 1050624.
grub-probe: info: opening the device hostdisk//dev/sdb.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb' in open_device()
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/dfly.c:72: bad magic (found 0x20494645; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-probe: info: Partition 0 starts from 2048.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: Partition 1 starts from 1050624.
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 is present.
grub-probe: info: Looking for /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/sdb is a parent of /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 starts from 1050624.
grub-probe: info: opening the device hostdisk//dev/sdb.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb' in open_device()
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/dfly.c:72: bad magic (found 0x20494645; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-probe: info: Partition 0 starts from 2048.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: Partition 1 starts from 1050624.
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-probe: info: opening hostdisk//dev/sdb,gpt2.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb,gpt2'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/kern/fs.c:56: Detecting zfs...
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb2' in open_device()
grub-core/fs/zfs/zfs.c:1196: label ok 0
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1011: check 2 passed
grub-core/fs/zfs/zfs.c:1022: check 3 passed
grub-core/fs/zfs/zfs.c:1029: check 4 passed
grub-core/fs/zfs/zfs.c:1039: check 6 passed
grub-core/fs/zfs/zfs.c:1047: check 7 passed
grub-core/fs/zfs/zfs.c:1058: check 8 passed
grub-core/fs/zfs/zfs.c:1068: check 9 passed
grub-core/fs/zfs/zfs.c:1090: check 11 passed
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1196: label ok 1
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1011: check 2 passed
grub-core/fs/zfs/zfs.c:1022: check 3 passed
grub-core/fs/zfs/zfs.c:1029: check 4 passed
grub-core/fs/zfs/zfs.c:1039: check 6 passed
grub-core/fs/zfs/zfs.c:1047: check 7 passed
grub-core/fs/zfs/zfs.c:1058: check 8 passed
grub-core/fs/zfs/zfs.c:1068: check 9 passed
grub-core/fs/zfs/zfs.c:1090: check 11 passed
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1196: label ok 2
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1196: label ok 3
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/kern/fs.c:78: zfs detection failed.
grub-core/kern/fs.c:56: Detecting xfs...
grub-core/fs/xfs.c:909: Reading sb
grub-core/fs/xfs.c:258: Validating superblock
grub-core/kern/fs.c:78: xfs detection failed.
grub-core/kern/fs.c:56: Detecting ufs2...
grub-core/kern/fs.c:78: ufs2 detection failed.
grub-core/kern/fs.c:56: Detecting ufs1_be...
grub-core/kern/fs.c:78: ufs1_be detection failed.
grub-core/kern/fs.c:56: Detecting ufs1...
grub-core/kern/fs.c:78: ufs1 detection failed.
grub-core/kern/fs.c:56: Detecting udf...
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/kern/fs.c:78: udf detection failed.
grub-core/kern/fs.c:56: Detecting tarfs...
grub-core/kern/fs.c:78: tarfs detection failed.
grub-core/kern/fs.c:56: Detecting squash4...
grub-core/kern/fs.c:78: squash4 detection failed.
grub-core/kern/fs.c:56: Detecting sfs...
grub-core/kern/fs.c:78: sfs detection failed.
grub-core/kern/fs.c:56: Detecting romfs...
grub-core/kern/fs.c:78: romfs detection failed.
grub-core/kern/fs.c:56: Detecting reiserfs...
grub-core/kern/fs.c:78: reiserfs detection failed.
grub-core/kern/fs.c:56: Detecting procfs...
grub-core/kern/fs.c:78: procfs detection failed.
grub-core/kern/fs.c:56: Detecting odc...
grub-core/kern/fs.c:78: odc detection failed.
grub-core/kern/fs.c:56: Detecting ntfs...
grub-core/kern/fs.c:78: ntfs detection failed.
grub-core/kern/fs.c:56: Detecting nilfs2...
grub-core/kern/fs.c:78: nilfs2 detection failed.
grub-core/kern/fs.c:56: Detecting newc...
grub-core/kern/fs.c:78: newc detection failed.
grub-core/kern/fs.c:56: Detecting minix_be...
grub-core/kern/fs.c:78: minix_be detection failed.
grub-core/kern/fs.c:56: Detecting minix3_be...
grub-core/kern/fs.c:78: minix3_be detection failed.
grub-core/kern/fs.c:56: Detecting minix3...
grub-core/kern/fs.c:78: minix3 detection failed.
grub-core/kern/fs.c:56: Detecting minix2_be...
grub-core/kern/fs.c:78: minix2_be detection failed.
grub-core/kern/fs.c:56: Detecting minix2...
grub-core/kern/fs.c:78: minix2 detection failed.
grub-core/kern/fs.c:56: Detecting minix...
grub-core/kern/fs.c:78: minix detection failed.
grub-core/kern/fs.c:56: Detecting jfs...
grub-core/kern/fs.c:78: jfs detection failed.
grub-core/kern/fs.c:56: Detecting iso9660...
grub-core/kern/fs.c:78: iso9660 detection failed.
grub-core/kern/fs.c:56: Detecting hfsplus...
grub-core/kern/fs.c:78: hfsplus detection failed.
grub-core/kern/fs.c:56: Detecting hfs...
grub-core/kern/fs.c:78: hfs detection failed.
grub-core/kern/fs.c:56: Detecting fat...
grub-core/kern/fs.c:78: fat detection failed.
grub-core/kern/fs.c:56: Detecting f2fs...
grub-core/kern/fs.c:78: f2fs detection failed.
grub-core/kern/fs.c:56: Detecting ext2...
grub-core/kern/fs.c:78: ext2 detection failed.
grub-core/kern/fs.c:56: Detecting exfat...
grub-core/kern/fs.c:78: exfat detection failed.
grub-core/kern/fs.c:56: Detecting cpiofs_be...
grub-core/kern/fs.c:78: cpiofs_be detection failed.
grub-core/kern/fs.c:56: Detecting cpiofs...
grub-core/kern/fs.c:78: cpiofs detection failed.
grub-core/kern/fs.c:56: Detecting cbfs...
grub-core/kern/disk.c:421: Read out of range: sector 0xe902808e (attempt to read or write outside of partition).
grub-core/kern/fs.c:78: cbfs detection failed.
grub-core/kern/fs.c:56: Detecting btrfs...
grub-core/kern/fs.c:78: btrfs detection failed.
grub-core/kern/fs.c:56: Detecting bfs...
grub-core/kern/fs.c:78: bfs detection failed.
grub-core/kern/fs.c:56: Detecting afs...
grub-core/kern/fs.c:78: afs detection failed.
grub-core/kern/fs.c:56: Detecting affs...
grub-core/kern/fs.c:78: affs detection failed.
grub-probe: error: unknown filesystem.

答案1

我在自己寻找有关 ZFS 的一些答案时偶然发现了您的问题,所以我现在对这个问题非常着迷。

虽然我没有直接的解决方案,但我想我可以分享一些来自工作系统的资源:

  1. UUID 是你的朋友 - 因为/dev/disk/by-id对 不是特别有用/etc/fstab,因此请确保你知道使用lsblk -fand/or哪个是哪个blkid
$ lsblk -f

nvme0n1
├─nvme0n1p1
│    vfat   FAT32       5363-5E6F                             485.1M     5% /boot/efi
├─nvme0n1p2
│    swap   1           e5e9eace-5ce4-4bea-a900-e836788963e7                [SWAP]
├─nvme0n1p3
│    zfs_me 5000  bpool 11441242366189825385                                
└─nvme0n1p4
     zfs_me 5000  rpool 10749750096631427503 

$ blkid | grep nvme
/dev/nvme0n1p1: UUID="5363-5E6F" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="09716541-5559-49f9-a998-e06bc57c1fe6"
/dev/nvme0n1p2: UUID="e5e9eace-5ce4-4bea-a900-e836788963e7" TYPE="swap" PARTUUID="69e175df-272a-7e4e-8691-c27bc7f08b32"
/dev/nvme0n1p3: LABEL="bpool" UUID="11441242366189825385" UUID_SUB="9297990641780606350" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="4716a6e3-b84f-344a-a8eb-528f4cbd0ff0"
/dev/nvme0n1p4: LABEL="rpool" UUID="10749750096631427503" UUID_SUB="9348454491950206043" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="72c4025b-023f-ef43-878d-9e1f60af796b"

$ cat /etc/fstab   # auto-generated during installer setup
❯ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# /boot/efi was on /dev/nvme0n1p1 during installation

UUID=5363-5E6F  /boot/efi       vfat    umask=0022,fmask=0022,dmask=0022      0       1
/boot/efi/grub  /boot/grub  none    defaults,bind   0   0
UUID=e5e9eace-5ce4-4bea-a900-e836788963e7   none    swap    sw  0   0
  1. 确保你的安装中所有与 grub 相关的软件包都存在。从 21.10 安装程序生成的设置开始:
$ apt list --installed | grep grub
grub-common/impish,now 2.04-1ubuntu47 amd64 [installed,automatic]
grub-efi-amd64-bin/impish,now 2.04-1ubuntu47 amd64 [installed,automatic]
grub-efi-amd64-signed/impish,now 1.173+2.04-1ubuntu47 amd64 [installed,automatic]
grub-efi-amd64/impish,now 2.04-1ubuntu47 amd64 [installed]
grub2-common/impish,now 2.04-1ubuntu47 amd64 [installed,automatic]
  1. 如果不存在 ZFS 特定文件/etc/grub.d,请获取它的副本并将其放在文件夹中:
❯ ls -la /etc/grub.d
total 117
drwxr-xr-x   2 root root    13 Jan 27 14:08 .
drwxr-xr-x 188 root root   311 Jan 27 15:21 ..
-rwxr-xr-x   1 root root 10627 Sep  2 05:37 00_header
-rwxr-xr-x   1 root root  6258 Sep  2 05:37 05_debian_theme
-rwxr-xr-x   1 root root 18151 Sep  2 05:37 10_linux
-rwxr-xr-x   1 root root 43031 Sep  2 05:37 10_linux_zfs
-rwxr-xr-x   1 root root 12894 Sep  2 05:37 20_linux_xen
-rwxr-xr-x   1 root root  1992 Oct  7 03:20 20_memtest86+
-rwxr-xr-x   1 root root 12059 Sep  2 05:37 30_os-prober
-rwxr-xr-x   1 root root  1424 Sep  2 05:37 30_uefi-firmware
-rwxr-xr-x   1 root root   214 Sep  2 05:37 40_custom
-rwxr-xr-x   1 root root   216 Sep  2 05:37 41_custom
-rw-r--r--   1 root root   483 Sep  2 05:37 README

注意:我尝试附加,10_linux_zfs但它太长了。不过,我找到了正确软件包的源代码 - 在右侧,您可以按.tar.gz格式下载并提取10_linux_zfs文件,或者下载grub-common-2.04-1ubuntu47.deb文件并重新安装整个软件包: https://packages.ubuntu.com/impish/grub-common

(请注意,如果您使用的是其他版本,您可以在顶部进行选择)

如果从本地包重新安装,apt 需要您指定文件位置 -./名称开头的部分。相对位置也可以,但需要明确:

$ sudo apt install -y --reinstall ./grub-common-2.04-1ubuntu47.deb

Apt 应该可以解决你可能需要的任何其他依赖项,因此我更喜欢.deb通过以下方式安装单个依赖项apt,而不是dpkg -i

相关内容