>  Can you give a bit more detail on the automount side?

The usbmount util is dead-simple.  It's just a custom udev rule that
invokes a simple script.  The config file is very verbose, and there
are really not a whole lot of options anyway.


Here's the info I added to the Freevo wiki:

http://doc.freevo.org/Hardware/CompactFlash#head-7f7deaed368fe8d16c4e3316e97087696caf624e

Auto-Mounting USB Storage Devices

Now that your Freevo box is up and running, you are probably going to
want to make some content available. An easy way to do this is to set
the system up to automatically mount/unmount USB drives, thus allowing
you to watch movies you've downloaded. I like the usbmount package for
this, since it is small, has minimal dependencies, and is really easy
to configure. You might also be interested in ivman or some other
auto-mount solution.

Installing and configuring usbmount is easy:

   1. Install usbmount: "sudo apt-get install usbmount"
   2. Configure usbmount by editing the file
/etc/usbmount/usbmount.conf. The file is very well commented, so it
should be simple to configure to suit your needs. Don't forget that
you need root privileges to edit the file: "sudo vi
/etc/usbmount/usbmount.conf"
   3. Since most USB thumbdrives are formatted as VFAT volumes, you
will probably want to configure usbmount to support VFAT partition
types. Look for the "FILESYSTEMS" line and add "vfat" to the list of
supported types (there will probably be entries for ext2 and ext3
already).
   4. The config file warns that VFAT filesystems can be corrupted if
not properly unmounted. In my case, I chose to deal with this by
mounting the filesystems as read-only. To do this, I modified the
"MOUNTOPTIONS" line to read as follows:
MOUNTOPTIONS="ro,sync,noexec,nodev,noatime" Note the inclusion of the
read-only option, "ro". By doing this, I can easily remove a USB
thumbdrive without having to go through the hassle of syncing and
unmounting the drive. More importantly, my wife and children can
insert and remove USB thumbdrives without having to sync and unmount
them!

Note: the change to the "MOUNTOPTIONS" line affects all filesystems
handled by usbmount. If you want to be more selective, you can modify
the "FS_MOUNTOPTIONS" line and specify options that only apply to VFAT
partitions. In my case, I want all removable storage devices mounted
read-only by deafult, but you may feel differently.

------------------------------------------------------------------------------
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to