[SOLVED] filesystem for an external hard drive: recommendation
SlackwareThis Forum is for the discussion of Slackware 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.
filesystem for an external hard drive: recommendation
Dear Slackers,
I just bought a new 2 TB hard drive for backup of my data. It comes formatted as
Code:
root@marto:~# fdisk -l /dev/sdc
....
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 3907029119 3907027072 1.8T 7 HPFS/NTFS/exFAT
mount reports
Code:
/dev/sdc1 on /run/media/marto/Transcend type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
so I assume the file system on the drive is NTFS. So long as I know, NTFS is not a good file system to use under Linux, because Linux does not have the right tools to handle it (e.g. to repair it). What other filesystem would be suitable for formatting the hard drive, if I do not care about sharing data with Window$?
Thank you for your attention.
Best regards,
Martin
If you want to access your external hard drive from Linux, Windows and Mac OS X, make a FAT partition (type 0b) and format it as FAT using mkdosfs.
On the other hand, if you access it using Linux only, you may as well format it as ext2 or ext4. Make a Linux partition (type 83) and format it using mkfs.ext2 or mkfs.ext4.
Personally, I am biased toward XFS because we use that a lot on servers (support for larger files and larger filesystems). But I am told that there are bad situations you could get into regarding the journal if the disk controller tries to take shortcuts and you lose power.
ext4 is also good. Both filesystems are journaled and they both support extended attributes.
But any "native" filesystem is going to be much better than NTFS if you only care about using the drive on Linux.
IF you're only going to use it with linux, then go with any of the native filesystems, xfs, ext4, btrfs. If you need interoperability with Windows, then NTFS is the best filesystem as ntfs support in linux is quite mature and built into the kernel, unlike exfat which is a fuse driver only.
Personally, go with ext4 and move on. It's journaled, common, and I've yet to ever have a corruption issue with random powerouts (including on LUKS and LVM).
IF you're only going to use it with linux, then go with any of the native filesystems, xfs, ext4, btrfs. If you need interoperability with Windows, then NTFS is the best filesystem as ntfs support in linux is quite mature and built into the kernel, unlike exfat which is a fuse driver only.
The kernel driver is pretty much read-only, ntfs-3g everybody is using is FUSE driver.
for example, i have macbook, a linux machine ( desktop), and LG TV with usb, and built in mediaplayer.
i also have a several external HDD.
i finished with:
for my mobile, bring with me-general hdd i have two partition -ext4 and NTFS.
for HDD attached to TV i must use NTFS, as it ( LG 43LF540V, about year ago purchased, not smart tv) do not understand ext3/4/ exFAT
for Mac backups i use native HFS+
for mac - pc transfers i use ExFAT, as mac can read and write it, and slackware with fuse also can read and write it.
sadly, mac have problems with NTFS in Write mode, as so, if i want watch film from mac, i write from mac to exFAT hdd, then attach it and NTFS disk from TV to linux desktop, and copy over...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.