Ram*_*Ram 4 linux raid mount mdadm software-raid
我的服务器在软RAID 1 中有两个 2 TB 硬盘驱动器。我装不上/dev/sda。
parted -lroot@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:
Run Code Online (Sandbox Code Playgroud)
mount /dev/sda /mntroot@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?
Run Code Online (Sandbox Code Playgroud)
cat /proc/mdstatroot@rescue:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
unused devices: <none>
Run Code Online (Sandbox Code Playgroud)
如何访问我的文件?
小智 12
不要试图直接挂载设备!你需要挂载它的一个分区。
例如,当你这样做时这是错误的:
mount /dev/sda /mnt
Run Code Online (Sandbox Code Playgroud)
你应该做的是:
mount /dev/sda3 /mnt
Run Code Online (Sandbox Code Playgroud)
系统需要包含在分区中的元数据才能知道如何处理它。如果直接挂载设备,这些元数据会丢失,挂载会失败。
| 归档时间: |
|
| 查看次数: |
38525 次 |
| 最近记录: |