mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-23 11:46:27 -04:00
Small tutorial to create a FAT32 image for the operating system
parent
c55128ab4d
commit
2542c59067
13
Create-FAT32-image.md
Normal file
13
Create-FAT32-image.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user