Types of File Systems, Explained

UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 6.8 Free with a free account

Types of File Systems

Introduction to Operating Systems · Chapter 6: File Systems and Data ManagementSection 6.8 · lesson 55 of 837 min · free with a free account

← File PermissionsNext lesson: How Computer Networks Work →

A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

In this lesson

How FAT32, exFAT, NTFS, ext4 and APFS trade simplicity for protection.

  • Compare FAT32, exFAT, NTFS, ext4 and APFS by file size limit, permissions and journaling
  • Explain why FAT32 cannot store a file of four gibibytes or more
  • Choose a file system for a drive based on file size, devices and permissions
  • Describe how network shares using SMB or NFS work and why file locking matters

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (944 words). Read along, or search it.

Opening Puzzle

A Video That Will Not Copy

Sam, who runs a small online bakery, formats a new sixty-four gigabyte USB stick as FAT32, so the old shop camera, the laptop and a friend's Mac can all read it. Then Sam tries to copy one five gigabyte video onto it. The copy fails, even though the stick has more than fifty gigabytes free. Nothing is wrong with the stick. Each file system has its own idea of what a file may be. So why won't the video go on?

Key Features

File Size, Permissions and Journals

A file system is a set of rules for keeping names, folders, sizes and block locations on a partition. Different designers made different trade-offs. Some chose simplicity, so cameras, game consoles and tiny devices can read the drive. Others chose protection, for servers and laptops. Three features show the difference. Maximum file size: how big one file may be. Permissions: whether the system can keep owners and access rules. And a journal: a log of the changes the file system is about to make, written first. After a crash or a power cut, half-done changes are replayed or thrown away. It's the same logging idea as transactions, in lesson three point six.

FAT32 and exFAT

Simple File Systems for Removable Drives

Now a short tour. FAT32 lives on small USB sticks, memory cards, cameras and consoles, and nearly everything can read it. But it has no permissions, no journal, and one file can't reach four gibibytes. exFAT was built for flash storage. It allows very large files, and works on current Windows and macOS. That makes it a common pick for a stick shared between a PC and a Mac.

NTFS, ext4, APFS

Rich File Systems for Computer Drives

NTFS runs Windows system and data drives. It has permissions with access lists, a journal, and room for huge files. A Mac reads NTFS, but needs extra software to write to it. ext4 is the usual choice on many Linux systems: Unix permissions, a journal, and inodes that record runs of blocks, called extents. APFS is Apple's file system for Macs and iPhones. It's designed for flash and SSDs, with permissions, snapshots, and built-in encryption. No type is best for everything. The simple ones win on compatibility, and the rich ones win on protection and size.

Worked Example

The FAT32 Four Gibibyte Limit

Back to Sam's video. In FAT32, each file's size is stored in a field of thirty-two bits. Thirty-two bits can hold whole numbers from zero up to two to the power thirty-two, minus one: about four point three billion bytes. That's one byte short of four gibibytes. A three gibibyte video fits. A five gibibyte video doesn't, and neither does a file of exactly four gibibytes: it's one byte too big. The limit is per file, not per drive. Two three gibibyte videos fit on one FAT32 stick, as long as there's room. Sam's five gigabyte video is simply too big to be one FAT32 file.

Quick Check

Gigabytes Versus Gibibytes

Quick check. A FAT32 stick has ten gigabytes free. Sam wants to add one video of exactly four billion bytes, a four gigabyte file, as drive makers count. Does it fit? Yes, it's under the limit. No, it's over the per-file limit. Or no, the stick is too full. Pause, and decide. Yes, it fits. Four billion bytes is less than the limit of about four point three billion. A gigabyte, as drive makers count, is a thousand million bytes. A gibibyte is one thousand twenty-four cubed, a little more. That's the difference from lesson four point three. Over the limit is the tempting answer, if you mix up gigabytes and gibibytes. And ten gigabytes free is plenty of room.

Choosing a Format

Three Questions Before Formatting

So how can Sam fix the video problem? Reformat the stick as exFAT, and the big video fits. But formatting erases everything, so copy the files off first. And the old camera may not read exFAT at all. So Sam keeps two: a FAT32 card for the camera, and an exFAT stick for big videos. Before formatting any stick, ask three questions. What's the biggest file I'll store? Which devices must read it? And do I need permissions?

Network Shares

Shared Folders Over SMB and NFS

Often, many people need the same files: a class folder, or a team's documents. A network share is a folder on a file server, which other computers reach over the network. Your computer mounts the share, just like the USB stick in lesson six point one, and its files appear in the normal tree. Two protocols dominate. SMB, Server Message Block, is the Windows file-sharing protocol, and Macs and Linux speak it too. NFS, the Network File System, is the classic way for Unix and Linux systems. The server decides who may connect, and applies the permissions from lesson six point seven. A shared folder is only as private as its settings.

File Locking

Two People Editing One File

Sharing brings a new problem. What if two people change the same file at once? Some systems use file locking: the first person to open the file for writing holds a lock, and the others can only read it until the lock is released. Other systems keep both versions, and flag a conflict for someone to sort out. At the school, Ivy, who looks after the computers, keeps the timetable on a file server. One morning, two staff members edited it at once, and the second to save was told the file was locked. Annoying, Ivy said, but better than losing one person's changes.

Key Takeaways

Matching File Systems to Their Jobs

To recap. FAT32 and exFAT suit removable drives. NTFS, ext4 and APFS suit a computer's own drive. FAT32 stores each file's size in thirty-two bits, so one file must stay under four gibibytes. A journal logs changes first, so a crash can be cleaned up. And network shares, reached with SMB or NFS, let many people use one folder, with locks to keep their edits apart.

About Introduction to Operating Systems at UPI Study

Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About Types of File Systems

What is the maximum file size on FAT32?
The maximum file size on FAT32 is 4,294,967,295 bytes, one byte short of four gibibytes. FAT32 stores each file's size in a 32-bit field, and 32 bits can count up to two to the power 32 minus one. The limit applies per file, not per drive, so several three gibibyte files can share one stick if it has room.
Should a USB drive be formatted as FAT32 or exFAT?
exFAT is usually the better pick for a stick shared between Windows and macOS that will hold large files, since it allows very large files and works on both. FAT32 still makes sense for older cameras, consoles and small devices that cannot read exFAT. Before formatting, ask how big the largest file will be, which devices must read it, and whether permissions matter.
What is a journaling file system?
A journaling file system writes a log of the changes it is about to make before making them, so a crash or power cut can be cleaned up afterward. When the system restarts, half-finished changes are either replayed or thrown away, which keeps the file system consistent. NTFS and ext4 keep journals like this, while FAT32 has no journal at all.
What is the difference between SMB and NFS?
SMB and NFS are both protocols for reaching a shared folder on a file server over a network, but SMB, Server Message Block, is the Windows file-sharing protocol, while NFS, the Network File System, is the classic choice on Unix and Linux. Macs and Linux machines also speak SMB. In both cases, the server decides who may connect and applies its permissions.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Introduction to Operating Systems.

83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Introduction to Operating Systems
3 credits · NCCRS
Enroll →