- What a file and folder (directory) actually are
- Paths: absolute vs relative
- How the OS maps names to data (directory tables / metadata)
- Common file systems (FAT32, ExFAT, ext4, NTFS) and their tradeoffs
- Journaling, mounting, and practical choices for formatting drives

Basics: files, folders, and paths
A file is a block of digital data — an image, document, executable, etc. Folders (directories) are entries in the OS’s directory table that group files into a hierarchical structure. At the very top is the root directory:- Windows root example:
C:\ - macOS / Linux root:
/
- Absolute path:
- Relative path (from
/Users/alan):
ls -l output shows important metadata: owner, permissions, size, and timestamps. Behind the scenes, the OS stores this metadata in internal records (directory tables or metadata entries) that map file names to where their data blocks live on storage.

B) A physical container on the hard drive
C) A label/entry in the directory table Correct answer: C — folders are metadata the OS uses to organize files. The icons and colors you see in a file manager are visual aids; to the OS they are directory entries mapping names to storage locations.

File systems: the rule books for storage
A file system defines the rules the OS uses to name files, place them on storage, and keep track of metadata (owner, permissions, timestamps). If your OS doesn’t understand the file system on a device, it can’t interpret the bits on that device — even when physically connected. Common file systems differ in features, compatibility, and limits.
Major file systems: FAT32, ExFAT, ext4, NTFS
Below is a quick reference comparison to help choose the right file system for common tasks.| File System | Typical use case | Pros | Cons |
|---|---|---|---|
| FAT32 | USB sticks, SD cards for maximum compatibility | Very widely supported across devices and OSes | Max file size ~4 GB; limited partition sizes; no journaling or rich permissions |
| ExFAT | Large files on removable media (videos, disk images) | Supports files >4 GB; broad modern OS/device support | No journaling or rich permissions; slightly less ubiquitous than FAT32 on older devices |
| ext4 | Linux internal disks and servers | Journaling, speed, reliability, Linux-native features | Not natively supported on Windows/macOS without drivers |
| NTFS | Windows internal drives and advanced features | Permissions, encryption, journaling, resilient metadata (MFT) | macOS mounts read-only by default; incomplete support on other OSes without drivers |
- Breaks storage into clusters. Files may be stored in clusters that are not contiguous.
- Directory entries point to the starting cluster, and the FAT (a linked list table) is followed to find subsequent clusters (e.g., 17 → 23 → 45 → END).
- Simple and broadly compatible, but limited to ~4 GB per file.


- Designed to overcome FAT32’s file-size limit while remaining cross-platform.
- Ideal for large media files on removable drives.
- Does not provide the richer metadata features (permissions, journaling) found in modern internal filesystems.
- Uses inodes: each inode stores metadata and pointers to data blocks (with indirect pointers for large files).
- Supports journaling to reduce corruption risk after crashes.
- Performs well on Linux but requires additional tools or drivers to access natively on Windows/macOS.

- Uses a Master File Table (MFT): a centralized index where each file’s name, metadata, and storage pointers are recorded.
- Provides advanced features: ACL-based permissions, encryption, compression, and journaling.
- Best for Windows system drives; other OSes may need extra drivers to write reliably.


A short note on journaling
Journaling records pending filesystem operations (a short transaction log). After a crash, the OS replays or rolls back those journal entries to restore consistency, greatly reducing the chance of corruption and improving recovery time.
Mounting: attaching a device into the directory tree
Even when the OS understands a file system, a device must be mounted to make its files part of the system’s directory tree. Until mounted, a device may only charge or show as an unrecognized format. Typical mount points by OS:- Linux/macOS example mount points:
- Windows:
Formatting a disk erases its data. Always back up important files before reformatting or changing the filesystem on removable or internal drives.
Quick decision guides
- Need to move a 10 GB video between macOS and Windows? Use
ExFAT. - Need rich permissions and journaling for a Linux server disk? Use
ext4. - Sharing tiny files with older cameras or very old devices?
FAT32might still be required. - Windows system drive or heavy use of ACLs/encryption?
NTFS.
B) ExFAT
C) NTFS Correct answer: B — ExFAT. FAT32 has a ~4 GB file-size limit. NTFS is typically read-only by default on macOS without extra drivers.
Recap
- Files are blocks of data; folders are directory entries (metadata) used to organize them.
- Paths (absolute and relative) locate files within the directory tree.
- The OS maps filenames to storage locations using directory tables, inodes, or an MFT depending on the filesystem.
- Common filesystems (FAT32, ExFAT, ext4, NTFS) trade compatibility, maximum file size, permissions, and journaling differently — pick the right one for the job.
- Journaling improves crash recovery; mounting integrates a device’s filesystem into your directory tree so it’s accessible.