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 drives marked as /dev/sdxn, where x is usually an alphabetical letter
representing a physical drive and n is a number representing the partitions of
the device in ascending order.
Unfortunately, the device names sda are not assigned in a particular order, and
there is no guarantee that the same name will be used for the same drives. This can
become a problem when you start to use two or more hard drives. The partition
numbers never change though, and it represent the exact order in which the
partitions where created.
The following screenshot shows that the USB flash drive has come up as a /dev/sda
device, and it has 7803 MB with a FAT32 filesystem:


No comments:

Post a Comment