% dd if=/dev/zero of=disk.img bs=1 count=264241152
% fdisk disk.img
; запуск qemu с дискеты + format C:
; получили образ диска disk.img объемом 252 MB
Как его подмонтировать под Linux ?
# mount -o loop disk.img fs
mount: you must specify the filesystem type
Иначе приходится обмениваться с этим диском данными через дискетку под QEMU.
# fdisk disk.img
You must set cylinders.
You can do this from the extra functions menu.
Command (m for help): p
Disk disk.img: 0 MB, 0 bytes
16 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
disk.img1 * 1 512 258016+ 6 FAT16
Command (m for help): q