You are not logged in.

#1 2012-08-09 00:56:27

webdawg
Member
Registered: 2010-12-28
Posts: 62

THUNAR - Copy - Timer/Cache/Something...Why God Why...

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

#2 2012-08-09 01:28:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,702
Website

Re: THUNAR - Copy - Timer/Cache/Something...Why God Why...

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 packagesZsh and other configs

Offline

#3 2012-08-09 01:52:24

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: THUNAR - Copy - Timer/Cache/Something...Why God Why...

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

#4 2012-09-18 01:39:15

webdawg
Member
Registered: 2010-12-28
Posts: 62

Re: THUNAR - Copy - Timer/Cache/Something...Why God Why...

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

#5 2012-09-18 01:42:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: THUNAR - Copy - Timer/Cache/Something...Why God Why...

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...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-09-18 01:44:06

webdawg
Member
Registered: 2010-12-28
Posts: 62

Re: THUNAR - Copy - Timer/Cache/Something...Why God Why...

Fixed.

Offline

Board footer

Powered by FluxBB