/ dev / sda3没有在一个vm中显示,但在另一个vm中显示相同的内容。

时间:2016-06-02 10:15:21

标签: linux centos virtual-machine vmware centos7

我是linux管理员活动的新手。为什么/ dev / sda3显示在一个vm中。但它没有在另一个虚拟现实中显示。不知道去哪里检查一下。有人可以帮忙吗。

[root@localhost ~]# fdisk -l

Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 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 label type: dos
Disk identifier: 0x0009a61a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    33554431    16264192   8e  Linux LVM

来自另一个虚拟机:

[root@inches-rmdev01 ~]# fdisk -l

Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 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 label type: dos
Disk identifier: 0x0009a61a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    33554431    16264192   8e  Linux LVM
/dev/sda3        33554432   104857599    35651584   8e  Linux LVM

1 个答案:

答案 0 :(得分:0)

您需要使用显示未分区空间的实用程序,例如cfdisk

例如,我已将8GB SD卡分区为三个分区。这三个分区的总大小小于8GB,如 fdisk

所示
$ sudo fdisk -l /dev/sdc

Disk /dev/sdc: 8068 MB, 8068792320 bytes
249 heads, 62 sectors/track, 1020 cylinders, total 15759360 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: 0x4c2671d0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *       32776       65543       16384    c  W95 FAT32 (LBA)
/dev/sdc2           65544     7438343     3686400   83  Linux
/dev/sdc3            2048       32775       15364   a2  Unknown

使用 cfdisk ,我们也可以看到未分区的空间:

$ sudo cfdisk -P s /dev/sdc
Partition Table for /dev/sdc

               First       Last
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------------------- ----
   Pri/Log           0        2047*     0#       2048*Free Space           None
 3 Primary        2048*      32775*     0       30728*Unknown (A2)         None
 1 Primary       32776*      65543*     0       32768*W95 FAT32 (LBA) (0C) Boot
 2 Primary       65544*    7438343*     0     7372800*Linux (83)           None
   Pri/Log     7438344*   15759359*     0     8321016*Free Space           None

您可以在此处看到磁盘的开头和结尾都有可用空间。

某些图形工具,例如 GParted 也可以显示未分区的空间

$ sudo gparted /dev/sdc

gparted showing unpartitioned/free space on disk