1,create a hard disk image using qemu-img:
qemu-img create -f raw hd.disk 1G
2,format this disk file with ext2 filesystem on it:
mkfs.ext2 hd.disk type y
3,copy directories to hd.disk:
mount -text2 -oloop hd.disk /mnt cp -r bin /mnt cp -r lib /mnt cp -r root /mnt umount /mnt
4,run qemu with command below:
qemu -fda floppy.img -boot a -monitor stdio -drive id=disk,file=hd.disk,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0