安装未安装磁盘的现有分区

安装未安装磁盘的现有分区

我运行了该fdisk -l命令来显示所有磁盘和分区。以下是输出:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x0003c54f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      248832   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              32      121602   976510977    5  Extended
/dev/sda5              32      121602   976510976   fd  Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x000e92b3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      119513   959986688   83  Linux
/dev/sdb2          119514      121602    16773121    5  Extended
/dev/sdb5          119514      121602    16773120   82  Linux swap / Solaris

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x00089d08

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          32      248832   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sdc2              32      121602   976510977    5  Extended
/dev/sdc5              32      121602   976510976   8e  Linux LVM

目前我挂载的分区是/dev/sdb1和 。我想访问/dev/sdb2分区上有一些数据。我该如何临时挂载它以便可以访问它?运行时出现错误,提示。/dev/sda2mount /dev/sda2mount: can't find /dev/sda2 in /etc/fstab or /etc/mtab

答案1

/dev/sda2是个 ”扩展“包含 的分区/dev/sda5。该分区中没有数据(除了 的内容以外/dev/sda5)。

不过,一般情况下,如果您没有包含/etc/fstab挂载选项的条目,则需要提供所有要挂载的选项:

mount /dev/something /some/directory/to/mount/to

可能是因为-t filesystemtypemount 无法自动检测到它。

相关内容