The Mostly Harmless USB Disk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
252 B

if [ -z $1 ]
echo "Usage: ./ <device>"
exit 1
sudo qemu-system-x86_64 \
-smp cpus=2 \
-enable-kvm -rtc base=localtime -m 2G -vga std -display sdl \
-drive file=/dev/$1,readonly=on,cache=none,format=raw,if=virtio