Linux Filesystem Hierarchy Linux Filesystem Hierarchy and Hard Disk Partitioning and Hard Disk Partitioning
Moreno Baricevic
CNR-IOM DEMOCRITOS Trieste, ITAL Y
Linux Filesystem Hierarchy Linux Filesystem Hierarchy and Hard Disk - - PowerPoint PPT Presentation
Linux Filesystem Hierarchy Linux Filesystem Hierarchy and Hard Disk Partitioning and Hard Disk Partitioning Moreno Baricevic CNR-IOM DEMOCRITOS Trieste, ITAL Y File System File System A fjle system is a set of methods and data structures
CNR-IOM DEMOCRITOS Trieste, ITAL Y
3
4
5
6
– reduces risk of corruption and inconsistency
7
– Root directory of the entire hierarchy
– Essential commands: ls, cp, rm, cat...
– Kernel and boot loader fjles
– Essential devices, such as disk drives, serial ports..
– System wide confjguration fjles
– User's home directories, containing saved fjles,
– Shared libraries needed by the programs on the
– Mount points for removable media such as
– Mount points for temporary mounts by the system
– Optional application software packages.
– Virtual fjlesystem documenting kernel and process
– Root user home directory
– Essential system binaries, like init, ifconfjg,
– Contains all commands, libraries, man pages,
/usr/bin /usr/sbin /usr/lib /usr/src /usr/man /usr/share /usr/local
– Variable fjles (fjles whose content is expected to
– T
– A loss of a fjle system in one partition doesn't
– Limits efgects of fjle system full
– Difgerent fjlesystems (Encrypted FS for home
– Software RAID – LVM
– Maximum 4 primary partitions for hard disk. – Maximum 1 extended partition. – Extended partition can be divided in more logical
– The root directory of the entire fjle system
– 10 GB may be enough.
– Boot loader fjles (e.g. kernels, initrd, boot loader
– At least 100 MB big, 500MB may be appropriate for
– Users' home directory, containing saved fjles,
– The size depends on the purpose of the machine
– Contains the majority of (multi-)user utilities and
– Around 15 to 20 GB large.
– T
– 10 GB.
– Variable fjles, fjles whose content is expected to
– 10 GB (not necessarily a separate partition on a
– Optional application software packages (usually
– 15 – 20 GB large.
– A scratch fjle system (for temporary data and large
– Maximum available space.
– A partition that temporary holds inactive memory
– The size depends on the amount of RAM, hard
– e.g. per-applications reserved partitions