On Wed, Dec 13, 2023 at 11:46:51AM +0100, lacsaP Patatetom wrote:
to quickly test my efi application `./esp/EFI/BOOT/BOOTX64.EFI`, I use the
following command `qemu-system-x86_64 -accel kvm -machine q35 -m 1024 -bios
/usr/share/edk2/x64/OVMF.fd -hda fat:./esp/ -snapshot` but it has recently
failed with the error message given in subject.
I'm not familiar with the QEMU vvfat driver, but FAT16 does allow
larger filesystems, I suspect there's a limitation there?
for various reasons, i can't purge/reinitailize/empty the folder :
what other options do I have with qemu or do I have to start from a
lighter folder ?
You can create a FAT image, put your files there using e.g mtools and
boot from that image:
$ fallocate -l 1G esp.img
$ mformat -i esp.img
$ mcopy -i esp.img -s /path/to/files ::
Berto