SuSe 10 USB Drives

  • Post author:
  • Post category:Blog

Problem: Slow copy to a USB device.

Solution:SUSE 10 Release Notes document the issue and a potential solution.


Suse 10

The problem with this solution is the assumption that you are dealing with a usb disk. A disk will always have a volume.uuid whereas my muvo doesn’t seem to have one (volume.uuid=””).

A better solution is to apply the change to all USB devices by doing the following:

<?xml version=”1.0″ encoding=”ISO-8859-1″?> <!– -*- SGML -*- –>  
<deviceinfo version=”0.2″>  
  <device>  
    <!– disable sync for mount –>  
    <match key=”block.is_volume” bool=”true”>  
      <match key=”volume.fsusage” string=”filesystem”>  
        <match key=”@info.parent:storage.bus” string=”usb”>
          <merge key=”volume.policy.mount_option.sync”
type=”bool”>false</merge>  
        </match>  
      </match>  
    </match>  
  </device>  
</deviceinfo>

Copy the lines above to a texteditor and save the nosync.fdi file to
/usr/share/hal/fdi/policy/95userpolicy

restart hal:

rchal restart

And you should be in business. Run a tail -f /var/log/messages you should see something like this:

 Collected mount options and Called(0) /bin/mount -t subfs -o fs=floppyfss,procuid,nosuid,nodev,exec,utf8=true /dev/sdd1 "/media/usbdisk"

Note the sync option is not in the options.