On virtual box, I have my root file system mounted on the LVM:
# df -h | head -n 2 | tail -n 1
/dev/mapper/cl-root 1.5G 951M 404M 71% /
The LVM is mounted on /dev/sda2
, and /dev/sda
has the following table:
# parted /dev/sda print | grep MB
Disk /dev/sda: 8590MB
1 1049kB 1075MB 1074MB primary ext4 boot
2 1075MB 3511MB 2436MB primary lvm
I want to add swap space and a new logical volume 700MB in size - what's best practice for doing this given the above?
I've tried adding a new LVM partition, /dev/sda3
, but after a reboot I just got a black screen.