Removing Software RAID Volumes

Consider following RAID-1 System. The target is to un-mount the drive and safely remove the partitions.

RemoveRAID-1.png (6295 bytes)

The partitions are as under
RemoveRAID-2.png (24247 bytes)
First un-mount the volume if it is mounted and then use the -S option with mdadm command as below.
RemoveRAID-3.png (3934 bytes)
After stopping the drive you can now safely remove the partitions with fdisk command or you can use parted command as below.
RemoveRAID-4.png (16915 bytes)
You have to repeat this command to remove all RAID compatible partitions.