March 28, 2013

USB drive extremely slow in Ubuntu

After I got my ybercool home media server ready it was time to start using it properly. Which, for a sad reason, also meant that I had to occasionally copy some of my media to USB stick, to enjoy it also on my bedroom TV which is not connected to the network.

At some point I noticed that moving 1.4GB data from server hard drive to usb flash drive took like an hour. Not good at all. Although I clearly wasn’t alone with this problem, I still didn’t find a quick solution.

At least until I noticed this in my syslog:

Mar 28 19:03:16 arwen usbmount[6761]: executing command: 
mount -tvfat -osync,noexec,nodev,noatime,nodiratime,dmask=000,fmask=111 /dev/sdc1 /data/usb

usbmount is a nice package that automatically mounts your usb drive when you plug it in. It also has a configuration file in /etc/usbmount/usbmount.conf and there is that:

# WARNING!                                                            
#                                                                    
# The "sync" option may not be a good choice to use with flash 
# drives, as it forces a greater amount of writing operating 
# on the drive. This makes the writing speed considerably lower 
# and also leads to a faster wear out of the disk.
...
MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime"

Remove sync option and be careful with your drives (:

Powered by Hugo & Kiss.