Book Image

Linux Administration Cookbook

By : Adam K. Dean
Book Image

Linux Administration Cookbook

By: Adam K. Dean

Overview of this book

Linux is one of the most widely used operating systems among system administrators,and even modern application and server development is heavily reliant on the Linux platform. The Linux Administration Cookbook is your go-to guide to get started on your Linux journey. It will help you understand what that strange little server is doing in the corner of your office, what the mysterious virtual machine languishing in Azure is crunching through, what that circuit-board-like thing is doing under your office TV, and why the LEDs on it are blinking rapidly. This book will get you started with administering Linux, giving you the knowledge and tools you need to troubleshoot day-to-day problems, ranging from a Raspberry Pi to a server in Azure, while giving you a good understanding of the fundamentals of how GNU/Linux works. Through the course of the book, you’ll install and configure a system, while the author regales you with errors and anecdotes from his vast experience as a data center hardware engineer, systems administrator, and DevOps consultant. By the end of the book, you will have gained practical knowledge of Linux, which will serve as a bedrock for learning Linux administration and aid you in your Linux journey.
Table of Contents (15 chapters)

Configuring a blank disk and mounting it

In this section, we'll use CLI tools to partition and format one of our disks (without LVM), talking about GPT and MBR while we do so. We'll then mount our disk at /home on our system.

Getting ready

If you're using the supplied Vagrantfile for this chapter, you'll have a system with two blank disks connected. If you're using your own solution, now would be the time to add a couple of blank disks.

Connect to your VM and ensure you can see /dev/sdb; if you can't, double check your Vagrant setup:

$ ls -l /dev/sd*
brw-rw----. 1 root disk 8, 0 Sep 9 15:27 /dev/sda
brw-rw----. 1 root disk 8, 1 Sep 9 15:27 /dev/sda1
brw-rw----. 1 root disk 8, 2 Sep 9 15:27...