Setting QEMU Disk Geometry
Posted: Mon May 17, 2010 4:22 am
Hi,
I've got a FAT32 boot sector driver which works fine on real hardware but not on QEMU. The driver loads sectors correctly on real hardware but not when I use QEMU.
This bootsector is installed on a usb stick with a sector size of 512 bytes and a capacity of 4GB. Does QEMU use larger sector sizes for images greater than the size of a floppy? How can I get QEMU to see the usb stick as a great big floppy?
To get the usb stick to boot on real hardware I get the BIOS to boot from a USB FDD device.
I use the following commands for qemu:
qemu /dev/sdb
qemu usb.img
qemu -drive file=usb.img if=floppy index=0
TIA
I've got a FAT32 boot sector driver which works fine on real hardware but not on QEMU. The driver loads sectors correctly on real hardware but not when I use QEMU.
This bootsector is installed on a usb stick with a sector size of 512 bytes and a capacity of 4GB. Does QEMU use larger sector sizes for images greater than the size of a floppy? How can I get QEMU to see the usb stick as a great big floppy?
To get the usb stick to boot on real hardware I get the BIOS to boot from a USB FDD device.
I use the following commands for qemu:
qemu /dev/sdb
qemu usb.img
qemu -drive file=usb.img if=floppy index=0
TIA