Hi All,
Thanks for the help. This topic was really helpful! After these command lines from Serverov, XBMC is mounting any USB!
But I notice the USB is really SLOW to write.
No matter which USB device is attached, it will be much slower than running the same hardware in Windows.
After some hours of google search, I found several information about slow USB in linux. Is almost unanimous that the problem stops when mounting the device in async mode. So, I made a few tests.
This is the speed with the device mounted by XBMC, copying a file with a size close to 3gb to a Sandisc Cruizer 16gb:
Code:
xbmc@MARK1:~$ time cp test.iso /media/JEJE-16GB/
real 78m49.573s
user 0m0.152s
sys 0m24.658s
And this is the same file being copied after remount the Cruizer in async mode (sudo mount -o remount,async /dev/sdb1):
Code:
xbmc@MARK1:~$ time cp test.iso /media/JEJE-16GB/
real 8m59.551s
user 0m0.104s
sys 0m5.788s
8min59s is almost the the same time it took to copy in Windows.
So, comparing the results:
Sync:
1h19min
Async:
9min
Sync mode is almost 9x slower then async!
The same happens when copying files to a USB HDD (ext3). Over the network (SAMBA 3.3.2), this is the transfer speed from a Windows 7 desktop to an ASRock running ubuntu 9.04 + XBMC 9.11 beta1:
The upload speed (saving to USB HDD) is stable @ 57mbps, while the download speed is arround 270~280mbps (reading from HDD). When the HDD is mounted in async mode the upload speed is the same as download.
In time, I'm running XBMC 9.11 beta 1 for linux, with a minimal install of Ubuntu 9.04 in a ASRock ION330. To make sure, I've repeated the USB stick (Sandisc Cruizer) tests on my desktop (Intel Q9650+Asus Formula Rampage, also running XBMC 9.11beta1 on Ubuntu 9.04 minimal). The results are identical.
So, I must ask: there is any way to make XBMC always auto mount USB devices in asynchronous mode? If not, is there any other way to make USB devices fast as they are in Windows?
Thanks in advance.