Format external hard drive to linux compatible file system

25,891

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.

Share:
25,891

Related videos on Youtube

coder
Author by

coder

Updated on September 18, 2022

Comments

  • coder
    coder almost 2 years

    How do I format my external hard drive to a very Linux compatible file system?

  • coder
    coder almost 12 years
    I 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
    darnir almost 12 years
    It 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
    darnir almost 12 years
    Have 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
    coder almost 12 years
    I 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
    Nils almost 12 years
    RiserFS 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
    Nils almost 12 years
    ntfs 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
    Nils almost 12 years
    On RH5 there is no ext4. On SLES10 - problematic. But ext3 will work an any current distribution - not only the newest ones.
  • darnir
    darnir almost 12 years
    If 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
    darnir almost 10 years
    I'm lurking around, yes. Thanks for the heads up. I'll edit the answer for current times.