LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-26-2016, 05:21 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
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
 
Old 10-26-2016, 05:25 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
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.

Cheers,

Niki
 
Old 10-26-2016, 05:40 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
exfat relieves (severe) size limitations the various FAT implementations suffer from.
 
1 members found this post helpful.
Old 10-26-2016, 06:49 AM   #4
cthibal
LQ Newbie
 
Registered: Apr 2015
Distribution: Slackware64-14.2
Posts: 27

Rep: Reputation: Disabled
Hello Martin,

I use external backup hdd with ext4 for years now.

Main benefit: you can preserve file attributes with rsync or cp.

Best regards

Larry
 
Old 10-26-2016, 11:45 PM   #5
klipkyle
LQ Newbie
 
Registered: Oct 2016
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 10-26-2016, 11:48 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
exFAT relieves (severe) size limitations the various FAT implementations suffer from.
This.
 
Old 10-26-2016, 11:51 PM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
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.
 
1 members found this post helpful.
Old 10-26-2016, 11:58 PM   #8
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
This link may be helpful
http://www.tldp.org/LDP/sag/html/filesystems.html

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).
 
Old 10-27-2016, 12:13 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
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.
 
Old 10-27-2016, 02:36 AM   #10
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Thank you all for the helpfulness. I formatted it ext4.

Best regards,
Martin
 
Old 10-27-2016, 05:22 AM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by Emerson View Post
The kernel driver is pretty much read-only, ntfs-3g everybody is using is FUSE driver.
NTFS in the kernel is read/write, but it's best to let fuse handle it via ntfs-3g for hotplugging.
 
Old 10-27-2016, 07:41 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Well, the kernel driver cannot change the size of files for instance (last time I checked), I'd call it mostly read-only.
 
Old 10-27-2016, 08:45 AM   #13
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
there is a many problems, really.

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...
 
1 members found this post helpful.
Old 10-27-2016, 08:51 AM   #14
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Get a RPi running Kodi and hook it up to your TV.
 
Old 10-27-2016, 11:30 AM   #15
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Originally Posted by Emerson View Post
Get a RPi running Kodi and hook it up to your TV.
Not to mention then using NFS / Samba to let Windows / Mac machines connect without worrying about filesystems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my external hard drive can not mount on, it is of ntfs filesystem! mselema Linux - Newbie 2 04-10-2011 07:39 AM
filesystem check can't resolve label - formatting an external hard drive dahliasharon Linux - Hardware 2 07-27-2010 11:51 AM
Best filesystem on external usb hard drive? sx1756 Linux - Hardware 6 12-20-2008 03:36 PM
Mounting root filesystem from an external USB hard drive? ChrisHart Linux - Laptop and Netbook 6 04-02-2005 10:49 PM
Putting a filesystem on an external USB Hard Drive Ryknow215 Linux - Hardware 7 01-17-2004 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration