我无法grub
在 上安装Fedora
。我运行了以下命令,
# fallocate -l 1G archlinux.raw
# fdisk archlinux.raw <<< '
$ > o
$ > n
$ > p
$ > 1
$ >
$ >
$ > a
$ > w'
# losetup -f --show archlinux.raw
# kpartx -a /dev/loop0
# mkfs.ext4 /dev/mapper/loop0p1
# TMPDIR=/full/path/to/temporary/directory
# mount /dev/mapper/loop0p1 $TMPDIR
# grub-install --boot-directory=$TMPDIR/boot /dev/loop0
Installing for i386-pc platform.
Volume group "loop3p1" not found
Cannot process volume group loop3p1
Volume group "loop3p1" not found
Cannot process volume group loop3p1
grub-install: error: disk `lvm/loop3p1' not found.