[opensuse-kde3] Automounting of NTFS partition on USB disk uses wrong option "sync" [was Strange behavior of external disk with encrypted and clear partitions on opensuse list]
![](https://seccdn.libravatar.org/avatar/b522fc9af12fe5670d5273601d29477a.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've noticed that under oS12.1 / KDE3 writing to NTF partition on external USB disk is terribly slow. It was not before and my (wrong) impression was that it happened after I defined the second partition on that disk as encrypted ReiserFS. The same disk worked perfectly well under oS11.4/KDE3. After discussion on opensuse list it turned out that the reason was that auto-mounter mounted this partition with sync option. Manual remounting without sync resolved the issue. I've also checked that under 12.1/KDE4 the disk is mounted correctly without "sync". So two questions: 1) was there any KDE3 / 12.1 update during last 2-3 weeks that changed something in auto-mounter behavior? 2) if possible, can someone explain or refer me to some documentation describing how this auto-mounting mechanism works (general flow and where the mounting options come from). Regards, - -- Mark -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPy5eHAAoJEKWTiqSclQacCTgIAJS04+pO4JOpglsaQaSp8DrM tpLrpLnE+6usn8uU0iZKx54GSEqFv7CAY/9vjNXkEr2vwFklsI5ilixIcq7xGJO9 rVqXBpkoLrSfQS9xEMU8pve2SH9INjeCo+LYbcWD3oH81pDIDVV0HRuuw09BMJvR QbIQ6p4z0ws5UEx/V+vivUn84SS5RDkjXbNWILgbvkPobXc3Z8X8jpFNooHvN3QY d8hwHXpuxc79WgVf3+of+zNrYJ6FYsbgx/wChVaUdibUKbs7sktyKMmueQPrWNMn 5ukPQuEvRrdUDJ/F059RPkfTosuT+saROax8B1hjt2K1iZ6QBinarwsfDK1X46Q= =RmWj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/57026391ede7e8b31de2d5abc5f93321.jpg?s=120&d=mm&r=g)
On Sunday 03 June 2012 20:57:43 Mark Goldstein wrote:
I've noticed that under oS12.1 / KDE3 writing to NTF partition on external USB disk is terribly slow. It was not before and my (wrong) impression was that it happened after I defined the second partition on that disk as encrypted ReiserFS. The same disk worked perfectly well under oS11.4/KDE3. After discussion on opensuse list it turned out that the reason was that auto-mounter mounted this partition with sync option. Manual remounting without sync resolved the issue. I've also checked that under 12.1/KDE4 the disk is mounted correctly without "sync".
Always use "sync" on removable devices otherwise you are risking to loose data if the device is removed. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/b522fc9af12fe5670d5273601d29477a.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/03/2012 09:22 PM, Ilya Chernykh wrote:
On Sunday 03 June 2012 20:57:43 Mark Goldstein wrote:
I've noticed that under oS12.1 / KDE3 writing to NTF partition on external USB disk is terribly slow. It was not before and my (wrong) impression was that it happened after I defined the second partition on that disk as encrypted ReiserFS. The same disk worked perfectly well under oS11.4/KDE3. After discussion on opensuse list it turned out that the reason was that auto-mounter mounted this partition with sync option. Manual remounting without sync resolved the issue. I've also checked that under 12.1/KDE4 the disk is mounted correctly without "sync".
Always use "sync" on removable devices otherwise you are risking to loose data if the device is removed. Not if you unmount it before removing, as far as I know.
When this disk is mounted with sync, writing to it is unacceptably slow (20-30 kB/sec, > 4 hours for 500 MB file). Without sync option it is ~40MB/sec. In any case, could you please explain where it is defined? There is no explicit rule in udev, at least I could not find it. I understood that kded module is involved, but do not know the details. Is there any configuration I could change, or is it kind of "hard-coded"? TIA, - -- Mark -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPy7PpAAoJEKWTiqSclQaczsAH+wamkSUTQ8ZdRCI8L3OHoIOt U9YuGJEWExNg4Cc1gux1bItR7P+D9ilFctzcepqD2d/rs5ONBmp2Un6IMQlUugIN ZhPOiEQ9K9+s1qf1/t9BYMCmZgQh1kM69AjyhTLH3ufsyht+CFJg7TLI8O/HNMbi ZbIppoqUroaXaGdzoH3lwOS5zFz/zAEP/3VTdj11U3m/KY3vx2HUbt12NzLN1DBd YQ5kiXaFbg5Wgy2Vztsuc9Is+/fSnbPxt26JQbti0qZXiIXiboOyJPj15EHpqjjq HO3XTM6IZeQKNPSZCZfs51HBWn0lmO/V1hW1wra9hEH6pZ6bo0DDfB2/Mc7jGeY= =/q6S -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/57026391ede7e8b31de2d5abc5f93321.jpg?s=120&d=mm&r=g)
On Sunday 03 June 2012 22:58:49 Mark Goldstein wrote:
Always use "sync" on removable devices otherwise you are risking to loose data if the device is removed. Not if you unmount it before removing, as far as I know.
And you would have to wait before it is unmounted. In case of sync you can unmount quickly.
When this disk is mounted with sync, writing to it is unacceptably slow (20-30 kB/sec, > 4 hours for 500 MB file). Without sync option it is ~40MB/sec.
Without sync option it is not writing into disk, it is just writing into a memory buffer.
In any case, could you please explain where it is defined? There is no explicit rule in udev, at least I could not find it. I understood that kded module is involved, but do not know the details. Is there any configuration I could change, or is it kind of "hard-coded"?
/opt/kde3/share/config/udisks-glue.conf -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/b522fc9af12fe5670d5273601d29477a.jpg?s=120&d=mm&r=g)
On Mon, Jun 4, 2012 at 7:37 AM, Ilya Chernykh <anixxsus@gmail.com> wrote:
On Sunday 03 June 2012 22:58:49 Mark Goldstein wrote:
Always use "sync" on removable devices otherwise you are risking to loose data if the device is removed. Not if you unmount it before removing, as far as I know.
And you would have to wait before it is unmounted. In case of sync you can unmount quickly.
Sure... but in this case I would definitely prefer to write quickly and to unmount slowly.
When this disk is mounted with sync, writing to it is unacceptably slow (20-30 kB/sec, > 4 hours for 500 MB file). Without sync option it is ~40MB/sec.
Without sync option it is not writing into disk, it is just writing into a memory buffer.
As far as I know, until the buffer is filled (normally up to some extent or "watermark"), then it is synced automatically. This is how caching worked in old days, at least.
In any case, could you please explain where it is defined? There is no explicit rule in udev, at least I could not find it. I understood that kded module is involved, but do not know the details. Is there any configuration I could change, or is it kind of "hard-coded"?
/opt/kde3/share/config/udisks-glue.conf
Yep, was just going to write that I've found it already. Thanks a lot! Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
participants (2)
-
Ilya Chernykh
-
Mark Goldstein