linux – 无法挂载’ devsda’

linux – 无法挂载’ devsda’,第1张

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

parted -l的输出

root@rescue:~# parted -lModel: ATA HGST HUS724020AL (scsi)disk /dev/sda: 2000GBSector size (logical/physical): 512B/512BPartition table: gptdisk 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)  primaryError: /dev/sdb: unrecognised disk labelModel: ATA HGST HUS724020AL (scsi)disk /dev/sdb: 2000GBSector size (logical/physical): 512B/512BPartition table: unkNowndisk Flags:

mount / dev / sda / mnt的输出

root@rescue:/mnt# mount /dev/sda /mntmount: block device /dev/sda is write-protected,mounting read-onlyNTFS signature is missing.Failed to mount '/dev/sda': InvalID argumentThe device '/dev/sda' doesn't seem to have a valID NTFS.Maybe the wrong device is used? Or the whole disk instead of apartition (e.g. /dev/sda,not /dev/sda1)? Or the other way around?

cat / proc / mdstat的输出

root@rescue:~# cat /proc/mdstatPersonalitIEs : [linear] [raID0] [raID1] [raID10] [raID6] [raID5] [raID4] [multipath] [faulty]unused devices: <none>

如何访问我的文件?

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

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

mount /dev/sda /mnt

你应该做的是:

mount /dev/sda3 /mnt

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

总结

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

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

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1034205.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存