Results 1 to 9 of 9

Thread: File system for external hard disk drive

  1. #1
    Join Date
    Dec 2010
    Beans
    32

    File system for external hard disk drive

    I will buy an external HDD.
    Is ext4 the best file system to use?

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: File system for external hard disk drive

    If you intend only to use it with Linux, then yes. If you want to be able to use it with Windows systems as well, you'll need to format it with FAT32 or NTFS. FAT32 has a maximum file size of 4 GB, if that matters.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Dec 2010
    Beans
    32

    Re: File system for external hard disk drive

    It will be used only with my computers. If I need to send files to a Windows PC, the data will never be more than... 2GB.
    Can I disable all permissions in an ext4 partition?
    I want to connect and disconnect the HDD like a USB flash drive without any additional effort.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: File system for external hard disk drive

    If the users and groups on the various machines are identical (e.g., user chris has UID 1000, tina has 1001, etc.), then you can move the drive among machines and preserve permissions. You can do this by using a common /etc/passwd and /etc/group file on all the machines.

    It's easiest if you're going to be the only user. In that case, just plug the drive in after you log in, and it will be mounted as /media/username/something with your permissions.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,377
    Distro
    Ubuntu Mate Development Release

    Re: File system for external hard disk drive

    If I need to send files to a Windows PC,
    In that case, format it FAT32 or NTFS -- since both Windows and Linux can read/write both filesystems.
    Ubuntu 20.04, Mint 19.10; MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  6. #6
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: File system for external hard disk drive

    Quote Originally Posted by Mark Phelps View Post
    In that case, format it FAT32 or NTFS -- since both Windows and Linux can read/write both filesystems.
    I thought he said SEND files, not sharing the same partition, in that case it doesn't matter whether it's NTFS or EXT4.
    In my experience Windows and Linux don't co-exist peacefully. Go for EXT4.

  7. #7
    Join Date
    Jun 2014
    Beans
    1,207

    Re: File system for external hard disk drive

    I would take the word "send" figuratively, not literally in the network sense, as the OP did not mention file sharing. If the OP means "share over the network" then clarification would help.

    Otherwise, I'd use NTFS. Well supported in every OS. ext4 is not.

  8. #8
    Join Date
    Dec 2010
    Beans
    32

    Re: File system for external hard disk drive

    The external hard drive does not need to support Windows, because I can use USB flash drive to transfer files between my PCs and Windows PCs.

    My problem is the annoying permissions. The users will be different. I want to use the device without root. The use should be easy and simple.
    Is btrfs good? It is new, I have never used it.

  9. #9
    Join Date
    Jun 2014
    Beans
    1,207

    Re: File system for external hard disk drive

    Use ext4. Right after you create the ext4 partition, use a root shell and change the permissions to 777:

    Code:
    sudo chmod -R 777 /media/ubuntu/YOUR-EXT4-PARTITION-NAME
    This gives read-write permissions to all types of users (yourself, your groups, and "others").

    Then you will never have permissions issues again.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •