Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Ubuntu Server

You're reading from   Mastering Ubuntu Server Upgrade your Ubuntu skills

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher
ISBN-13 9781785284526
Length 430 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jay LaCroix Jay LaCroix
Author Profile Icon Jay LaCroix
Jay LaCroix
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Deploying Ubuntu Server FREE CHAPTER 2. Managing Users 3. Managing Storage Volumes 4. Connecting to Networks 5. Managing Software Packages 6. Controlling and Monitoring Processes 7. Managing Your Ubuntu Server Network 8. Accessing and Sharing Files 9. Managing Databases 10. Serving Web Content 11. Virtualizing Hosts and Applications 12. Securing Your Server 13. Troubleshooting Ubuntu Servers 14. Preventing and Recovering from Disasters Index

Partitioning and formatting volumes


In order to utilize a disk, it must be partitioned and formatted. The fdisk command does much more than just show us what partitions are available, it allows us to manage them as well. In this section, I'll walk you through partitioning as well as formatting new volumes.

In order to begin the process of partitioning a disk, we'll use the fdisk command as root, using a device name as an option. For example, if you have a disk such as /dev/sdb that needs to be configured, you would execute the following:

# fdisk /dev/sdb

Note that I didn't include a partition number here, as fdisk works with the disk directly (and we also have yet to create any partitions). In this section, I'm assuming you have a disk that has yet to be partitioned, or one you won't mind wiping out. When executed correctly, fdisk will show you an introductory message and give you a prompt:

Main prompt of fdisk

At this point, you can press m on your keyboard for a menu of possible commands you...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image