Hi,
I just want to say thank you for this command!
I modified it to keep bcd only since the a wasn't par of my RAID5.
I don't know why but after I moved one of the 2 RAID5s I had in my machine to a new build, OMV wouldn't detect my 3 HDDs as a RAID5 anymore.
I will keep this one in my book in case it happens to me again.