livecd iso 转磁盘失败

livecd iso 转磁盘失败

我用来livecd-iso-to-disk制作多启动U盘。但是得到错误,当然我已经添加了--reset-mbr

▶ sudo livecd-iso-to-disk --format --reset-mbr --efi --multi --livedir fedora '/home/eexpss/ISO/Fedora-Workstation-Live-x86_64-25-1.3.iso' /dev/sdc1
Verifying image...
/home/eexpss/ISO/Fedora-Workstation-Live-x86_64-25-1.3.iso:   ec5039af1735642e222e97e02ab0e1e9
Fragment sums: f48e661d962e6316cbc6e16a4ee4ff9f99fa06151ceacc4f3f1973368a93
Fragment count: 20
Supported ISO: no
Press [Esc] to abort check.
Checking: 100.0%

The media check is complete, the result is: PASS.

It is OK to use this media.
/bin/livecd-iso-to-disk: line 492: : command not found

    WARNING: This will DESTROY All DATA on: /dev/sdc !!

        Press Enter to continue, or Ctrl C to abort.

/dev/sdc: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 8 bytes were erased at offset 0x1cdd7ee00 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success
Waiting for devices to settle...
mkfs.fat 4.1 (2017-01-24)

        ALERT:
        The partition name must be 'EFI System Partition'.

        This can be set with a partition editor, such as parted,
        or you can run livecd-iso-to-disk with the --reset-mbr option.

这是 中的第 488 行到 499 行/bin/livecd-iso-to-disk

checkLVM() {
    local dev=$1

    if type pvs >/dev/null 2>&1 &&
        "$(pvs -o vg_name --noheadings $dev* 2>/dev/null || :)"; then  <-- line 492
        printf "\n        ATTENTION:
        Device '$dev' contains a volume group and cannot be formatted!\n\n
        You can remove the volume group using vgremove.\n"
        exitclean
    fi
    return 0
}

答案1

经过十几次测试,我发现它来自--efi。当我去掉这个参数后,我可以继续执行。

我想也许 livecd-iso-to-disk 对 LVM 和 UEFI 没有很好的支持。

相关内容