Managing Storage Flashcards
Partitioning disks Linux file system Logical volume manager (LVM) Filesystem Hierarchy Standards (FHS)
What partition types are supported in Linux?
Master Boot Record (MBR) partitions and Global Partition Table (GPT) partitions
What is swap memory?
Swap memory is dedicated disk space that the system will use in the event that it runs out of RAM. This can prevent application crashes and such.
How many partitions does the old MBR format support?
Up to four partitions
What does GPT stand for?
Global partition table
What does GUID stand for?
Globally unique identifier
How many partitions does GPT allow you to have?
Up to 128 partitions on a single disk. You do not have to worry about extended or logical partitions
What are the three characteristics of MBR partitions?
They contain Primary partitions, extended partitions, and logical partitions
What are two characteristics of GPT partitions?
They do away with the primary/extended/logical partition set and allow up to 128 defined partitions.
What is a block device?
Block devices are any device that contain storage blocks i.e. USB keys, removable media, disks etc..
What command would you use to manipulate the MBR partition table?
fdisk
What command would you use to manipulate the GPT partition table?
gdisk
Where do the disks reside in the file system?
They reside within the /dev (devices) folder.
What is a command to list out the disk and partition information for a given disk?
[sudo] fdisk -l /dev/ (sda, sdb, etc.)
Instead of listing out the disk and partition information, what is a command you could use to actually manipulate the disk itself?
[sudo] fsdisk /dev/ (sda, sdb, etc.)
What does the p command do once you are inside fdisk?
This command will print the file table of the disk you are in.
fdisk is the command used for which type of partition table?
MBR
What does the n command do once you are inside of fdisk?
This will allow you to create a new partition
When inside of fdisk, are the changes automatically written?
No, not until you hit w and press enter.
What does the w command do from within fdisk?
This writes the changes that have been made.
How can you list all of the block storage devices within your system?
lsblk (list block)
gdisk is used for what type of partitioning table?
GPT
Are there any tools that do both MBR and GPT?
Yes, but you cannot count on them since they may not be native. For example, Parted (partition editor)
What are some of the most popular filesystems?
EXT3, EXT4, XFS, BTRFS
What are three major requirements you should consider when choosing a file system?
- It should meet your needs
- Supported by the OS vendor
- Stable, mature, and reliable
Whats the command you would use to create a file system?
mkfs
What does the -t flag mean when using mkfs?
This is used to declare the ‘type’ of filesystem (ext3, ext4, xfs, etc)
What path can you navigate to in order to see a list of all the file system alias’s you could use to create a file system?
/usr/sbin/mkfs*
Whats the difference between the following commands?
sudo mkfs -t ext4 /dev/sdb1
sudo mkfs.ext4 /dev/sdb1
They do the same thing, however, mkfs.ext4 is simply an alias.
What command would you use to format a swap partition?
mkswap
Once you make a particular partition a swap partition, is it active immediately?
No, not until you issue a command to make it active