What does it mean to mount a file system, and what does the OS do during mounting?
Last updated
Mounting attaches a device's filesystem to a directory (the mount point) so its files appear in the unified directory tree.
The OS reads the superblock to identify and verify the filesystem type. It loads metadata into kernel structures, records it in a mount table, and redirects path lookups at the mount point to the filesystem's root.
Existing contents of the mount point are hidden until unmount. Unmounting flushes cached writes and fails if files are still open.
- https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/managing_file_systems/mounting-file-systems_managing-file-systems
- https://www.geeksforgeeks.org/operating-systems/file-system-mounting-in-os/
- https://en.wikipedia.org/wiki/Superblock_(file_system)
- https://www.geeksforgeeks.org/operating-systems/file-i-o-management-interview-questions/