Block Devices and Partitions

This chapter provides tutorial examples on block devices and partitions. Topics include understanding block devices, partition tables and partitions; using 'hdparm -i' command to display device information; differences between MBR and GPT partition table (disklabel) types; using 'parted' commands to manage partition table and partitions; using 'mkfs' command to format partitions; understanding 'dev/sd?' and '/dev/sd??' device files; shrinking or expanding 'ext4' file systems


These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.

What Is Block Device

"/dev/sd?" - Block Device Files

"hdparm" - Hard Disk Parameters

Partition Table and Its Types

"parted ... mktable" - Create Partition Table

What Is Partition and Its Types

"parted ... mkpart" - Create Partition

"/dev/sd??" - Partition Device Files

File System Types, IDs and Formats

"mkfs -t ext..." - Format Partition

Shrink "ext4" File System and Partition

Expand "ext4" File System and Partition

"parted" - Partition Manipulation Program

"fdisk" - Format Disk Partitions


Takeaways:

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

 File Systems

Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Software Package Manager on CentOS - DNF and YUM

 vsftpd - Very Secure FTP Daemon

 LDAP (Lightweight Directory Access Protocol)

 Administrative Tasks

 References

 Full Version in PDF/EPUB