Check the physically attached disk --fdisk -l

Use "fdisk -l" to see which disks are physically attached to Ubuntu. It is assumed that an external hard disk is connected or a hard disk is added (attached) from the GUI screen using a cloud service. This state is not yet recognized by the Linux file system, and a device called a hard disk is physically connected.

First, use "fdisk -l" to check the status of the connected disk. Run with administrator privileges using sudo.

sudo fdisk -l

This is a sample output result. This sample is a 1TiB disk connected.

"/ Dev / sda: 30 GiB" is the first disc that existed. "/ Dev / sdb" seems to be the area used to start booting (probably). Booting is the booting of the OS.

A 1TiB disk is connected to "/ dev / sdc".

Disk / dev / sda: 30 GiB, 32213303296 bytes, 62916608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical / physical): 512 bytes / 4096 bytes
I / O size (minimum / optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1063137B-3864-48EE-946E-22FB0FA6320A

Device Start End Sectors Size Type
/ dev / sda1 227328 62916574 62689247 29.9G Linux filesystem
/ dev / sda14 2048 10239 8192 4M BIOS boot
/ dev / sda15 10240 227327 217088 106M EFI System

Partition table entries are not in disk order.


Disk / dev / sdb: 16 GiB, 17179869184 bytes, 33554432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical / physical): 512 bytes / 4096 bytes
I / O size (minimum / optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xa252cd85

Device Boot Start End Sectors Size Id Type
/ dev / sdb1 128 33552383 33552256 16G 7 HPFS / NTFS / exFAT




Disk / dev / sdc: 1 TiB, 1099511627776 bytes, 2147483648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical / physical): 512 bytes / 4096 bytes
I / O size (minimum / optimal): 4096 bytes / 4096 bytes </pre>

In Linux, names like "/ dev / sda" "/ dev / sdb" "/ dev / sdc" are physical. The disk is represented.

Disk and Device are a set. If there is no item called Device, it means that the partition has not been created yet.

"/ Dev / sda" is even more

Device Start End Sectors Size Type
/ dev / sda1 227328 62916574 62689247 29.9G Linux filesystem
/ dev / sda14 2048 10239 8192 4M BIOS boot
/ dev / sda15 10240 227327 217088 106M EFI System

It is divided into areas with numbers at the end. This is a logical disk partition using a feature called partitioning.

"/ Dev / sda" represents a physical disk, and the divided "/ dev / sda1", "/ dev / sda14", and "/ dev / sda15" represent a logical disk.

How to recognize a physical disk as a Linux file system?

The following article explains how to recognize a physical disk as a Linux file system.

Initial format of new physical disk and mounting on file system

Associated Information