Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 无法挂载’/ dev / sda’大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我的服务器在软 RAID 1中有两个2 TB硬盘驱动器.我无法挂载/ dev / sda. parted -l的输出 root@rescue:~# parted -l Model: ATA HGST HUS724020AL (scsi) Disk /dev/sda: 2000GB Sector size (logical/physical): 512B/512B Partition Table:
我的服务器在软 RAID 1中有两个2 TB硬盘驱动器.我无法挂载/ dev / sda.

parted -l的输出

root@rescue:~# parted -l
Model: ATA HGST HUS724020AL (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

number  Start   End     Size    File system     Name     Flags
 1      20.5kB  1049kB  1029kB                  priMary  bios_grub
 2      2097kB  1987GB  1987GB                  priMary
 3      1987GB  1992GB  5242MB  ext4            priMary
 4      1992GB  2000GB  8388MB  linux-swap(v1)  priMary


Error: /dev/sdb: unrecognised disk label
Model: ATA HGST HUS724020AL (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: unkNown
Disk Flags:
@H_524_16@mount / dev / sda / mnt的输出

root@rescue:/mnt# mount /dev/sda /mnt
mount: block device /dev/sda is write-protected,mounTing read-only
NTFS signature is missing.
Failed to mount '/dev/sda': Invalid argument
The device '/dev/sda' doesn't seem to have a valid NTFs.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda,not /dev/sda1)? Or the other way around?

cat / proc / mdstat的输出

root@rescue:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
unused devices: <none>

如何访问我的文件

@L_450_8@

不要试图直接安装设备!您需要挂载它的分区.

例如,当你这样做时,这是错误的:

@H_264_18@mount /dev/sda /mnt

你应该做的是:

@H_264_18@mount /dev/sda3 /mnt

系统需要分区中包含的元数据才能知道如何处理它.如果直接挂载设备,则会丢失这些元数据,并且挂载将失败.

大佬总结

以上是大佬教程为你收集整理的linux – 无法挂载’/ dev / sda’全部内容,希望文章能够帮你解决linux – 无法挂载’/ dev / sda’所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。