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: 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:
的輸出
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>
如何訪問我的文件?
不要試圖直接安裝設備!你需要掛載它的一個分區。
例如,當您這樣做時這是錯誤的:
mount /dev/sda /mnt
你應該做的是:
mount /dev/sda3 /mnt
系統需要包含在分區中的元數據來知道如何處理它。如果你直接掛載設備,這些元數據會失去,掛載會慘遭失敗。