Skip to Content
Raspberry Pi 2 Server Essentials
book

Raspberry Pi 2 Server Essentials

by Piotr J Kula
April 2016
Beginner content levelBeginner
174 pages
3h 46m
English
Packt Publishing
Content preview from Raspberry Pi 2 Server Essentials

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 this device. Instead, you should always look for drives marked /dev/sdxn, where x is usually an letter representing a physical drive and n is a number representing the partitions of the device in ascending order.

Unfortunately, device names are not assigned in any particular order, and there is no guarantee that the same name will be used for the same drive. This can become a problem when ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expanding Your Raspberry Pi: Storage, printing, peripherals, and network connections for your Raspberry Pi

Expanding Your Raspberry Pi: Storage, printing, peripherals, and network connections for your Raspberry Pi

Mark Edward Soper
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781783985692Supplemental Content