1.3 Given a scenario, configure and manage storage using the appropriate tools Flashcards
Define fdisk utility
Used to manage partitions on MBR disks
What does command fdisk -l do?
Lists the current partition configuration on the system
From the fdisk utility, what does “l” do?
Lists the the supported partition types, i.e. Linux, LVM, fat, etc….
From the fdisk utility, what does “m” do?
Displays the help screen which lists the available commands
From the fdisk utility, what does “n” do?
Creates a new partition
From the fdisk utility, what does “p” do?
Displays the partition table for that device
From the fdisk utility, what does “q” do?
Exits fdisk without saving (writing) the partition changes specified
From the fdisk utility, what does “w” do?
Writes the partition changes
From the fdisk utility, what does “d” do?
Deletes the partition
What command opens the fdisk utility?
fdisk [devicename, i.e. /dev/sda]
What command can be used to update the kernel with partition changes made without rebooting the system?
partprobe
Define mount
making a storage device accessible to system users through the directory tree
What must be done before a storage device can be mounted?
Must create a directory to which the device will be mounted
Name the 2 system directories that are used to store mount points
/mnt or /media depending on distribution
What happens if a device is mounted to a directory that contains data?
The data it contains will not be accessible
What must be done to make a mount point persistent and exist after system reboot?
An entry for the mount point must be added to /etc/fstab
What are the 3 files monitor/manage mount points?
- /etc/fstab
- /etc/mtab
- /procs/mounts
What are the 6 fields required for a mount point in /etc/fstab? What is the delimiter that must be used?
- device to mount
- mount point
- file system type
- options
- dump (0 or 1)
- fsck order (1 if root filesystem, 2 otherwise)
Tab delimited
What entry in the “options” field of /etc/fstab can be used for the default options?
defaults
What 7 options are set when “defaults” is used for mounting a device via /etc/fstab?
- rw - read/write
- suid
- dev - allow block files
- exec - allow program/script execution
- auto - automatically mount on system boot
- nouser - only root can mount file system
- async - changes written to device asynchronously by system
Compare the “sync” and “async” options for mounting in /etc/fstab
- sync writes changes immediately to the device, typically specified for removable storage media
- async caches changes for system to write when not busy, improves performance, good for non-removable devices
What is /etc/mtab file for?
tracks currently mounted volumes
What is /proc/mounts file for?
contains entries for all currently mounted volumes