长话短说,我们在此系统上安装linux时遇到问题。它神奇地决定要工作,但是现在我不确定硬盘分区。
一个硬盘驱动器上装有linux,而另一个硬盘目前仅用于存储。当硬盘大小仅为256GB时,它将在单个驱动器上显示2个256GB的分区。有点困惑吗?我们打破了吗?
fdisk -l的输出
Disk /dev/sda: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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: 0x000eef50
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 500117503 249807873 5 Extended
/dev/sda5 501760 500117503 249807872 8e Linux LVM
Disk /dev/sdb: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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: 0x00067612
Device Boot Start End Blocks Id System
/dev/sdb1 63 500118191 250059064+ 83 Linux
Disk /dev/mapper/ubuntu--vg-root: 238.7 GB, 238723006464 bytes
255 heads, 63 sectors/track, 29023 cylinders, total 466255872 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: 17.1 GB, 17070817280 bytes
255 heads, 63 sectors/track, 2075 cylinders, total 33341440 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
请不要发布终端输出的屏幕截图。它们使页面较重且加载较慢,在这种情况下很难阅读。只需使用格式工具将文本直接复制/粘贴到您的问题中,即可使其看起来像代码。
—
terdon
固定输出终端图像。有2个物理磁盘,其中一个只是存储。这是我很困惑的主磁盘(在图中选择)。
—
亚当·桑德斯