我最近在删除硬盘后安装了 ubuntu,但我不知道硬盘现在是否只有一个分区

我最近在删除硬盘后安装了 ubuntu,但我不知道硬盘现在是否只有一个分区

我是 Ubuntu 新手(以前用的是 Windows),我不知道安装是否正确:我知道安装后默认应该有 2 个分区,所以我运行这个命令

sudo fdisk -l

输出结果如下:

Disk /dev/sdb: 159.9 GB, 159905567744 bytes
255 heads, 63 sectors/track, 19440 cylinders, total 312315562 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: 0x000b9862

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758   312313855   155906049    5  Extended
/dev/sdb5          501760   312313855   155906048   83  Linux

Disk /dev/mapper/sda5_crypt: 159.6 GB, 159645696000 bytes
255 heads, 63 sectors/track, 19409 cylinders, total 311808000 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: 157.4 GB, 157449977856 bytes
255 heads, 63 sectors/track, 19142 cylinders, total 307519488 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: 2143 MB, 2143289344 bytes
255 heads, 63 sectors/track, 260 cylinders, total 4186112 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

Disk /dev/sda: 8032 MB, 8032092160 bytes
255 heads, 63 sectors/track, 976 cylinders, total 15687680 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: 0xefb71902

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    15687679     7843808+   c  W95 FAT32 (LBA)

有人能通过查看此输出告诉我是否出了问题吗?我想知道是否至少有 2 个分区,或者我必须重新安装 Ubuntu。

答案1

您有两个硬盘似乎都有有效的分区。

因为:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758   312313855   155906049    5  Extended
/dev/sdb5          501760   312313855   155906048   83  Linux

您的 HDD ( /dev/sdb: 159.9 GB) 只有 2 个分区:/dev/sdb1/dev/sdb2/dev/sdb2是一个扩展分区,它仅细分为一个逻辑分区:/dev/sdb5

因为:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    15687679     7843808+   c  W95 FAT32 (LBA)

您有一个带有一个分区的磁盘(很可能是闪存驱动器- /dev/sda: 8032 MB/dev/sda1:。

为了更好地理解你的驱动器是如何分区的,请安装并使用分区安装 comixcursors-lefthanded

相关内容