一个完整的建议,同样来自https://bugzilla.novell.com/show_bug.cgi?id=105871
One tip: if you looking for the right string for "volume.uuid, you can run
lshal with lshal > /root/lshal_out.txt within a console during the USB-Stick is
mounted and open the Textfile with kwrite /root/lshal_out.txt, Then you can
search within the textfile for the volume,uuid-string according to the
mountpoint of your USB-Stick. These are the outputs for my usb-stick.
>>>>>
volume.mount_point = '/media/usbdisk' (string)
volume.label = '' (string)
volume.uuid = 'E4DE-3250' (string)
<<<<<
Another tip:
If you want to disable sync-option in every usb-device, you can change the
nosync.fdi-file to this:
<?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
After "rchal restart" the sync option is disabled for every usb-device. |