linux挂载新磁盘
1. 老系统查看
1.1 查看磁盘挂载情况
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 770M 1.3M 769M 1% /run
/dev/vda1 59G 48G 9.0G 85% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/6b555603eb9808afba38ff0e7785e1a88d912009b203b2fc81f58306ed89ce38/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/dcbc5f34c9114e23e12d01a69ea473d002e6bab878c4db586552fc7a4f01e388/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/4fa90b464fb5f403a0d6019b37b3130fecb3c01222e2e7e6caa2eaff534006d7/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/2e030df028cf8d55f6ae1718f7631cd4ced0d1b22fe14da8d07bc5baa0b5847f/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/36f372192a4e716b83c59259d65813f94e469b2f3e3ecc9fefed72bc59b7d5d0/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/a70f1dfe08cb468b21529d08c0883acd6fdb5bf4830d49d5306d45cfdef29f63/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/a5f8bc2e5f4cc7c26361f435e84534237397e86c1119a26d9b46fdca7d36e1eb/merged
overlay 59G 48G 9.0G 85% /var/lib/docker/overlay2/2013007d3af2694a5ad034d41ecedad5a22b286390f5af75666ae7454437f782/merged
tmpfs 770M 0 770M 0% /run/user/0
命令中显示的磁盘很多,实际上只有/dev/vda1
是物理磁盘,其他都是虚拟的磁盘
- tmpfs 好像是内存虚拟的磁盘
- overlay 好像是docker虚拟的磁盘
1.2 查看当前分区情况
# fdisk -l
Disk /dev/vda: 60 GiB, 64424509440 bytes, 125829120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6e854653
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 125829086 125827039 60G 83 Linux
1.3 查看设备文件系统类型
# blkid
/dev/vda1: LABEL="/" UUID="231436f6-d23a-466a-af98-6b11de4faaf7" TYPE="ext4" PARTUUID="6e854653-01"
标签:overlay,48G,linux,85%,59G,磁盘,挂载,docker,9.0
From: https://www.cnblogs.com/Netsharp/p/17488038.html