I've done a fresh Debian install on a system that had a second disk that was previously used for Proxmox and had some lvm
volumes on it.
If I do a lsblk
I get:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 1.8T 0 part
├─crucial2tb-vm--102--disk--1 254:0 0 50G 0 lvm
├─crucial2tb-vm--102--disk--2 254:1 0 42G 0 lvm
├─crucial2tb-vm--102--disk--0 254:2 0 16G 0 lvm
├─crucial2tb-vm--102--disk--3 254:3 0 16G 0 lvm
├─crucial2tb-vm--102--disk--4 254:4 0 32G 0 lvm
├─crucial2tb-vm--100--disk--0 254:5 0 32G 0 lvm
├─crucial2tb-vm--103--disk--0 254:6 0 32G 0 lvm
└─crucial2tb-vm--104--disk--0 254:7 0 8G 0 lvm
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 237G 0 part /
└─nvme0n1p3 259:3 0 977M 0 part [SWAP]
I would like to get rid of all volumes/partitions on /dev/sda
and have an empty disk that I can format with ext4
. How do I do that?
I did not configure lvm
on this new installation, but the system still seems to have discovered the old lvm
mounts and seems to think they are in use somehow.
sudo vgs
has no output, it doesn't show any volume groups.
blkid
shows
/dev/mapper/crucial2tb-vm--104--disk--0: UUID="a04ed926-c3b8-4021-b216-c0da516824b1" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/crucial2tb-vm--102--disk--2: PTUUID="a5073dd8" PTTYPE="dos"
/dev/mapper/crucial2tb-vm--103--disk--0: PTUUID="98d651b8" PTTYPE="dos"
.....
/dev/mapper/crucial2tb-vm--100--disk--0: PTTYPE="dos"
/dev/mapper/crucial2tb-vm--102--disk--3: PTUUID="65c2a2ad" PTTYPE="dos"