[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual pendrive: image

From: Lukas Straub
Subject: Re: Virtual pendrive: image
Date: Sat, 25 Apr 2020 15:33:18 +0200

On Sat, 25 Apr 2020 08:47:31 +0200
Narcis Garcia via <address@hidden> wrote:

> I need to emulate an USB stick with only image file backend.
> I've tried this:
> $ qemu-system-x86_64 (...) -device virtio-scsi -drive
> file=pendrive.img,media=disk,discard=unmap,detect-zeroes=unmap,index=1
> But all Windows applications in VM detect it as a hard disk. I need to
> use some of them dedicated to format USB pendrives.
> How can I do it with qemu command line parameters?
> Thank you.

By emulating a usb drive of course:

qemu-system-x86_64 -usb -drive if=none,id=stick,file=pendrive.img -device 

Attachment: pgppKQYRZLCgc.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]