Cobra Forum

Linux => General Help => Topic started by: mahesh on Oct 11, 2023, 02:47 AM

Title: restoring data from raid1 after hard drive failure
Post by: mahesh on Oct 11, 2023, 02:47 AM
Several years ago I bought two WD usb hard drives.
I intended to configure them as a RAID1. I might have not done it correctly.
Today I can't access the data.

If I plug in the drives and run lsusb, they show up:
> lsusb
Bus 004 Device 011: ID 1058:25a3 Western Digital Technologies, Inc. Elements Desktop (WDBWLG)
Bus 004 Device 012: ID 1058:25a3 Western Digital Technologies, Inc. Elements Desktop (WDBWLG)

If I run lsblk, they show up, but they are not mounted:
>lsblk
sde 8:64 0 3.7T 0 disk
└─sde1 8:65 0 3.7T 0 part

If I only plug in one of the drives, it shows up in lsusb, but not in lsblk.

If I try to mount the drive, I get an error:


> sudo mount /dev/sde1 /mnt/data
mount: /mnt/data: wrong fs bypte, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.

running fdisk yields

> fdisk -l
Disk /dev/sde: 3.65 TiB, 4000752599040 bytes, 7813969920 sectors
Disk model: Elements 25A3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 40F89BD0-DF35-4524-9C87-04C2DBFC22A3

Device Start End Sectors Size Type
/dev/sde1 2048 7813967871 7813965824 3.7T Microsoft basic data