UEFI: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Changing disk size for emulation, makes FAT32 creation easier
Line 304: Line 304:
</source>
</source>


Next, create a FAT16 file system on the new partition. You can specify various parameters for the file system if you'd like, but it isn't necessary. Ideally you would create a FAT32 partition, for best BIOS compatibility, but FreeBSD sometimes creates FAT32 partitions that OVMF can't read. TODO - specify the right parameters to work around this.
Next, create a FAT16 file system on the new partition. You can specify various parameters for the file system if you'd like, but it isn't necessary. Ideally you would create a FAT32 partition for best firmware compatibility but FreeBSD seems to create FAT32 partitions that OVMF can't read.
<source lang="bash">
<source lang="bash">
$ newfs_msdos -F 16 md0p1
$ newfs_msdos -F 16 md0p1
newfs_msdos: trim 1 sectors to adjust to a multiple of 63
newfs_msdos: trim 2 sectors to adjust to a multiple of 9
/dev/md0p1: 66240 sectors in 8280 FAT16 clusters (4096 bytes/cluster)
/dev/md2p1: 93552 sectors in 11694 FAT16 clusters (4096 bytes/cluster)
BytesPerSec=512 SecPerClust=8 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=33 SecPerTrack=63 Heads=2 HiddenSecs=0 HugeSectors=66339
BytesPerSec=512 SecPerClust=8 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=46 SecPerTrack=9 Heads=16 HiddenSecs=0 HugeSectors=93681
</source>
</source>