How to check how many physical hard drives are in the Ubuntu system

1 Introduction

Today I want to see how many physical hard drives are in the Ubuntu system;

2 Check that there are several physical hard disks in the Ubuntu system-lsblk

step 1: Open the terminal and enter lsblk ;

Step 2: See the output result as follows:

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   0 223.6G  0 disk
├─sdb5   8:21   0  30.5G  0 part [SWAP]
├─sdb3   8:19   0 135.9G  0 part
├─sdb1   8:17   0     1K  0 part
└─sdb6   8:22   0  57.2G  0 part /
sdc      8:32   1 119.3G  0 disk
└─sdc4   8:36   1 119.3G  0 part /media/yucheng/Ubuntu 16.0
sda      8:0    0   1.8T  0 disk
├─sda5   8:5    0   1.8T  0 part
└─sda1   8:1    0     1K  0 part

This is three hard drives;

 

Guess you like

Origin blog.csdn.net/songyuc/article/details/107920240