Hardware Reference
In-Depth Information
Just start
lsblk
from the command line, as shown here:
Depending on the size we are looking for and the device type, we can deduce that
our SD card is currently
sdf
.
Using the dmesg utility
Remember in
Chapter 4
,
Getting Your Own Video and Feeds
,
we looked into the system
messages to find how our USB webcam was named. Here, we use the same recipe:
dmesg | grep 'sd.'
While being verbose,
dmesg
ensures that you format the correct device.
Checking your investigation
In all cases, ensure that you are using the correct device to partition:
fdisk -l /dev/sdf
With a new card, this command should return the following line of code:
/dev/sdf empty table partition