1 |
Am Montag, den 18.07.2005, 15:21 +0200 schrieb Jens Gassmann: |
2 |
|
3 |
> Mit der Kernelversion 2.6.12-r4 habe ich das Problem auch, die -r5 |
4 |
> konnte ich nicht nicht testen, |
5 |
|
6 |
|
7 |
Guten Tag zusammen, |
8 |
|
9 |
vor kurzem bin ich mit meinem USB-Stick ebenfalls ausgebremst worden. |
10 |
Im Gentoo-Forum beschuldigten einige aber nicht den Kernel, sondern HAL. |
11 |
|
12 |
http://forums.gentoo.org/viewtopic-t-356789-highlight-slow+usb.html |
13 |
|
14 |
Bei mir was das des Pudels Kern (statt 5h für 600MB nur noch wenige |
15 |
Minuten) |
16 |
|
17 |
Grüße |
18 |
|
19 |
Matthias |
20 |
|
21 |
Zitat: |
22 |
USB 2.0 will slow down extremely when writing to an (USB) device with |
23 |
vfat if you mount it with the "sync"-option. Unfortunately HAL exactly |
24 |
did this if the device was smaller than 2 GB. So I had to edit the |
25 |
file /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi and made this |
26 |
changes: |
27 |
|
28 |
<!-- Use noatime and sync options for all hotpluggable or removable |
29 |
volumes smaller than 2GB --> |
30 |
<match key="volume.size" compare_lt="2147483648"> |
31 |
<match key="@block.storage_device:storage.hotpluggable" |
32 |
bool="true"> |
33 |
<!-- Was |
34 |
true before --> |
35 |
<merge key="volume.policy.mount_option.sync" |
36 |
type="bool">false</merge> |
37 |
<merge key="volume.policy.mount_option.noatime" |
38 |
type="bool">true</merge> |
39 |
</match> |
40 |
<match key="@block.storage_device:storage.removable" |
41 |
bool="true"> |
42 |
<!-- Was |
43 |
true before --> |
44 |
<merge key="volume.policy.mount_option.sync" |
45 |
type="bool">false</merge> |
46 |
<merge key="volume.policy.mount_option.noatime" |
47 |
type="bool">true</merge> |
48 |
</match> |
49 |
</match> |
50 |
Code: |
51 |
|
52 |
<!-- Use noatime and sync options for all hotpluggable or |
53 |
removable |
54 |
volumes smaller than 2GB --> |
55 |
<match key="volume.size" compare_lt="2147483648"> |
56 |
<match key="@block.storage_device:storage.hotpluggable" |
57 |
bool="true"> |
58 |
<!-- Was |
59 |
true before --> |
60 |
<merge key="volume.policy.mount_option.sync" |
61 |
type="bool">false</merge> |
62 |
<merge key="volume.policy.mount_option.noatime" |
63 |
type="bool">true</merge> |
64 |
</match> |
65 |
<match key="@block.storage_device:storage.removable" |
66 |
bool="true"> |
67 |
<!-- Was |
68 |
true before --> |
69 |
<merge key="volume.policy.mount_option.sync" |
70 |
type="bool">false</merge> |
71 |
<merge key="volume.policy.mount_option.noatime" |
72 |
type="bool">true</merge> |
73 |
</match> |
74 |
</match> |
75 |
|
76 |
|
77 |
|
78 |
Now I can transfer with much higher speeds (~ 4 MB/s). The only thing is |
79 |
that it takes a while to umount the device. |