发布网友 发布时间:2022-04-21 10:44
共1个回答
热心网友 时间:2022-05-03 05:12
1、用df 命令查看查看目录所在分区,例如查看/var目录所在分区:
[root@localhost var]# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-lvroot 51G 2.6G 46G 6% /
mounted on 列下面就是所在的分区
2、如果还想看磁盘分区情况,用fdisk -l命令查看,如我的:
[root@localhost var]# fdisk -l
Disk /dev/sda: .4 GB, 424509440 bytes
255 heads, 63 sectors/track, 7832 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: 0x000c210d
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 7833 62708736 8e Linux LVM
Disk /dev/sdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 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: 0x13203d63
Device Boot Start End Blocks Id