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
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: How Computer Networks Work →← 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 →
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.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
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.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →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?
Should a USB drive be formatted as FAT32 or exFAT?
What is a journaling file system?
What is the difference between SMB and NFS?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
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
3 credits · NCCRSEnroll →