Score:0

Root directory full on a fresh install using LVM

us flag

i'm having some issues with my freshly installed 20.04 LTS. To begin with my Laptop has 2 drives, a 256G SSD (sdb) and a 1T HDD (sda). I just reinstalled Ubuntu using LVM and a full system encryption (following this post) onto the SSD. I than went ahead and moved my /home partition to the HDD, encrypted it as well and set everything up so it'll decrypt along with the root partition. This all worked really well (for the detailed steps see Andor Kiss's reply on the above linked post.

The problem i'm having is that after installing some essential programms the system keeps telling me the root partition is running out of space and i can't install any more packages. My guess is that LVM is still reserving space on the SSD for the /home partition (which i did save from the previous installation and which is quite large with a music library and some backups and stuff), but i can't really tell for sure. Does anybody maybe have a clue on how to resolve this?

I'll put some info below which i think might help:

  • output of lsblk:
NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                   7:0    0     4K  1 loop  /snap/bare/5
loop1                   7:1    0 216,5M  1 loop  /snap/code/78
loop2                   7:2    0  99,4M  1 loop  /snap/core/11993
loop3                   7:3    0  55,5M  1 loop  /snap/core18/2246
loop4                   7:4    0  55,5M  1 loop  /snap/core18/1988
loop5                   7:5    0  64,8M  1 loop  /snap/gtk-common-themes/1514
loop6                   7:6    0   219M  1 loop  /snap/gnome-3-34-1804/72
loop7                   7:7    0   219M  1 loop  /snap/gnome-3-34-1804/66
loop8                   7:8    0 164,8M  1 loop  /snap/gnome-3-28-1804/161
loop9                   7:9    0  32,5M  1 loop  /snap/snapd/13640
loop10                  7:10   0 162,1M  1 loop  /snap/spotify/53
loop11                  7:11   0 426,6M  1 loop  /snap/pycharm-community/256
loop12                  7:12   0    51M  1 loop  /snap/snap-store/547
loop13                  7:13   0    51M  1 loop  /snap/snap-store/518
loop14                  7:14   0  65,2M  1 loop  /snap/gtk-common-themes/1519
loop15                  7:15   0  31,1M  1 loop  /snap/snapd/11036
sda                     8:0    0 931,5G  0 disk  
└─sda_crypt           253:3    0 931,5G  0 crypt /home
sdb                     8:16   0 238,5G  0 disk  
├─sdb1                  8:17   0   512M  0 part  /boot/efi
├─sdb2                  8:18   0   732M  0 part  /boot
└─sdb3                  8:19   0 237,3G  0 part  
  └─sdb3_crypt        253:0    0 237,2G  0 crypt 
    ├─vgubuntu-root   253:1    0 236,3G  0 lvm   /
    └─vgubuntu-swap_1 253:2    0   976M  0 lvm   [SWAP]
sr0                    11:0    1  1024M  0 rom   
  • df -h:
Filesystem                 Size  Used Avail Use% Mounted on
udev                       3,8G     0  3,8G   0% /dev
tmpfs                      784M  2,1M  782M   1% /run
/dev/mapper/vgubuntu-root  232G  220G  591M 100% /
tmpfs                      3,9G     0  3,9G   0% /dev/shm
tmpfs                      5,0M  4,0K  5,0M   1% /run/lock
tmpfs                      3,9G     0  3,9G   0% /sys/fs/cgroup
/dev/loop0                 128K  128K     0 100% /snap/bare/5
/dev/loop2                 100M  100M     0 100% /snap/core/11993
/dev/loop3                  56M   56M     0 100% /snap/core18/2246
/dev/loop1                 217M  217M     0 100% /snap/code/78
/dev/loop4                  56M   56M     0 100% /snap/core18/1988
/dev/loop5                  65M   65M     0 100% /snap/gtk-common-themes/1514
/dev/loop6                 219M  219M     0 100% /snap/gnome-3-34-1804/72
/dev/loop7                 219M  219M     0 100% /snap/gnome-3-34-1804/66
/dev/loop8                 165M  165M     0 100% /snap/gnome-3-28-1804/161
/dev/loop9                  33M   33M     0 100% /snap/snapd/13640
/dev/loop10                163M  163M     0 100% /snap/spotify/53
/dev/loop12                 51M   51M     0 100% /snap/snap-store/547
/dev/loop11                427M  427M     0 100% /snap/pycharm-community/256
/dev/loop13                 52M   52M     0 100% /snap/snap-store/518
/dev/loop14                 66M   66M     0 100% /snap/gtk-common-themes/1519
/dev/loop15                 32M   32M     0 100% /snap/snapd/11036
/dev/sdb2                  705M  211M  443M  33% /boot
/dev/sdb1                  511M  5,3M  506M   2% /boot/efi
/dev/mapper/sda_crypt      916G  212G  658G  25% /home
tmpfs                      784M   52K  784M   1% /run/user/1000
in flag
Your current `/home` shows as being 212GB in size, which makes it plausible that the data is also located on your SSD. When you moved your home directory to the 1TB device, did you use `cp` or `mv`?
CaptainJack42 avatar
us flag
I used ```rsnyc```
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.