xref: /DragonOS/tools/create_hdd_image.sh (revision 0d0705a1694bfa057c1f84ee7c683a3653a9160f)
1echo "Creating virtual disk image..."
2qemu-img create -f raw disk.img 16M
3fdisk disk.img
4sudo losetup -P /dev/loop1 --show disk.img
5lsblk
6#mkfs.vfat -F 32 /dev/loop1p1
7echo "Successfully created disk image, please make a FAT32 filesystem on it and move it to folder ../bin/"
8