Bugzilla – Bug 130126
"hotplug mounting without sync" should also mention umount
Last modified: 2005-11-17 13:32:11 UTC
The 10.0 release notes contain a section 'Mounting Hotplugged Devices without "sync"'. There's nothing wrong with that (I guess, I did't test it ;-) - but if you explain users how to mount removeable devices without sync option, you should also tell them to call umount before unplugging the device. The result of not umount'ing can be damaged filesystems or even data loss which is not very nice.
Hannes, Stefan, what do you think?
Yes, definitely.
How should the text get changed? Karl, please work with Hannes.
Current text: Mounting Hotplugged Devices without "sync" If writing to USB storage devices, such as USB sticks or USB hard drives, is rather slow or if you do not want synchronized writing to these devices, disable the sync mount option. 1. Create a file with the name 90-storage-nosync.fdi and the following contents: <?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <!-- disable sync for mount --> <match key="block.is_volume" bool="true"> <match key="volume.fsusage" string="filesystem"> <match key="volume.uuid" string="UUID"> <merge key="volume.policy.mount_option.sync" type="bool">false</merge> </match> </match> </match> </device> </deviceinfo> 2. Adjust the line <match key="volume.uuid" string="==UUID=="> according to your hardware. Run lshal to retrieve the volume.uuid and enter that ID instead of ==UUID== 3. Copy 90-storage-nosync.fdi into this directory: cp 90-storage-nosync.fdi /usr/share/hal/fdi/policy/20thirdparty 4. Restart the HAL service with rchal restart. Is it enough to ask the user to enter "sync;sync;sync"? In this case I'd propose to write something as follows: To ensure data integrity, it is strongly recommended that you enter sync;sync;sync at the command line, before unplugging a device mounted without the sync option.
IMO this is normaly not needed with subfs. If nobody writes to the device and the device is not in use the submountd try after 1 or 2 seconds to umount the device. You must only be sure that the device is not in use and wait some seconds to remove the device.
Okay, I propose the following text now: If you mount the device without "sync" you are responsible for data integrity on your own. Before unplugging the medium, check that nobody writes to the device. After any write operation watch the status LEDs (if available) and when the lights do not signal activity, wait some seconds and then remove the device. If unsure, call "sync" at the command line.
Sounds good for me.
Thanks - I'm going to add it.
Anja, I need a SWAMP ID for release-notes 10.0.16. A nice one, please ;) This update will also cover bug 119406 and bug 116930.
release-notes 10.0.16 submitted to /work.
Karl, especially for you: SWAMPID 2754
Not too bad 2+7 = 9 and 5+4 = 9 :-)
/work/src/done/PATCHINFO/release-notes.patch.box, created with "edit_patchinfo -b". Must I add additional Distributions like 10.0-ppc and 10.0-x86_64? Otherwise please finalize the YOU process.
you do not have to add a distribution string - thanks for submitting
released