linux挂载新的硬盘
将一个新的硬盘挂载到linux系统上
第一步:查看当前系统磁盘挂载
查看系统硬盘挂载情况:lsblk -f(老师不离开)
会出现
sda
├─sda1 ext4 7cc94e03-8b1a-4845-97fb-49a2c39afd8c /boot
├─sda2 ext4 fe1d0eea-50ea-4d44-853b-1c39e5129021 /
├─sda3 ext4 df147f0a-efbd-4370-8e69-471b81a6ee7c /mnt/disk1
├─sda4
├─sda5 ext4 ea0d589d-a329-4bfc-a00b-11c00351765a /mnt/disk2
└─sda6 swap f306ece0-a790-41d7-b685-63585b8534e4 [SWAP]
sda : 表示当前系统有一个物理磁盘 sda
sda1 :第一个物理硬盘的第一个分区
ext4:这个分区的格式(linux 常用的格式)
7cc94e03-8b1a-4845-97fb-49a2c39afd8c:表示这个分区的唯一标识(唯一ID)
/boot:表示这个分区挂在的目
**[root@node01 ~]# fdisk -l **
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00040944 Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 2637 20971520 83 Linux
/dev/sda3 2637 3681 8386560 83 Linux
/dev/sda4 3681 5222 12379136 5 Extended
/dev/sda5 3681 4700 8183808 83 Linux
/dev/sda6 4700 5222 4193280 82 Linux swap / Solaris
** 第二部:为虚拟机添加新的硬