2

While I was checking my disk space today with df -h I noticed all these /dev/loopXX partitions which I don't know what they really are.

enter image description here

What are them? Should I keep it?

Thank you.

FeDos
  • 23
  • 5
  • 3
    Does this answer your question? [Why there are 3 loop devices on my system right after boot?](https://unix.stackexchange.com/questions/551882/why-there-are-3-loop-devices-on-my-system-right-after-boot) – muru Nov 09 '21 at 08:15

2 Answers2

5

/dev/loop devices are devices which make regular files viewed as block devices. They are managed by losetup. I invite you to type losetup -l to see which is mapped to which.

See also https://askubuntu.com/questions/1047456/why-are-all-snaps-being-mounted-and-listed-as-block-devices-or-partitions-for-ub about why snap creates them.

Frédéric Loyer
  • 2,543
  • 4
  • 12
5

These are loop devices, files mapped as a block devices. In your case these are created and used by snap packages on your system and you should just ignore them.

Vojtech Trefny
  • 16,922
  • 6
  • 24
  • 48