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 14:05:20 +0100

Assuming a limit of 65536 sectors or clusters, 8 KiB clusters give a capacity of 536.87 MB (512 MiB).

"8 KB" would mean 8.000 bytes per cluster, and this can't have this suffix. There can be some confusion between MB and MiB in the subject too.


El 13/12/23 a les 13:39, lacsaP Patatetom ha escrit:
Le mer. 13 déc. 2023 à 13:29, Narcis Garcia <narcisgarcia@gilug.org <mailto:narcisgarcia@gilug.org>> a écrit :

    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


4Gb also seems possible : maximum size depends on cluster size.
qemu probably uses 8Kb clusters, which limits the size to 512Mb.

--
Narcis Garcia



reply via email to

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