Linux as slave USB drive?

Does anybody know if it’s possible to make Ubuntu/Linux laptop to work as a usb slave drive? Here are people who also need this but still didn’t find any workable solution:


Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

2 thoughts on “Linux as slave USB drive?”

  1. I'm not going to register for the forum just to answer, but should you want to, you they can use the USB gadget kernel module:

    modprobe g_file_storage file=/tmp/backing_file

    It won't let you share an already mounted volume, but it will turn an arbitrary file into a mass storage device that can them be formatted and used.

Leave a Reply

Your email address will not be published. Required fields are marked *