Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have a new 2TB USB3 external hard drive that I will be using for backups (large and small files). I need the following:
* Full disk encryption.
* Solid recovery functionality.
* I may want to attach it to my router for NAS in the future (router supports this).
* I don't need it to be Windoze accessible.
I have done some searching for the best file system to use on an external hard drive, but most of the info is old. I'm specifically interested in trying out Btrfs, but I'm not sure if it would be best considering my criteria. Also, I have read a complaint from a user that their Btrfs drive was not unmounted correctly and it hosed the file system.
Just to add an update to this issue, my router NETGEAR N750 (WNDR4000) does not recognize the USB attached drive formatted as either EXT4 encrypted, EXT4 unencrypted or NTFS encrypted. The drive needs to be formatted NTFS unencrypted (FAT might work as well, although I didn't test).
So now I need to figure out if there is a way to encrypt the backup folder on the drive, instead of the whole drive itself, and if I can transfer data to the drive using rsync in a way that it is stored encrypted.
Distribution: SuSE, Knoppix, Ubuntu, FreeBSD, SCO Open Server
Posts: 7
Rep:
WNDR4000 best fs is ext3
WNDR4000 can use ntfs, fat32, fat16, ext3, ext2
ntfs is worst possible speed
fat32 is best speed that allows windows compatibility without adding an ext3 driver to windows
ext3 is best speed and far more robust than fat32
Rerally ext3 is the best choice on any technical grounds. But if you want to plug the drive into random windows machines without habving to install an ext3 driver in windows, then fat32 is the next best choice for speed and large disk size and large file sizes.
edit : I formatted the entire raw drive device, no partition table.
# mkfs.ext3 -v -L G-Drive -m 0 -O dir_index,sparse_super /dev/sdd
This is a G-Tech G-Drive that comes ready for Mac out of the box, with a GPT partition table apple filesystem.
Leaving the GPT partition table but deleting all partitions and making one new partition using the full space and formatting that partition ext3 did not work. (it worked fine for linux but the router didn't recognize it.)
Above command wipes out the GPT partition table writes a ext3 filesystem using all available space. It's not an Apple drive any more after that. Probably an MBR table and partition would work, but as noted MBR can't exceed 2T per partition. My drive was only 2T so although I know that the wndr4000 will recognize a drive that has been mkfs.ext3 on the whole-drive device, I don't know that it works for over 2T drives.
Last edited by KEYofR; 04-20-2012 at 03:56 AM.
Reason: add partition table and filesystem commands details
In case it helps I've had weird problems when using Hitachi and Transcend USB HDDs which have been worked around by keeping 100 MB free space before and after the single ext3 partition.
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339
Rep:
If there is going to be massive I/O on the drive and it doesn't need to be bootable (I Think There Is Some Nightmareish Configureation With Booting Linux And This Filesystem) The Lustre Filsesystem is open-source, linux-supported, and from what I've read would be great!
Just keep in mind it was made for supercomputers...
Dunno why NTFS was bashed above. I find it performs quite well. You have to use compression formats that can preserve special linux permissions. Simply writing to ntfs directly may have some issues that you can't recover from.
Distribution: SuSE, Knoppix, Ubuntu, FreeBSD, SCO Open Server
Posts: 7
Rep:
Quote:
Originally Posted by jefro
Dunno why NTFS was bashed above. I find it performs quite well. You have to use compression formats that can preserve special linux permissions. Simply writing to ntfs directly may have some issues that you can't recover from.
The comment was specific to use with Netgear routers, specifically the WNDR4000 which was mentioned, has a terrible ntfs driver. Go to the supplied link to the netgear forums and see the posts from the netgear support themselves. I have one myself, with latest firmware, and can confirm.
Dunno why NTFS was bashed above. I find it performs quite well. You have to use compression formats that can preserve special linux permissions. Simply writing to ntfs directly may have some issues that you can't recover from.
Seriously?
What benefits does NTFS have for GNU/Linux over nix file systems?
Distribution: SuSE, Knoppix, Ubuntu, FreeBSD, SCO Open Server
Posts: 7
Rep:
The OP said he had a WNDR4000, and that he didn't need the drive to be windows compatible.
The answer to this question in this specific case is ext3 and ext3 only.
THAT device only supports fat16, fat32, ntfs, ext2, and ext3.
Ext4 and lustre may be fine fs's but that device does not support them.
Ntfs may "perform quite well" in some other situation, but that device has a crap ntfs driver that performs quite terribly compared to every other filesystem it supports. It's not bashing ntfs and it's no mystery. That device performs very poorly on ntfs. Simple as that.
fat16 can not handle the disk size.
So what's left that has even reasonable performance are only fat32, ext2, ext3.
Out of those 3 choices, ext3 wins on both performance and reliability counts.
Mine has been running like that with no problems since these posts were made also.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.