The situation
You have an DL380 or similar. Your first disk has failed. Your second disk is in SMART ERROR.
What next?
The hardware
You will need:
- a USB adapter for mounting your disk on Windows
- the failed disks
The software
You will need
- Windows 10/11
- Windows Subsystem for Linux installed
The process
- Attach the disk to USB via the adapter
- If the disk is Windows-compatible, you can use freeware disk recovery tools to go from here. Do not follow the following steps.
- If the disk is Linux-compatible, proceed to the next step
- Start Disk Manager to ensure that you are able to see the disk partition
- Start an elevated PowerShell prompt
- Type:
- wmic diskdrive list brief
- Note the drive that you want to mount
- Type (e.g.)
- wsl --mount \\.\PHYSICALDRIVE2
- If you receive an error:
- The disk \\.\PHYSICALDRIVE2 was attached from WSL2, but failed to mount (error code: -22). For more details, run 'dmesg' inside WSL2.
- ... then you likely have a different file system to EXT4.
- Enter WSL with:
- wsl --system
- Look at the dmesg output by typing:
- dmesg
- Look for the following (or similar):
- [224440.126973] EXT4-fs (sde): VFS: Can't find ext4 filesystem
- [224440.127932] ERROR: Mount:2528: mount(/dev/sde, /share/PHYSICALDRIVE2, ext4, 0x0, ) failed
- Note the disk, in this case "sde"
- Make a data directories for each partition:
- mkdir /data1
- mkdir /data2
- mkdir /data3
- ...
- Mount each partition - the command will fail when there are no more partitions to mount:
- mount -t xfs /dev/sde1 /data1
- mount -t xfs /dev/sde2 /data2
- mount -t xfs /dev/sde3 /data3
- ...
- Now copy the data off to your home directory using the rsync command (cp has issues with large files)
- Install rsync with:
- yum install rsync
- Have progress bars on your file copy with (e.g.):
- rsync --progress /data1/110/disk.0 .
- When you are finished, remember to unmount the partitions:
- umount /data1
- umount /data2
- umount /data3
- ...
- You can now unplug the drive.
No comments:
Post a Comment