qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Directory does not fit in FAT16 (capacity 516.06 MB)


From: Narcis Garcia
Subject: Re: Directory does not fit in FAT16 (capacity 516.06 MB)
Date: Wed, 13 Dec 2023 13:27:49 +0100

A FAT16 partition (0x06) can be as large as 2 GiB


El 13/12/23 a les 12:23, Alberto Garcia ha escrit:
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


--
Narcis Garcia



reply via email to

[Prev in Thread] Current Thread [Next in Thread]