wd blue ssd 西数固态盘 绿盘数据修复

下面是硬盘的 smartctl -i /dev/sdd 的信息,

Model Family: WD Blue and Green SSDs
Device Model: WDC WDS100T2G0A-00JH30
Serial Number: 19099D802020
LU WWN Device Id: 5 001b44 8b8446785
Firmware Version: UH510000
User Capacity: 1,000,207,286,272 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 T13/2015-D revision 3
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Feb 19 21:40:34 2021 CST
SMART support is: Available – device has SMART capability.
SMART support is: Enabled

这个固态盘的数据是用lvm管理的,数据格式是 xfs ,但是 在 mount的时候提示 bad superblock , 采用 xfs_repaire 无法直接在原硬盘修复。

用 dd if=/dev/volume-group/lvname of=/big_good_dir/lvname.img

然后 xfs_repair /big_good_dir/lvname.img 修复,或者

xfs_repair -L /big_good_dir/lvname.img

最后 mount -o loop -t xfs /big_good_dir/lvname.img /mnt 在 /mnt 里面查看文件。至此结束修复。

发表评论

邮箱地址不会被公开。 必填项已用*标注