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 you start to use two or more hard drives. The partition numbers never change, though, and they represent the exact order in which the partitions were created.
The following screenshot shows that the USB flash drive has come up as the /dev/sda
device...