How to make a virtual USB drive in Windows?

26

15

How can I make a virtual USB drive in Windows? Can it be done with DAEMON Tools or something like that?

The reason is that I need the USB drive to use them instead of a physical USB. Sometimes I need to load certificate from USB but I left it at home and when I'm on the job I want to make a virtual USB and put on them certificate, so how can I do that?

john

Posted 2013-06-20T08:32:41.077

Reputation: 271

1Many programs require a removable usb to interact with rather than an HDD folder and thus providing a method to build a virtual removable usb is an important query in its own right. – Mr Purple – 2017-08-21T20:52:05.073

3It's maybe sound like xy problem but it's very clear and exact question, anyway ... i need usb drive to use them instead of physical usb. Sometimes i need to load certificate from usb but i left it at home and when i'm on job i want to make virtual usb and put on them certificate, so how can i do that? ... thnx for effort – john – 2013-06-20T09:55:27.920

You could use a Ramdisk: http://memory.dataram.com/products-and-services/software/ramdisk

– Axel Kemper – 2013-06-20T12:06:37.717

@AxelKemper thnx man for help it helps me, but still i didn't find way to fool application which check it certificates are on real usb or not ... – john – 2013-06-20T14:47:53.587

Yes, the idea of smartcards and USB tokens is that nobody should be able to copy them (https://www.entrust.com/smartcards-and-usb-tokens/). To use a "two-factor authentification" you have to 1) know something (a PIN or password) and 2) have something (the token). You could use an X.509 PKI certificate stored in a file (http://en.wikipedia.org/wiki/X.509).

– Axel Kemper – 2013-06-20T16:20:00.167

Answers

17

You can use ImDisk to create a removable USB drive

imdisk -a -s 536870912 -m R: -o rem -p "fs:ntfs /q /y"

-a      Attach a virtual disk. This will configure and attach a virtual disk
        with the parameters specified and attach it to the system.
-s      Size of the virtual disk. Size is number of bytes
-m      Specifies a drive letter or mount point for the new virtual disk
-o rem  Specifies that the device should be created with removable media
        characteristics.
-p      'format' command to create a filesystem when the new virtual disk has 
        been created. "/fs:ntfs /q /y" is: Create an NTFS filesystem with quick 
        formatting and without user interaction.

How to install

  • For a CMD version download ImDisk Toolkit, extract it with 7-zip and copy these 2 files

    ..\cpl\i386\imdisk.cpl
    ..\cli\i386\imdisk.exe
    
  • For a GUI version download ImDisk Toolkit and just install it

Further links

Nanobrains

Posted 2013-06-20T08:32:41.077

Reputation: 329

You missing a slash (before "fs") for this command to work. like this: imdisk -a -s 536870912 -m R: -o rem -p "/fs:ntfs /q /y" – Yitzchak – 2019-03-05T20:16:01.970

4Please don't write USB in your answer, ImDisk creates just removable drive not USB removable drive. If vmware is running that will not detect a new usb drive and will not provide an option to attache to guest. – Sumit – 2019-05-11T14:39:48.340