Hello all,
I've been having some trouble with USB drives in the last few months. When
copying files onto a device, the copy appears to be instantaneous, but is
clearly buffered by the kernel. If I unmount the drive, all appears well, but
then removing the device results in corruption.
In
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
On 12/02/2011 11:48 AM, Paul Gideon Dann wrote:
Hello all,
I've been having some trouble with USB drives in the last few
months. When copying files onto a device, the copy appears to be
instantaneous, but is clearly buffered by the kernel.
On Friday 02 Dec 2011 11:54:45 Timothy Redaelli wrote:
Hi,
by default linux mounts the devices with the async option.
You can mount using the sync option, so you are sure that the I/O is
made synchronously.
Just remember: In case of media with limited number of write cycles
(e.g. some flash
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
On 12/02/2011 11:58 AM, Paul Gideon Dann wrote:
On Friday 02 Dec 2011 11:54:45 Timothy Redaelli wrote:
Hi, by default linux mounts the devices with the async option.
You can mount using the sync option, so you are sure that the I/O
is made
On Friday 02 Dec 2011 12:03:52 Nicolas Sebrecht wrote:
No. udev is basically for devices discovery and naming them in /dev.
Hehe; oh yeah, of course.
Before trying any sync mount option, try to manually sync disks with the
sync command to check if it fixes you issue.
Yeah, everything's fine
On Friday 02 Dec 2011 14:37:59 Nicolas Sebrecht wrote:
How do you umount the USB device?
I've done it both from KDE and the command line, but I don't think that really
matters. It's the fact that large files appear to be copied instantly that is
frustrating.
Paul
On Friday 02 Dec 2011 12:09:59 Timothy Redaelli wrote:
You can try to edit the udev mount options:
# echo 'ACTION==add, ENV{mount_options}=sync'
/etc/udev.d/rules.d/99-mount-options.rules
Then you must reload udev rules:
# udevadm control --reload-rules
This seems like the right thing
On Fri, Dec 2, 2011 at 2:44 PM, Paul Gideon Dann pdgid...@gmail.com wrote:
On Friday 02 Dec 2011 14:37:59 Nicolas Sebrecht wrote:
How do you umount the USB device?
I've done it both from KDE and the command line, but I don't think that really
matters. It's the fact that large files appear to
Paul Gideon Dann (2011-12-02 13:51):
On Friday 02 Dec 2011 12:09:59 Timothy Redaelli wrote:
You can try to edit the udev mount options:
# echo 'ACTION==add, ENV{mount_options}=sync'
/etc/udev.d/rules.d/99-mount-options.rules
Then you must reload udev rules:
# udevadm control
On Friday 02 Dec 2011 16:31:47 Rogutės Sparnuotos wrote:
There can't be any corruption after a successful unmount.
1. Run sudo umount /path/to/mounted/dir; echo returncode=$?
2. If you see 'returncode=0' on the last line, continue with 3.
3. Remove your USB drive.
4. Attach your USB drive.
Paul Gideon Dann (2011-12-02 14:44):
On Friday 02 Dec 2011 16:31:47 Rogutės Sparnuotos wrote:
There can't be any corruption after a successful unmount.
1. Run sudo umount /path/to/mounted/dir; echo returncode=$?
2. If you see 'returncode=0' on the last line, continue with 3.
3. Remove
On Friday 02 Dec 2011 17:03:12 Rogutės Sparnuotos wrote:
Yes, copying with midnight commander or with cp returns immediately [*]. I
copy files from different directories, run umount and then wait for it
to return. Yet I mount my phone with 'sync', because transferring is very
slow and I want
Yes, it already is. https://bugs.kde.org/show_bug.cgi?id=273792
I find this really annoying. The solutions I've found is to use devmon
(https://aur.archlinux.org/packages.php?ID=45842) instead of KDE's
automounting system, and configured it to mount FAT32 with flush option.
This completely
On Fri, 02 Dec 2011 18:58:44 +0800, Paul Gideon Dann pdgid...@gmail.com
wrote:
On Friday 02 Dec 2011 11:54:45 Timothy Redaelli wrote:
Hi,
by default linux mounts the devices with the async option.
You can mount using the sync option, so you are sure that the I/O is
made synchronously.
Just
14 matches
Mail list logo