Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The drive is a seagate 1tb usb drive with no external power supply. I'm running slackware 64 current. The drive comes unformatted, i think im ok with setting it up. My questions are:
1. If i want the drive readable and writeable to both windows and linux what is the best file system to use?
2. What kind of realistic transfer rates can i expect with USB 2.0 ?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
If it's going to be accessed by Windows then I think your only real option is to format it NTFS -- I would do that under Windows as I'd expect it to do it "more properly" but there's no real reason behind that assumption. If you use ext you'd need a driver under Windows and last time I checked it only did ext2 and if you use exfat you're limited to files smaller than 4GB (not that I know whether you can even format a 1TB drive with fat).
As for speed, sorry I've not really played with USB drives that much.
FAT is indeed an option for a 1TB drive. I have a 2TB drive formatted as vfat. I chose that because I had heard that there were Linux systems that were not fully compatible with NTFS, but that information may be inaccurate or out of date by now.
One disadvantage of FAT is the file size limit, 4GB-1byte. Another disadvantage is the relatively large allocation unit (cluster size). My 2TB is formatted with 16KB clusters, so in some applications there would be a lot of slack space associated with small files. (I use this drive mostly for large files, so in my case there is very little slack.) One more disadvantage: the FAT itself takes up a fair bit of space, 512MB in my case, I think.
As for transfer rates, I am seeing about 21 MB/sec copying from one USB drive to another USB drive, and 34 MB/sec copying from USB drive to internal SATA drive. These are USB hard drives with external power supplies and 3.5 inch HDD units inside. I do not know whether similar rates are obtained with USB-bus-powered drives, or with drives with 2.5 inch internal HDDs.
Thanks for the replies, i may try vfat after looking at some stuff i found on USB storage, and linux ntfs performance My windows install is pretty much vestigial at this point anyway, if vfat and ntfs dont perform well i guess ill try reiserfs.
You could try to partition your external drive using cfdisk(1), with
1. a vfat partition readable and writable by both linux and windows (maybe 100 Gb, more if needed)
2. another partition with a Linux-only filesystem
I would not advise a reiserfs filesystem, since it is not clear whether it is going to be maintained
in the future. I think ext3 would be better if you want to ensure compatibility with all existing
linux systems. xfs or jfs would also be interesting options, but (1) you cannot shrink an xfs partition,
(2) RHEL, CentOS, Scientific Linux (at least) only support ext2/3/4 on 32bit machines, so you may not
be able to exchange data with these.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.