The OS is loaded on its own drive.
My home drive is an Encrypted Raid1.
The OS drive failed, while running. Everything froze, couldn't exit, nothing. I restarted the system and powered off.
Code: Select all
Alt PrtScn reisub
I cannot access my Raid1 drives. Everything I check indicates they are fine and stuff is untouched, but I cannot access the data.
- Original fstab
/dev/mapper/mint--vg-root / ext4 noatime,errors=remount-ro 0 1
#/dev/sda2
UUID=041bfcca-f468-4eec-89fe-84ba0de05fc3 /boot ext2 defaults 0 2
#/dev/sda1
UUID=28BB-C74E /boot/efi vfat umask=0077 0 1
#Swap
/dev/mapper/cryptswap1 none swap sw 0 0
#dev/sdd
UUID=61431159-cb6a-4a69-830e-7e27a979ab3e /tmp ext4 noatime,errors=remount-ro 0 1
#/dev/md0
/dev/mapper/0 /home ext4 rw,errors=remount-ro 0 1
- Original crypttab
sda3_crypt UUID=b91ab150-2dc6-46f6-ac6a-92a70dbde4d4 none luks,discard
#Swap
cryptswap1 UUID=60322181-8c0c-43e8-8f13-24367fd4abbe /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
#home
0 UUID=d92357f7-1935-49cc-a716-de9f25e9c0b5 /etc/fsdrive.conf luks
- New fstab
#/dev/sda2
UUID=7aa945a5-0476-402e-8b9a-dca083c3f0f5 / ext4 errors=remount-ro 0 1
#/dev/sda1
UUID=DF0A-0AD6 /boot/efi vfat umask=0077 0 1
#Swap
/swapfile none swap sw 0 0
- New crypttab
#Unknown
#sda3_crypt UUID=b91ab150-2dc6-46f6-ac6a-92a70dbde4d4 none luks,discard
#Swap
cryptswap1 UUID=60322181-8c0c-43e8-8f13-24367fd4abbe /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
#Raid1
0 UUID=004d8960-1adb15cd-149755aa-819c3f2a /etc/fsdrive.conf luks
Code: Select all
sudo apt-get install mdadm
Code: Select all
sudo mdadm --create /dev/md0 --level=mirror --metadata=1.2 --raid-devices=2 /dev/sd[b-c]1
Code: Select all
cat /proc/mdstat
md0 : active raid1 sdc1[1] sdb1[0]
7813893120 blocks super 1.2 [2/2] [UU]
bitmap: 0/59 pages [0KB], 65536KB chunk
unused devices: <none>
Code: Select all
sudo mdadm --detail /dev/md0
Version : 1.2
Creation Time : Fri Feb 3 18:57:12 2023
Raid Level : raid1
Array Size : 7813893120 (7.28 TiB 8.00 TB)
Used Dev Size : 7813893120 (7.28 TiB 8.00 TB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sat Feb 4 10:17:36 2023
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : bitmap
Name : chimera:0 (local to host chimera)
UUID : 004d8960:1adb15cd:149755aa:819c3f2a
Events : 11205
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
Code: Select all
sudo cryptsetup -v luksAddKey /dev/md/0 /etc/fsdrive.conf
Command failed with code -4 (wrong device or file specified).
Code: Select all
sudo modprobe dm-crypt
Code: Select all
lsblk
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 232.4G 0 part /
sdb 8:16 0 7.3T 0 disk
└─sdb1 8:17 0 7.3T 0 part
└─md0 9:0 0 7.3T 0 raid1
sdc 8:32 0 7.3T 0 disk
└─sdc1 8:33 0 7.3T 0 part
└─md0 9:0 0 7.3T 0 raid1
sr0 11:0 1 1024M 0 rom
sr1 11:1 1 1024M 0 rom
Code: Select all
sudo mkdir /mnt/data
Code: Select all
sudo mount /dev/md0 /mnt/data
Code: Select all
sudo mount /dev/mapper/0 /mnt/data
Code: Select all
cryptsetup luksOpen /dev/md0 crypt1
Code: Select all
cryptsetup luksOpen /dev/sdb1 crypt1
Code: Select all
cryptsetup luksOpen /dev/sdc1 crypt1
Your thoughts? Anything helps. Thanks in advance