linux 磁盘挂载分区

1、查看磁盘挂载

[root@ecs-cee0-0002 /]# fdisk -l

Disk /dev/vda: 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: 0x00095725

Device Boot Start End Blocks Id System
/dev/vda1 * 1 5222 41942016 83 Linux

Disk /dev/vdc: 536.9 GB, 536870912000 bytes
16 heads, 63 sectors/track, 1040253 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf1578e53

2、需要挂载磁盘 /dev/vdc

fdisk /dev/vdc
如果有分区全部删除,依次输入
n,Enter
p,Enter
1,Enter
Enter(默认就是1,可不用输入

猜你喜欢

转载自blog.csdn.net/qq_43070471/article/details/114440841