Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev+dbus+hal and USB stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Sat Jul 23, 2005 10:43 am    Post subject: udev+dbus+hal and USB stick Reply with quote

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
View user's profile Send private message
razorback
n00b
n00b


Joined: 21 Sep 2003
Posts: 24

PostPosted: Sat Jul 23, 2005 12:29 pm    Post subject: Reply with quote

Take a look at /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Sat Jul 23, 2005 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
razorback
n00b
n00b


Joined: 21 Sep 2003
Posts: 24

PostPosted: Sat Jul 23, 2005 1:00 pm    Post subject: Reply with quote

<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
View user's profile Send private message
andyfraser33
Apprentice
Apprentice


Joined: 11 Nov 2004
Posts: 166
Location: Oxford, UK

PostPosted: Sat Jul 23, 2005 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Sun Jul 24, 2005 1:27 pm    Post subject: Reply with quote

This is a due to the changes to the vfat filesystem in the 2.6.12 kernel.

https://bugs.gentoo.org/show_bug.cgi?id=99039

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum