Book Image

Raspberry Pi Server Essentials

By : Piotr J Kula
Book Image

Raspberry Pi Server Essentials

By: Piotr J Kula

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Server Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preparing the storage medium


At this stage, it is a very good idea to use an externally-powered USB hub. USB-attached hard drives will need the extra power to operate properly, and if you are using a wireless adapter and USB flash drive, you should move them over to the USB hub.

Note

Please make sure that you are not using a drive with important files. This chapter will show you how to format drives and use other filesystems. All the data on your drives will be lost.

For simplicity, in this chapter we will be using an 8 GB USB flash drive; but the concept is the same for USB hard drives.

Listing the available drives

In the console, you can use the fdisk command to get a list of drives and partitions as shown in the following command line:

sudo fdisk –l

The fdisk command will show you the names of the disks used in Linux, their full sizes, and partitions. The drive under /dev/mmcblk is the internal SD card, and you do not want to do anything with that device. Instead, you should always look for...