Debian 8.4 Installer: Can't destroy MDRaid because in use

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Debian 8.4 Installer: Can't destroy MDRaid because in use

Post by gilthanaz »

[Problem]
I just tried to install Debian on Disks that had been a raid array earlier. The installer recognizes this but delete fails because one of the old arrays was somehow active.

[Solution]
The issue was that a swap partition was a raid1 and the installer did recognize it as such, and use it. To be able to destroy the raids and completely wipe the partition tables in the installer, I had to go to a Shell (Ctrl+Alt+F2) and execute some commands.

!!!!! VERY DESTRUCTIVE - BE CAREFUL !!!!!

Code: Select all

# swapoff /dev/mdx
# mdadm --stop /dev/mdx
(where x = the MD device that couldn't be deleted)

You can switch back to the installer with Ctrl+Alt+F1 and then use the GUI to delete the stopped md raid and consequently the used partitions of the mdadm softraid.
Post Reply