无法安装我的硬盘

无法安装我的硬盘

当我尝试安装我的一个硬盘时,它无法找到该硬盘的文件夹。

这是该命令的输出df

Filesystem                       1K-blocks      Used Available Use% Mounted on
rootfs                            33000428    119124  32881304   1% /
none                              33000428    119124  32881304   1% /
198.27.85.63:/home/pub/rescue.v7 886788312 250295096 591423904  30% /nfs
198.27.85.63:/home/pub/pro-power 886788312 250295096 591423904  30% /power
198.27.85.63:/home/pub/commonnfs 886788312 250295096 591423904  30% /common
tmpfs                                10240       204     10036   2% /dev
tmpfs                              6600088        72   6600016   1% /run
tmpfs                                 5120         0      5120   0% /run/lock
tmpfs                             13200160         0  13200160   0% /run/shm

当我运行命令 fdisk -l 时出现以下情况:

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  3907029167  1953514583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  3907029167  1953514583+  ee  GPT

Disk /dev/md3: 1978.9 GB, 1978886193152 bytes
2 heads, 4 sectors/track, 483126512 cylinders, total 3865012096 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/md3 doesn't contain a valid partition table

Disk /dev/md2: 21.0 GB, 20970405888 bytes
2 heads, 4 sectors/track, 5119728 cylinders, total 40957824 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/md2 doesn't contain a valid partition table

当我尝试/dev/sda1使用该命令安装硬盘时mount -o barrier=0 /dev/sda1,它会显示以下消息:

mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab

我该如何解决这个问题,以便可以备份我所有的东西?

当我尝试挂载 /dev/sdb3 时出现以下情况:

mount: unknown filesystem type 'linux_raid_member'

然后我尝试使用该命令mdadm --assemble --run /mnt /dev/sdb3,但它只给了我这个:

mdadm: /dev/sdb3 is busy - skipping

我怎样才能解决这个问题?

编辑这是我使用的输出cat /proc/mdstat

md2 : active raid1 sda2[0] sdb2[1]
      20478912 blocks [2/2] [UU]

md3 : active raid1 sda3[0] sdb3[1]
      1932506048 blocks [2/2] [UU]

unused devices: <none>

答案1

对于第一个问题:

当我尝试使用命令 mount -o barrier=0 /dev/sda1 挂载 /dev/sda1 硬盘时,它显示以下消息:

mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab

我该如何解决这个问题,以便可以备份我所有的东西?

答案是mount寻找挂载点在 或 中/etc/fstab/etc/mtab但 均未配置/dev/sda1。您可以在命令行上指定挂载点(空目录即可)mount,例如

mkdir /mnt/hd
mount -o barrier=0 /dev/sda1 /mnt/hd

如果成功,您可以添加配置设置,/etc/fstab这样您就可以在不指定目录的情况下挂载(挂载将读取 fstab 并使用配置的目录),您还可以为该分区设置启动时自动挂载。

对于第二个问题:

当我尝试挂载 /dev/sdb3 时出现以下情况:

mount: unknown filesystem type 'linux_raid_member'

然后我尝试使用命令 mdadm --assemble --run /mnt /dev/sdb3 但它只给了我这个:

mdadm: /dev/sdb3 is busy - skipping

我怎样才能解决这个问题?

您不应挂载属于 MD 阵列的分区。您应该挂载相应的 raid 设备,例如/dev/md2/dev/md3,根据您的要求/proc/mdstat,并且在这种情况下,空目录将用作挂载点:

mkdir /mnt/raid2
mount /dev/md2 /mnt/raid2

和以前一样,您可以在文件中设置一个条目/etc/fstab并省略命令中的目录mount,和/或在系统启动期间受益于自动挂载。

相关内容