Managing Paritions and the Linux Filesystems Flashcards
What is filesystem?
It is a method that is used by an OS to store, retrive, organize and manage files and directories on mass storage devices. It maintains information, such as the date of creation and modification of individual files, their file size, file type and permissions. It also provides a structured form for data storage.
What is filesystem labels
They are assigned to filesystems for easy identification. The labels may be up to 16 char long .
How can filesystem labels be displayed or chanaged?
e2label command
What is partition
It is a section of the hard disk that logically acts as a seprate diesk. Paritions must be formatted and assigend a filesystem before data can be stored on it.
How are paritions identified
Using partition table
Where is partition table stored
In boot record
What is the max number of partitions a partition table contain
four
What are recommended size specs for parition
/ Min 1 GB, /boot 100MB, swap double Ram, /var Min 250MB. /home depends on number of users
What is fdisk Utility?
It is a menu driven utility program that is used for creating, modifiying or deleting partitions on disk drive.
fdisk device_name. fdisk is only used with MBR
What is fstab file?
It is a configuration file that stores information about storage devices and partitions and where and how the partitions should be mounted. It is located in /etc directory. It can be edited only by a root user.
What is mkfs?
It is used to build a Linux filesystem on a device.
mkfs -t ext3 /dev/hda6
what is mke2fs?
It is used to create ext2, ext2 and ext4 fileysstems.
How is device recognition is performed
By MBR at system startup by recognizing the hard disk and all partiions on it.
What are the components of MBR that helps in detection
Master Parition table which contains the list of partitions on the hard disk. The master boot code which contains the program for loading the operating system on the hard disk. This program in loaded to initate the boot process
What is parition Management
It is the process of creating, destroying and manipulating partitions to optimize system performance.
What are the tools for parition Management
sfdisk, GNU parted, gdisk and partprobe
What is sfdisk Utility?
It is used to manipulate partitions. It manages partitions by listing hte number of partitions and their sizes, checking hte partitions and repartioning a storage device.
What is GNU parted Utility?
It is used to manage parition. It is particularly useful when creating partitions on new hard disks. It can be used to create, destroy and resize partitions. It can be used with MBR,GPT, Apm, BSD disk labels. It measures disk space in MB rather than cylinders. Supports dyynamic partition resizing.
What is gdisk Utility.
It is used to manipulate disk partition. It manages paritions in the newer GUID Parition table format by listing the number of paritions and their size, checking hte paritions and repartitioning a storage device
What is partprobe
It is a program used to update the kernel with changes in the parition tables. The program first checks the partition tabel and if there are any changes, it automatically updates the kernel with the changes