2

I am trying to install Ubuntu. However I have an lvm on the drive I want to install Ubuntu on.

Gparted cannot remove the lvm which is /dev/sda6.

How can I remove the lvm to instal lvm over it?

Tim
  • 32,861
  • 27
  • 118
  • 178
sayth
  • 1,224

1 Answers1

0

1) If you have data on the drive that you need to keep, back it up.

2) Fill the drive with zeros which will blow away the MBR, Partition table LVM and all data by:

sudo dd if=/dev/zero of=/dev/sdX

or if you want a progress report as you wipe the drive use

sudo dc3dd wipe=/dev/sdX in both cases sdX should be changed to sda, sdb, or whatever drive you are wiping. You can identify the drives using

fdisk -l

Elder Geek
  • 36,023
  • 25
  • 98
  • 183