我有来自fdisk -l的以下输出:
$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Disk identifier: 0x000dd2f1
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 312580095 156039169 5 Extended
/dev/sda5 501760 312580095 156039168 83 Linux
Disk /dev/mapper/sda5_crypt: 159.8 GB, 159782010880 bytes
255 heads, 63 sectors/track, 19425 cylinders, total 312074240 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
Disk identifier: 0x00000000
Disk /dev/mapper/sda5_crypt doesn't contain a valid partition table
Disk /dev/mapper/ubuntu--vg-root: 151.3 GB, 151309516800 bytes
255 heads, 63 sectors/track, 18395 cylinders, total 295526400 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
Disk identifier: 0x00000000
Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table
Disk /dev/mapper/ubuntu--vg-swap_1: 8468 MB, 8468299776 bytes
255 heads, 63 sectors/track, 1029 cylinders, total 16539648 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
Disk identifier: 0x00000000
Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table
我的问题是:我的磁盘空间是多少? 它只是/ dev / sda大小(160.0 GB)? 或者我是否需要在/ dev / mapper中总结磁盘的大小?所以我的磁盘空间实际上是160.0 GB + 159.8 GB + 151.3 GB + 8468 MB?
如果/ dev / mapper磁盘包含在/ dev / sda磁盘中,如果我的总大小只有160.0 GB,我怎么能有一个大小为159.8 GB的逻辑磁盘和另一个大小为151.3 GB的逻辑磁盘?
我在查看磁盘的组织方式时遇到了一些麻烦,而且我不熟悉/ dev / mapper,我很确定我的笔记本中只有一个磁盘。
由于
答案 0 :(得分:1)
您的总大小为160G,如果您想了解磁盘的组织方式,建议您使用gparted
。
/ dev / mapper / *是逻辑分区,它只表示您使用LVM2逻辑卷管理安装了系统。
正确的等式是:
159.8 GB = 151.3 GB + 8468 MB