mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-08 03:47:15 -04:00
2
Create FAT32 image
Baptiste Wicht edited this page 2013-11-04 23:09:01 -08:00
These commands create a FAT32 image that can be used with Qemu/Bochs:
dd if=/dev/zero of=hdd.img bs=516096c count=1000
sudo fdisk -u -C1000 -S63 -H16 hdd.img
n,t(c),a(1),w
sudo losetup -o1048576 /dev/loop0 hdd.img
sudo mkdosfs -F32 /dev/loop0 502976
The image can then be mounted to be manipulated:
sudo mount -tvfat /dev/loop0 /mnt/somewhere
...
sudo umount /mnt/somewhere