How to remove all LVs VGs and Partitions On All Drives Before Installing 12.04
Solution 1:
Just for the sake of this question, I just encountered the same problem and here's how I fixed it (all these commands were entered from a live session) :
sudo vgdisplay
then I located the group name to delete
sudo vgremove <groupname>
said y
es to all questions.
Then, I could manually format the whole device thing with GParted.
Solution 2:
I was unable to delete a partition because it was in use by a Volume Group (system). I was told it was unable to delete that Volume Group because a Physical Volume was missing.
Once I ran vgreduce --removemissing system
I was able to delete the Volume Group and then the partition leaving me right where I wanted to be.
Thanks for the suggested answers, they got me thinking on the right track.
Solution 3:
All you need to do is choose the "use whole disk" option in the installer. It will wipe out whatever is on the drive.
Solution 4:
Booting from a LiveCD, starting GParted and creating a new partition table on each drive will effectively remove all existing partitions. The amount of data written will be negligible, so it should not take long.
All data on the drives will be lost.
Solution 5:
I experienced a similar situation.
I found that I had to go through the installation process to the part where you select the mode of creating the partitions: Guided or Manual.
Then I could use the Alt+F2 to switch to another console. When I typed help
, it did not show any of the LVM commands. I used vgdisplay
to see the name of VirtualGroup.
I then specified vgreduce -v -f <inserted my VirtualGroup name from the vgdisplay>
- where the v
flag specifies verbose so I could see what LVM was doing, and the f
flag to force, since the first few times it complained about not finding the missing drive.
Then I switched back to the main console Alt+F1 and selected Guided using LVM. The installer found the fixed LVM partition and deleted it, so that I could continue with the install.