Скриншот я приложил в конце в файле `no_blockdev.png`
Разметка диска выглядит так:
В выводе blkid видно, что /dev/vda2 размечен в файловую систему ext4:livecd ~ # fdisk /dev/vda
Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.
Command (m for help): p
Disk /dev/vda: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FAF168F6-2AED-40C2-91A5-D06E0A8F207D
Device Start End Sectors Size Type
/dev/vda1 2048 8390655 8388608 4G EFI System
/dev/vda2 8390656 209713151 201322496 96G Linux filesystem
Command (m for help): q
Файл grub.cfg (часть его) выглядит так:livecd ~ # blkid
/dev/sr0: BLOCK_SIZE="2048" UUID="2024-05-05-18-47-55-00" LABEL="Gentoo amd64 20240505T170430Z" TYPE="iso9660" PTTYPE="PMBR"
/dev/loop0: BLOCK_SIZE="131072" TYPE="squashfs"
/dev/vda2: UUID="4ab0d80b-8236-40b9-b9d2-95ebdb96100b" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="ff6b0957-d60b-46bb-9406-b84ab12544e7"
/dev/vda1: UUID="3040-3197" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="db9ad88c-fd3e-4b61-8b22-cc910dab5121"
На livecd не работает emerge (отсутствует). А после выполнения arch-chroot /mnt/gentoo не работает emerge, потому что не видна директория /var/db/repos/gentoo (на livecd нет модуля 9p, а часть директорий виртуальной машины была смонтирована с основной машины). Старое ядро я по-неаккуратности стёр (чтобы получить более "чистый" конфиг grub).ivecd ~ # grep -C3 "linux" /boot/grub/grub.cfg
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4ab0d80b-8236-40b9-b9d2-95ebdb96100b' {
load_video
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 3040-3197
echo 'Loading Linux 6.6.32-gentoo-dist ...'
linux /kernel-6.6.32-gentoo-dist root=/dev/vda2 ro
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-4ab0d80b-8236-40b9-b9d2-95ebdb96100b' {
menuentry 'Gentoo GNU/Linux, with Linux 6.6.32-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.32-gentoo-dist-advanced-4ab0d80b-8236-40b9-b9d2-95ebdb96100b' {
load_video
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 3040-3197
echo 'Loading Linux 6.6.32-gentoo-dist ...'
linux /kernel-6.6.32-gentoo-dist root=/dev/vda2 ro
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.32-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.32-gentoo-dist-recovery-4ab0d80b-8236-40b9-b9d2-95ebdb96100b' {
load_video
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 3040-3197
echo 'Loading Linux 6.6.32-gentoo-dist ...'
linux /kernel-6.6.32-gentoo-dist root=/dev/vda2 ro single
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then