0

I installed Ubuntu 16.04 using LVM method. Now while trying to re-partition HDD using Gparted, I saw that my HDD present situation is like this : enter image description here LVM is using the entire part of extended space. (Also both of them are locked ? why ? I did not lock those with any password or anything!!)

I searched through this forum and found another similar question LVM Hard disk partitioning after Ubuntu installation and did as pas4080 said.

While defragmenting with sudo e4defrag /mnt

I got the result

Success:            [ 140820/243617 ]
Failure:            [ 102797/243617 ] 

though each of the processes showed to be 'ok'

2nd step showed : $ umount /dev/ubuntu-vg/root

umount: /mnt: umount failed: Operation not permitted

Now I don't know what the faliure was or why umount was not permitted. Can anybody help me here?

EDIT : as suggested by oldfred

sudo umount /dev/vg_ubuntu/lv_root
[sudo] password for alpha: 
umount: /dev/vg_ubuntu/lv_root: mountpoint not found
Spectra
  • 211
  • 1
    You do not use gparted with LVM. You need to use LVM tools to resize volumes. But LVM is intended to use entire drive, so if you want to create partition outside the LVM, you have to first shrink LVM inside partition and then may be able to shrink physical holding LVM. http://askubuntu.com/questions/196125/how-can-i-resize-an-lvm-partition-i-e-physical-volume – oldfred Sep 26 '18 at 16:30
  • I tried to shrink LVM as suggested by the link I shared but gave me error...later I tried the command your link suggested. there too I got error. I edited my question with the error. – Spectra Sep 26 '18 at 17:49
  • I do not know LVM, but most desktop installs with LVM are also encrypted. You have to give passphrase to mount encrypted volumes for commands to work. Since this is major changes to system, you do have good backups? – oldfred Sep 26 '18 at 17:54
  • Yes, I have backups. what kind of passphrase, can you help ? – Spectra Sep 26 '18 at 18:00
  • Did you use the full drive install with encryption? You are then asked for a passphrase every time you boot to un-encrypt your data. – oldfred Sep 26 '18 at 19:30
  • Nope I never encrypted.. – Spectra Sep 26 '18 at 19:36

0 Answers0