View previous topic :: View next topic |
Author |
Message |
fourhead l33t
Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Sat Jul 23, 2005 10:43 am Post subject: udev+dbus+hal and USB stick |
|
|
I have setup udev+hald+dbus to auto-mount my USB sticks, an external harddrive and a MP3 player. It works well, the only problem is that the USB stick and the MP3 player are always mounted with the "sync" flag set, thus I get an transfer rate of only around 30kb/s when writing to them. If I manually change the fstab entry that hal/dbus creates to use the async flag, I get around 3-4mb/s which is what I want. I didn't find anything in hal/dbus config files where I could change this behaviour. The USB harddisk is not mounted with this sync flag turned on, so there must be something where this can be configured. Can somebody help me?
Tom |
|
Back to top |
|
|
razorback n00b
Joined: 21 Sep 2003 Posts: 24
|
Posted: Sat Jul 23, 2005 12:29 pm Post subject: |
|
|
Take a look at /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi |
|
Back to top |
|
|
fourhead l33t
Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Sat Jul 23, 2005 12:39 pm Post subject: |
|
|
Thank you so much, that was exactly what I needed! I did only look into /etc, didn't care about /usr/share at all (this should really go into /etc I think!!)
Tom |
|
Back to top |
|
|
razorback n00b
Joined: 21 Sep 2003 Posts: 24
|
Posted: Sat Jul 23, 2005 1:00 pm Post subject: |
|
|
<Thank you so much, that was exactly what I needed! I did only look into /etc, didn't care about /usr/share at all (this should really go into /etc I think!!)>
I'm glad you got it fixed.
Yep, that is the wonderous world of the linux configuration files. I have had my own problems with the /dbus/hal/ivman triplet. Most annoying is the default behavior of ivman to mount everything in fstab that is mountable. The "noauto" option is completely ignored. Took me a while to fix that one. |
|
Back to top |
|
|
andyfraser33 Apprentice
Joined: 11 Nov 2004 Posts: 166 Location: Oxford, UK
|
Posted: Sat Jul 23, 2005 8:14 pm Post subject: |
|
|
I'm probably missing something here but isn't it dangerous to mount a USB mass storage device without the sync option? If you forget to unmount it and just yank it out not everything will be written to the device surely.
30KB/s does sound very slow though. My USB 1.1 card reader performs better than that with the sync option so I'm wondering if something else is wrong. _________________ Andy. |
|
Back to top |
|
|
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
|
Back to top |
|
|
|