Unable to remove lvm
I am trying to remove an lvm on my drive which sits in /dev/sda6.
However I don't see to be able to delete it I think maybe /dev is blocking it but not sure as haven't dealt much with lvm before. This is what I have done. Code:
kubuntu@kubuntu:~$ sudo df -kh |
Quote:
Ah, shouldn't you unmount it and remove it from /etc/fstab Type, Code:
umount -a Code:
cat /etc/mtab You should be able to manipulate the partition after that. |
Code:
kubuntu@kubuntu:~$ sudo cat /etc/mtab Code:
umount: /run/user: device is busy. But there is actually nothing in fstab to edit. I need to stop /deve. so lvremove can remove the volume. fstab Code:
overlayfs / overlayfs rw 0 0 |
Code:
kubuntu@kubuntu:~$ sudo lvchange korora_sayth-travelmate-5740g |
Can you provide some additional information as to what you are trying to accomplish. It appears that you are running a liveCD. /dev /udev are virtual filesystems and only exist in memory.
So what do you have installed on sda? Since no sda filesystems appear to be mounted you can use any tool i.e. parted to remove them. |
Well I wanted to install kubuntu over fedora kde. However due to the fedora lvm gparted can not remove this. So I needed to delete the lvm to install.
I actually solved this but not in the way I would have liked. As its a dual boot PC I went into the windows partition manager and deleted it. |
In general most installers will provide the option to delete, use a specified partition or create partitions as desired.
|
Quote:
|
Quote:
Now it's gone, it'll be hard to be sure, but I'd reckon the installer (or more correctly the liveCD boot sequence) used the swap in the lv. Swap doesn't show in the mount table, but "swapon -s" would have shown it. Do a "swapoff <blah>" first, then deal with the LVM entities. I'm actually surprised a Ubuntu derivative recognises and mounts LVM automatically. |
Erase the drive.
LVM records its activity in several places on the disk, so when the system starts, LVM attmepts to look at everything... and picks up on a disk even if you don't want it to. |
I do not think it was actually mounted either.
|
Quote:
The OP has already apparently proven this is not necessary. Distros that automatically run vgchange on boot can be a PITA sometimes (as the OP found out), but no LVM meta-data is stored outside of LVM pv's. |
Well, the conf is stored under /etc/lvm, which does not need to be on an LVM eg on the machine I'm typing from, I have no LVM setup at all (don't need or want), BUT
Code:
# pwd |
I think the problem that OP had, was that he tried lvremove operations on the volume group.
korora_sayth-travelmate-5740g is the name of the volume group. The logical volumes are named root and swap. Normal way would be Code:
lvremove /dev/korora_sayth-travelmate-5740g/root |
All times are GMT -5. The time now is 03:25 AM. |