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