我在 XFS 文件系统方面遇到了一个奇怪的问题。下面是具体的场景:
我的 2TB 磁盘损坏了 XFS(I/O 错误),因此决定将数据从旧磁盘恢复到新磁盘。
我会跑去ddrescue
将数据保存到新磁盘上。ddrescue
除了 204kB 数据外,已成功完成。之后我尝试安装新磁盘但没有成功。下面我发布ddrescue
结果和安装错误。请帮我解决这个问题。我将非常感激。
ddrescue
结果:
# ddrescue --force -n /dev/sdc /dev/sde
GNU ddrescue 1.16
About to copy 2198 GB from /dev/sdc to /dev/sde
Starting positions:
Infile = 0 B, outfile = 0 B
Copy Block size: 128 sectors Initial skip size: 128 sectors Sectors size: 512 Bytes
Press Ctrl-C to interrupt
rescued : 2198 GB, errsize : 204 kB, current rate : 1560 B/s
Ipos : 68699 MB, errors : 15, average rate : 29103 KB/s
Opos : 68699 MB, time since last successful read : 0 s
Finished
磁盘驱动器
# fdisk -l
Disk /dev/sdc: 2198.3 GB, 2198352166912 bytes 255 heads, 63 sectors/track, 267267 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 267350 2147483647+ ee EFI GPT
Disk /dev/sde: 2198.3 GB, 2198352166912 bytes 255 heads, 63 sectors/track, 267267 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 267350 2147483647+ ee EFI GPT
ls -l /dev/sd*
# ls -l /dev/sd*
brw-r----- 1 root disk 8, 0 Feb 28 02:00 /dev/sda
brw-r----- 1 root disk 8, 1 Feb 28 02:00 /dev/sda1
brw-r----- 1 root disk 8, 2 Feb 28 02:00 /dev/sda2
brw-r----- 1 root disk 8, 3 Feb 27 18:00 /dev/sda3
brw-r----- 1 root disk 8, 4 Feb 28 02:00 /dev/sda4
brw-r----- 1 root disk 8, 5 Feb 28 02:00 /dev/sda5
brw-r----- 1 root disk 8, 16 Feb 28 02:00 /dev/sdb
brw-r----- 1 root disk 8, 17 Feb 28 02:00 /dev/sdb1
brw-r----- 1 root disk 8, 32 Feb 28 02:00 /dev/sdc
brw-r----- 1 root disk 8, 48 Feb 28 02:00 /dev/sdd
brw-r----- 1 root disk 8, 49 Feb 28 02:00 /dev/sdd1
brw-r----- 1 root disk 8, 64 Feb 28 02:00 /dev/sde
里面 # fdisk -l 命令 /dev/dec1 和 /dev/sde1 丢失
分开的打印# parted -i /dev/sde print
Model: DELL PERC 5/i (scsi)
Disk /dev/sde: 2198GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 2198GB 2198GB primary xfs
Information: Don't forget to update /etc/fstab, if necessary.
正在尝试挂载
# mount -t xfs /dev/sde /mnt/mail3
mount: wrong fs type, bad option, bad superblock on /dev/sde,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg、/var/log/messages 和文件输出
# dmesg | tail
XFS: bad magic number
XFS: SB validate failed
# tail -f /var/log/messages
Feb 28 04:09:29 mail kernel: XFS: bad magic number
Feb 28 04:09:29 mail kernel: XFS: SB validate failed
# file -s /dev/sde
/dev/sde: x86 boot sector; partition 1: ID=0xee, starthead 0, startsector 1, 4294967295 sectors, extended partition table (last)\011
请帮忙,我们将不胜感激。
尝试挂载为 hfsplus# mount -t hfsplus /dev/sde1 /mnt/mail3
mount: special device /dev/sde1 does not exist
# mount -t hfsplus /dev/sde /mnt/mail3
mount: wrong fs type, bad option, bad superblock on /dev/sde,
missing codepage or other error
In some cases useful info is found in syslog
- try dmesg | tail or so
# dmesg | tail
hfs: unable to find HFS+ superblock
# tail -f /var/log/messages
Feb 28 02:40:26 mail kernel: hfs: unable to find HFS+ superblock