我有 2 个驱动器损坏,现在用 RAID 0 上的新驱动器替换。安装新驱动器后,我通过 USB 连接了 2 个旧的损坏驱动器以从中检索数据。这两个驱动器构建了 RAID 0 并使用 LVM,服务器现在可以识别这两个驱动器,但 ind
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5527e79b
Device Boot Start End Blocks Id System
/dev/sdd1 1 121470 975698944 8e Linux LVM
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1f0bbe1f
Device Boot Start End Blocks Id System
/dev/sdc1 1 60802 488383488 7 HPFS/NTFS
我正在尝试安装驱动器,但没有成功
mount /dev/sdc1 /mnt/sdc1 -t ntfs
NTFS signature is missing.
Failed to mount '/dev/sdc1': Invalid argument
The device '/dev/sdc1' 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?
mount /dev/sdd1 /mnt/sdd1
mount: wrong fs type, bad option, bad superblock on /dev/sdd1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg | tail -l
EXT4-fs (sdd1): bad geometry: block count 157286400 exceeds size of device (122096390 blocks)
有没有办法在不丢失数据的情况下安装这两个驱动器并覆盖 RAID 或 LVM 配置?
sfdisk -d /dev/sdx >sdx.txt
cat sdx.txt
sfdisk /dev/sdx <sdx.txt
这有帮助吗?
我的输出是
# partition table of /dev/sdd
unit: sectors
/dev/sdd1 : start= 2048, size=1951397888, Id=8e
/dev/sdd2 : start= 0, size= 0, Id= 0
/dev/sdd3 : start= 0, size= 0, Id= 0
/dev/sdd4 : start= 0, size= 0, Id= 0
答案1
RAID0 不是 RAID...(意思是非冗余)RAID0 只是一种使用两个磁盘来大幅提高性能的方法。但是,它不允许您从故障驱动器中恢复。如果其中一个或两个都已损坏...您可能无法安装它们,直到修复损坏(如果可能)。如果您能够从磁盘读取...您可以尝试使用 mdadm 实用程序手动重新组装 RAID。