All primary partitions are in use

q-it-13

New Member
Joined
Mar 28, 2022
Messages
1
Reaction score
0
Credits
12
Hi all,
I have a problem on a ubuntu 16.04.3 when I try to add spaces to my disks.
I add 10 Gb to my Virtual Machine and when I do
Code:
cfdisk
I can see
Code:
Free space 262144000 283115519 20971520 10G
But when I try to select New it says
All primary partitions are in use
Can you help me I know a little linux but that is out of my skills, how can I add that 10G ?

I can add

Code:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda                                   8:0    0   135G  0 disk
├─sda1                                8:1    0   487M  0 part /boot
├─sda3                                8:3    0   100G  0 part
│ └─template--ubuntu--16--vg-root   252:0    0 116,5G  0 lvm  /
├─sda4                                8:4    0     5G  0 part
│ └─template--ubuntu--16--vg-root   252:0    0 116,5G  0 lvm  /
└─sda5                                8:5    0  19,5G  0 part
  ├─template--ubuntu--16--vg-root   252:0    0 116,5G  0 lvm  /
  └─template--ubuntu--16--vg-swap_1 252:1    0     8G  0 lvm  [SWAP]
sr0 11:0 1 1024M 0 rom

Code:
lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root   template-ubuntu-16-vg -wi-ao---- 116,52g                                                 
swap_1 template-ubuntu-16-vg -wi-ao---- 8,00g

Code:
vgs
VG #PV #LV #SN Attr VSize VFree
template-ubuntu-16-vg 3 2 0 wz--n- 124,52g 0

Code:
pvs
PV VG Fmt Attr PSize PFree
  /dev/sda3  template-ubuntu-16-vg lvm2 a--  100,00g    0
  /dev/sda4  template-ubuntu-16-vg lvm2 a--    5,00g    0
  /dev/sda5 template-ubuntu-16-vg lvm2 a-- 19,52g 0

Can you help me on that ? thank you!
 
Last edited:


You can't do that kinda stuff while the disk is in use. You have to boot your VM to an .iso with the tools you need in order to expand it. You can't increase the disk size on a disk that's in use. So, you just boot the image to a live .iso like you did when you installed it, only instead of installing you just use that environment to make the changes.
 
If they have ESM, it's still supported for security updates. I'm guessing their install version is 16.04.3 and they've since upgraded to new point releases along the way.

ESM is free for personal use, up to three computers.
 

Staff online

Members online


Top