DragonOS/tools/create_hdd_image.sh

11 lines
382 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo "Creating virtual disk image..."
qemu-img create -f raw disk.img 16M
# 分别输入o、n, 然后按4次回车直到回到fdisk的默认界面
# 再输入w即可
# 按顺序输入,并且,每次输入完成后要按下回车)
fdisk disk.img
echo "Successfully created disk image, please make a FAT32 filesystem on it"
sudo mkdir -p ../bin
sudo cp ./disk.img ../bin/