You are not logged in.
I have been using archlinux for the past few years and love it. Thanks.
One of the problems I have is with USB sticks. If I copy a large file over to a usb stick it will say it copied real fast but instead keep copying in the background.
I have to wait till the drive stops blinking to unmount it.
If I try to save a file from a webbrowser like firefox onto the stick. Firefox will lag very bad.
I use 11-media-by-label-auto-mount.rules / udev to mount my devices.
Can someone tell me why this is happening and how to fix it?
Offline
I think this is true on my system as well. It never really bothered me though. Nice thing is that you can select 'unmount' via the right click or from the unmount icon and your notification daemon will let you know that the I/O continues and that it will umount when finished. To your other point, my advice is not to save directly to USB sticks.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
This is due to the drive not being mounted with the sync or flush options. Using those options will make copying/moving files slower but you will be able to unmount the device immediately.
Offline
Where do I put that?
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
[webdawg@matrix ~]$ cat /etc/udev/rules.d/11-media-by-label-auto-mount.rules
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
Last edited by webdawg (2012-09-18 01:43:57)
Offline
Please use code tags when pasting to the boards https://wiki.archlinux.org/index.php/Fo … s_and_Code
Look for mount options and add your options there...
Offline
Fixed.
Offline