[liveuser@eos-2020.07.15 ~]$ sudo mdadm --remove /dev/sdb
mdadm: /dev/sdb does not appear to be an md device
Try to close again GParted and reopen for sdb
No change, sadly.
EDIT: Just to clarify, neither have a lock anymore. It looks like it will let me reformat sdb. Should I try that? If so, what type?
Yes try to format in ext4
Okay so i read you have to use the commands on each drive.
So i would try again since the one worked
mdadm --stop /dev/md126
sudo mdadm --stop /dev/sdb
mdadm --remove /dev/sdb
Edit: Okay i wait to see if you can reformat them.
I found this also to delete raid metadata we will see after :
|dmraid|{-r|--raid_devices} *|
||{-E|--erase_metadata}|
||[-f|--format FORMAT[,FORMAT...]]|
||[--separator SEPARATOR]|
||[device-path...]|
@FLVAL
Also can use on each drive?
mdadm --zero-superblock /dev/sda
mdadm --zero-superblock /dev/sdb
Couldn’t actually reformat unfortunately.
Says that sdb doesn’t appear to be an md device, like before.
This doesn’t seem to want to run at all. Just throws errors regardless of if I run it as a block or line by line.
[liveuser@eos-2020.07.15 ~]$ sudo mdadm --zero-superblock /dev/sda
mdadm: Couldn't open /dev/sda for write - not zeroing
[liveuser@eos-2020.07.15 ~]$ sudo mdadm --zero-superblock /dev/sdb
mdadm: Couldn't open /dev/sdb for write - not zeroing
Doesn’t seem to work.
@FLVAL
What about the old fashioned way to zero out the drive? Change YOUR_DEV to /dev/sda etc.
dd if=/dev/zero of=$YOUR_DEV bs=1M
Edit: Something to try later?
This is normal it doesn’t work this is the help how dmraid works !
@FLVAL
Also read this.
mdadm -r /dev/md126 failed # all failed devices
mdadm -r /dev/md126 detached # failed ones that aren't in /dev anymore
I know this wasn’t addressed to me, but just to reaffirm, md126 is definitely disabled right now as it can’t see it.
yes the latest way to zero the disk
so it means now you only have sda and sdb on GParted ?
When you make change on GParted refresh it to redetect the current state, you have a refresh button on the GParted Tab top left for it
Did you try those commands above then?
mdadm -r /dev/md126 failed # all failed devices
mdadm -r /dev/md126 detached # failed ones that aren't in /dev anymore
Good news! I tried reformatting sbd again, just for the heck of it, and it looks like they are both now properly blank.
They don’t even have partition tables yet. Trying to make them now.
I like this, it seems now you could make your partitions.
Do you think to use sda as your sysem / and sdb as your /home ?
I’m still reading so i haven’t given up.
mdadm /dev/md126 --remove --force /dev/sda
mdadm /dev/md126 --remove --force /dev/sdb
rm /dev/sda
rm /dev/sdb
They are both now successfully deleted and no longer show up under gparted.
Awesome…
Edit: How did that happen?