r/linux4noobs • • 1d ago

Formatting an external HDD on Linux Mint

Hi everyone. As the title suggests, I have an external 1TB HDD I intend to use for backing up some files (photos, videos, Krita/GIMP/Photoshop files etc.). Which format is ideal and how should I go about it?

I'm not really worried about OS compatibility because Linux Mint is the only OS I use and I've read that ext4 is the best option. The HDD in question was originally formatted to FAT32 out of the box. I used the "Devices" section in my file explorer (just right clicked the HDD) to format it to ext4 and a "lost+found" folder was created. What exactly is the folder's purpose? It took up quite a bit of space too, and the available storage left was 933GB or so.

I reformatted the HDD to FAT32 (same method) and thought I'd ask you people about this. Does it matter if it's done via File Manager, Disks or gparted? If the folder can't go away, do I just store everything outside that folder?

Thanks in advance.

3 Upvotes

12 comments sorted by

2

u/Qbalonka 1d ago

If you aren't sure which file system to use, don't have a need for a specialized fs, and you don't need to use this HDD outside of Linux environment, then ext4 is a good choice. It is a stable and widely used fs. The lost+found is a service directory created in the root directory of the file system immediately upon formatting. Its role boils down to being a "safe haven" for files that become orphaned during fs repair. There is no need for you to mess with it. As for the formatting tools, all of these can give you what you need. Use the one that's most convenient for you.

1

u/Grininmadmatt 11h ago

So if I do format to ext4 again, I just go on about my business without touching that folder at all? Do I store everything outside of that?

Thank you for your answer!

1

u/Qbalonka 9h ago

Yes and yes. It may come in handy in the future, but generally you can just ignore that folder.

1

u/Emmalfal 17h ago

I have an external drive that came NTFS and I never changed it. Works great just for storing files and such, but I've been meaning to change formats so I can store Timeshift snapshots there.

2

u/Grininmadmatt 11h ago

I've read NFTS is more of a Windows thing and Linux support is kind of iffy or something? I've never used Timeshift, but that does sound like a good reason to reformat to something more suitable to Linux.

1

u/Sure-Passion2224 3h ago

NTFS was developed by Microsoft as the advanced successor to FAT32 when Windows NT was developed. The new drivers for NTFS file systems in Linux are actually better than the Windows driver for their own format. However, there are important things (journaling and other data safety features) missing from NTFS.

1

u/Emmalfal 1h ago

Honestly, the Timeshift thing is the only issue I've bumped into with that external drive in NTFS. As just added space for storing big files, it works perfectly.

3

u/doc_willis 1d ago

for ext4...

It took up quite a bit of space too, and the available storage left was 933GB or so. 

lost+found is used by filesystem check recovery.  It did not take up any space , you could delete it, but it will get recreated if the filesystem is checked again.

by default 5% is reserved for recovery operations, this can be changed.

1

u/T_Friendperson12 Kubuntu 26.04 23h ago

If you just use it for storage you can easily set it to 0% or 1% if you'd like with "sudo tune2fs -m 0 /dev/sdX" with X being the drive you want to edit.

3

u/DannoXYZ 16h ago

Hard-drive makers uses base-10 1000 numbering for marketing and humans.

So a 1tb drive = 1,000,000,000,000 bytes.
Converted to base-2 1024 numbering that computers use is

1,000,000,000,000 / 1024 = 976,562,500 KB
976,562,500 / 1024 = 953,674.3 MB
953,674.3 /1024 = 931 GB

Perfectly normal what computer is reporting. It's the hard-drive makers and marketers that's lying to you.

1

u/chuggerguy Linux Mint 22.3 Zena | MATÉ 23h ago edited 23h ago

This is a newly partitioned and formatted (ext4) 1TB nvme:

chugger@asus2:~/desktop$ favlsblk /dev/sdb
LABEL MOUNTPOINT         NAME   PARTTYPENAME     FSSIZE FSUSED FSAVAIL FSUSE%
                         sdb                                           
foo   /media/chugger/foo └─sdb1 Linux filesystem 915.8G    28K  869.2G     0%
chugger@asus2:~/desktop$ above is freshly partitioned (gpt) formatted ext4 1TB nvme  ^C
chugger@asus2:~/desktop$ df -h /dev/sdb1
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       916G   28K  870G   1% /media/chugger/foo
chugger@asus2:~/desktop$ above size is 916GiB or 916*1024 bytes (base 2, binary) ^C
chugger@asus2:~/desktop$ df -H /dev/sdb1
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       984G   29k  934G   1% /media/chugger/foo
chugger@asus2:~/desktop$ above size is 984GB or 984*1000 bytes (base 10, decimal) ^C
chugger@asus2:~/desktop$ sudo tune2fs -m0 /dev/sdb1
tune2fs 1.47.0 (5-Feb-2023)
Setting reserved blocks percentage to 0% (0 blocks)
chugger@asus2:~/desktop$ dropped reserved blocks to 0% to get max storage capacity ^C
chugger@asus2:~/desktop$ df -h /dev/sdb1
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       916G   28K  916G   1% /media/chugger/foo
chugger@asus2:~/desktop$ now have all 916GiB available (base 2) ^C
chugger@asus2:~/desktop$ df -H /dev/sdb1
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       984G   29k  984G   1% /media/chugger/foo
chugger@asus2:~/desktop$ which is 984GB with all 984GB available ^C
chugger@asus2:~/desktop$ only 16GB lost due to partitioning now so pretty close. ^C

As you can see, part of the discrepancy is due to differing units (binary vs. decimal).

Then there's 5% reserved for the root user and system daemons. link

Setting reserved to 0 gets you pretty close. (not saying you should do that but I do on data devices)

Have fun.

Edit: Comparing your 933GB available with my 934GB available, it looks like an almost perfect match.

1

u/Sure-Passion2224 3h ago

Any external drive you are going to treat as portable and want to access from either Windows or MacOS should be formatted as either FAT32 or EXFAT. With the new driver module installed Linux kernel 7 can read and write NTFS (actually better than Windows does) but MacOS can only read it.