How is possible to create virtual USB drive?
I found some examples, that they included some *.iso file into mount directory.
But i would like to create empty virtual USB drive with about 4 GB volume.
I am using Ubuntu GNOME 16.04 LTS.
Thank you
How is possible to create virtual USB drive?
I found some examples, that they included some *.iso file into mount directory.
But i would like to create empty virtual USB drive with about 4 GB volume.
I am using Ubuntu GNOME 16.04 LTS.
Thank you
To create a virtual USB volume use the following steps:
Use fallocate
to create a new file:
fallocate -l 4000M Virtual_usb.img
Format it:
mkfs -t ext4 Virtual_usb.img
Create a mount point:
mkdir /media/usb_mount_point
mount it:
mount -t auto -o loop Virtual_usb.img /media/usb_mount_point