• [^] # Re: Linux gadget

    Posté par . En réponse au message Emuler une clef USB avec un PC Linux. Évalué à 4.

    Je me disais bien...

    un peu plus loin on trouve:

    File-backed Storage ... implements the USB Mass Storage class (as CB, CBI, or BBB), appearing to the host as a SCSI disk drive. This uses a file or block device as a backing store for the drive, like the "loop" driver. (Read about how to set up the backing store.) The 2.6 version also lets you change the backing file associated with a given LUN. For example, you might specify the block device for an MMC card when that card is inserted (maybe using a hotplug script, or a GUI). Note that for MS-Windows interoperability, your backing store needs to be formatted with a DOS partition label. Data partitions can then be formatted with VFAT (for the widest interoperability) or some other filesystem (such as ext3 or reiserfs, for use with Linux

    et là c'est encore mieux : http://www.linux-usb.org/gadget/file_storage.html

    modprobe g_file_storage file=/root/data/backing_file,/dev/hda7

    Je sens qu'on se rapproche