Format external hard drive to linux compatible file system
Solution 1
You could use GUI applications like GParted on Ubuntu. Install them from the repositories using:
sudo apt-get install gparted
Once you have it installed, select the correct block device/partition and format it using a filesystem like ext2/3/4, JFS, XFS, ResiserFS, etc depending on your needs.
However, the above mentioned file systems are only for reference. Not all of them run on all distributions perfectly.
For example, as @Nils pointed out:
RiserFS is not suppported any more on some major distributions.
JFS and XFS can be too new for some distributions. Ext2 is too old.
Ext2 is almost a legacy file system now and not a very good choice.
That leaves only Ext3 and Ext4.
Again, since ext4 is still new and under development, it may have problems with a few distributions. For example, on RH5 there is no ext4, on SLES10 it is a bit dicey. However, I should point out here that the vanilla Linux kernel completely supports ext4 since version 2.6.28. On Arch and Gentoo ext4 gives no problems.
But ext3 will work an any current distribution - not only the newest ones.
Solution 2
Since it is an external drive, you might want to format with Fat32 or NTFS, so you access the files when moving the disk around to different platforms.
As darnir said, Gparted is a suitable tool for this.
Related videos on Youtube
coder
Updated on September 18, 2022Comments
-
coder almost 2 years
How do I format my external hard drive to a very Linux compatible file system?
-
Mat almost 12 yearspossible duplicate of Most unix-like filesystem that can be mounted under windows and Mac OS X
-
darnir almost 12 yearsHe doesn't need Windows compatibility
-
daisy almost 12 yearsNo, that's not a duplicate, this one doesn't require compatibility on OS other than linux.
-
-
coder almost 12 yearsI get 'You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:' and when i run 'apt-get -f install' as they suggest, i get a bunch of waiting and then 'connection timed out' message.
-
darnir almost 12 yearsIt seems like you are not connected to the internet on that machine. And your apt-get is possibly broken. I am no Debian expert to be able to help you there.
-
darnir almost 12 yearsHave your previously added any PPA's and then removed them? That seems to be the most common cause for the above error. Also, run 'sudo apt-get -f install'. It seems many people tend to forget adding the sudo.
-
coder almost 12 yearsI ran it with a sudo, the solution in the end was to go to a friends house and format it there with the ubuntu gui. But this answer is a useful future reference.
-
Nils almost 12 yearsRiserFS is not suppported any more on some major distributions. JFS and XFS can be too new for some distributions, ext2 is too old. My best bet is good old ext3.
-
Nils almost 12 yearsntfs is tricky on some distributions. Fat32 does not support files larger than 2 GB - but Fat32 is supported on any Linux I know of.
-
Nils almost 12 yearsOn RH5 there is no ext4. On SLES10 - problematic. But
ext3
will work an any current distribution - not only the newest ones. -
darnir almost 12 yearsIf one is using linx for most part of their work, ntfs is a terrible choice to go for. the ntfs-3g driver is still not complete or perfectly stable. And r/w speeds are nowhere close to what other filesystems can provide. FAT on the other hand has the file size limit. exFat though is a good option to choose.
-
darnir almost 10 yearsI'm lurking around, yes. Thanks for the heads up. I'll edit the answer for current times.