While working on an Ubuntu Server for personal use, I removed what would not be necessary for my usage. It is snapd & snap that I would like to properly clean.
I removed snap and snapd using the neatest way possible (snap remove <the default installed snap:core,lxd,snapd>
+ apt remove --purge snap
). It indeed remove the daemond, the cache,the /snap
folder however but it doesn't clean the loop parititon, it's unmounted for the moment.
There is a mention of an additional cleanning command I should have run before uninstall all but it's too late. Command would have been snap remove --purge <installed snap:core,lxd,snapd>
, mention here.
How can I remove those loop partition in the best way possible ?
Would it be hard to re install snap latter ? (if needed)
See result of lsblk :
>$lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 0B 1 loop
loop1 7:1 0 0B 1 loop
loop2 7:2 0 0B 1 loop
loop3 7:3 0 0B 1 loop
loop4 7:4 0 0B 1 loop
loop5 7:5 0 0B 1 loop
loop6 7:6 0 0B 0 loop
loop7 7:7 0 0B 0 loop
sda 8:0 0 279.4G 0 disk
├─sda1 8:1 0 1M 0 part
[...]
the used distrib bellow
>$uname -a
Linux ubuntu 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Update I
There is no doubt loop{0..7} was associated with snap, see bellow the output of command before removing snap :
>$ lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 63.5M 1 loop /snap/core20/2015
loop1 7:1 0 111.9M 1 loop /snap/lxd/24322
loop2 7:2 0 87M 1 loop /snap/lxd/27037
loop3 7:3 0 53.3M 1 loop /snap/snapd/19457
loop4 7:4 0 40.4M 1 loop /snap/snapd/20671
loop5 7:5 0 63.9M 1 loop /snap/core20/2182
loop6 7:6 0 0B 0 loop
loop7 7:7 0 0B 0 loop
sda 8:0 0 279.4G 0 disk
├─sda1 8:1 0 1M 0 part
[...]
Updated I
, of the question, the previous mount point of loop{0..7} (before deleting) are explicitly linked to snap – S.PUYGRENIER Feb 26 '24 at 11:56