Hello,

I had (have) a disk with encrypted data

# disklabel sd3
# /dev/rsd3c:
type: SCSI
disk: SCSI disk
label: Samsung SSD 980
duid: 8cf4eb1722bfa480
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 121601
total sectors: 1953525168
boundstart: 0
boundend: 1953525168

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:       1953525120                0    RAID
  c:       1953525168                0  unused

I had this error
# /sbin/bioctl -s -c C -l /dev/sd3a softraid0
softraid0: sd5 was not shutdown properly


usually I do
echo "mypassword" | /sbin/bioctl -s -c C -l /dev/sd3a softraid0
before mounting sd5c for example

I used chatgpt to help me to find what could I do to solve the "softraid0: sd5 
was not shutdown properly"

and it told me this
dd if=/dev/zero of=/dev/rsd3a bs=1m count=4
dd if=/dev/zero of=/dev/rsd3a bs=1m seek=$((1953525168/2048 - 4)) count=4

I didn't take enough time to think and chatgpt told me no risk no risk, and 
after a few questions I did it.
My error, I did not backup the bloc sectors before doing these commands

If I type
echo "mypassword" | /sbin/bioctl -s -c C -l /dev/sd3a softraid0
it works
if I type
echo "mywrongpassword" | /sbin/bioctl -s -c C -l /dev/sd3a softraid0
it says wrong password

I would like to know if the situation is completely lost ?

Reply via email to