I've been running a virtual version of Ubuntu via Virtualbox on Windows 8 (host) for a while. However it's recently started to run low on space so I've been using this tutorial to resize it: http://derekmolloy.ie/resize-a-virtualbox-disk/#prettyPhoto
I've got as far as "step 3" (although in reality there are a lot more steps.... I've actually got to the stages around Fig3/Fig4 in that section) but I've encountered a problem.
Gparted shows my /dev/sda2 and /dev/sda5 as being locked
I read in this thread about running lvremove
, lvscan
, etc, but when I try to do that I get the following error message:
user@debian:~$ lvscan
Warning: Running as a non-root user. Functionality may be unavailable.
/run/lvm/lvmetad.socket: connect failed: Permission denied
Warining: Failed to connect to lvmetad. Falling back to internal scanning.
user:debian:~$
Normally I'd be happy to fiddle with things until I can work it out, but due to what could happen if I mess this up I'm reluctant to blindly fiddle in this instance. I have had a google but haven't been able to find out what I need to do to get past this.
Can someone please advise either:
- what I need to do to be able to run this as a non-root user,
- what I need to do to be able to run this as a root user (It's a fresh Gparted CD running on a fresh VirtualBox Ubuntu setup so I haven't setup any users on it yet)
- anything else I need to do to get this to run, so I can continue with the above tutorial.
Please note: I'm a front end web developer primarily used to work in a windows environment, so if you can keep any instructions simple and assume no assumed linux/Gparted knowledge that would be much appreciated :-)
Thanks!