Re: How to export linux fs using USB MassStorage device



On Jul 9, 7:49 am, Dan Danillo <dandani...@xxxxxxxxx> wrote:

I'm using an embedded linux system and want to make a part of the file
system accessible from a Windows System using USB mass storage.

I know about the usb gadget driver g_file_store. This however only
works with devices or files.
As I want to be able to access the mass storage from Windows the
device/partiton or file must be formated in fat.

Is there a solution out there which lets me map a part of the linux fs
(tempfs, jffs2, fuse) as a fat formated block device or file?

Create a fat filesystem inside an image file on your linux file
system. Point gadget at this storage space, and it will represent it
to the USB host as a mass storage device containing a fat filesystem.

What you can't do is modify the contents of that file while it's
mounted on another machine as a USB mass storage device - even if it's
mounted read only, the remote machine isn't expecting the contents of
the disk to go and change unexpectedly, as that could break any
caching of data or metadata by the remote system.

I think if you want the embedded device to be able to modify it while
it's mounted, then windows is going to have to see it is a shared file
system, like a network one. To do that, you'd either need to install
drivers on the windows system - for example, gadget's usb network
driver, and then install samba on the embedded device and treat it as
a windows share.
.



Relevant Pages

  • Re: F6 beim Setup aber ohne 3,5" Floppy Drive
    ... Hier scheint ein wenig von dem "warum" drinzustecken: ... | The problem is that the first part of setup (loading the Mass Storage ... | driver) is not handled by Windows, but instead by the BIOS’s floppy ... | handled by Windows. ...
    (microsoft.public.de.german.windows.server.general)
  • Re: USB Function and RAM Filesystem
    ... The USB Mass Storage Function driver exposes a device-resident mass storage ... USB Mass Storage Function is not a file server. ...
    (microsoft.public.windowsce.platbuilder)
  • Boot from USB mass storage connected to HUB
    ... a USB mass storage, everything works great. ... Now I have to boot Xpe from the same mass storage but connected througha ... Windows XP logo appears and then a blue screen with this ... If this is the first time you have seen this stop error screen, restart your ...
    (microsoft.public.windowsxp.embedded)
  • Re: USB mass storage driver?
    ... Windows XP does not recognize USB Mass Storage Devices ... Delete following keys: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: USB firmware help needed
    ... > I have an Atmel AT89C5132 that has some USB mass storage firmware. ... Whether or not the Winblows USBstor.sys driver gives you access ...
    (comp.arch.embedded)

Loading