13 lines
248 B
Bash
Executable File
13 lines
248 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -xe
|
|
|
|
rm -f test_drive.img
|
|
|
|
dd if=/dev/zero of=test_drive.img bs=1M count=128
|
|
|
|
parted test_drive.img --script mklabel msdos
|
|
parted test_drive.img --script mkpart primary fat32 1MiB 128MiB
|
|
|
|
mkfs.vfat -F 32 --offset 2048 test_drive.img
|