Topic 102.1 Design Hard Disk Layout Flashcards
What are the main file system locations in Linux
./ - root directory
/var - The variable location, log files and dynamic content
/home - User’s home directory contains personal files
/boot - The boot directory, where Linux kernel and supporting files are stored
/opt - Location used for optional software, often used by third-party software vendors.
What is swap space
Swap is temporary storage that acts like RAM. When a percentage of RAM is full, the kernel will move less used data to swap. This is generally stored in a swap partition (most common) or a swap file.
Explain partition and mount points in Linux.
Each drive is contained in /dev/sda
How do you mount or display partitions in a Linux environment?
mount
How do you display all block devices on a Linux system?
lsblk
How do you list out partition information on a particular disk
fdisk -l /dev/diskname
How do you show a summary of the swap drive usage?
swapon –summary
What is LVM and what are the related commands?
Allows the creation of groups of disks or partitions that can be assembled into a single (or multiple) file systems. Can be used for nearly any mount point Except /boot. Flexibility, allows for resizing of volumes. Allows for snapshots.
pvs - Lists out the physical volumes
vgs - List out the volume groups within an LVM group
lvs - Lists out the logical volumes within an LVM group