What are the dev-loop services that started on boot?Slow boot in Ubuntu 18.10Strange new disks appeared in...

Why do no American passenger airlines still operate dedicated cargo flights?

How do Chazal know that the descendants of a Mamzer may never marry into the general populace?

Porting Linux to another platform requirements

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

How should I handle players who ignore the session zero agreement?

What is the wife of a henpecked husband called?

Am I a Rude Number?

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

Why Prushim were the ones who "separated"?

How to remove extra black line coming in table due to hhline

How to prevent users from executing commands through browser URL

Explain the objections to these measures against human trafficking

Eww, those bytes are gross

My cat mixes up the floors in my building. How can I help him?

Avoiding morning and evening handshakes

Using only 1s, make 29 with the minimum number of digits

Why zero tolerance on nudity in space?

Incorporating research and background: How much is too much?

Measure of a Brownian motion = normal distribution?

How would an AI self awareness kill switch work?

How to deal with an incendiary email that was recalled

Roman Numerals equation 1

Find some digits of factorial 17

How long is the D&D Starter Set campaign?



What are the dev-loop services that started on boot?


Slow boot in Ubuntu 18.10Strange new disks appeared in UbuntuUbuntu 18.04 slow bootMultiple Instances of /dev/loop0: TYPE=“squashfs”Ubuntu /dev/loopX - Way too many mounted unitsLong boot time due to loaderubuntu snap mounts slow bootHow to speed-up boot by disabling few dev-loox.device?Very slow boot up Ubuntu 18.04Very slow load on Ubuntu 18.04ubuntu 17.10 snapd.service takes too long at bootSome services causes slower boot time Ubuntu 17.10Ubuntu 18.04 purple screen stays a long time before splashCan I improve boot time? dev-sda6.device service takes longUbuntu 18.04 LTS booting very slow after recent updateNew services slowing boot after upgrade to 18.04Very slow load on Ubuntu 18.04Ubuntu is booting up so slowSlow Boot Time UBUNTU 18.04Slow boot due to long loader time













5















After booting I ran systemd-analyze blame and here are the results:



     21.596s systemd-journal-flush.service
18.658s dev-sda8.device
15.099s dev-loop33.device
15.034s dev-loop19.device
15.012s dev-loop34.device
14.989s dev-loop21.device
14.877s dev-loop15.device
14.866s dev-loop26.device
14.773s dev-loop27.device
14.684s dev-loop30.device
14.677s dev-loop32.device
14.649s dev-loop35.device
14.590s dev-loop25.device
14.267s dev-loop23.device
14.192s dev-loop24.device
14.156s dev-loop29.device
14.133s dev-loop16.device
14.065s dev-loop31.device
14.059s dev-loop28.device
13.821s dev-loop20.device
13.531s dev-loop22.device
13.495s dev-loop14.device
13.364s dev-loop18.device


What are these dev-loopxx.device (xx denotes numbers) services and why are they taking so much time? Are they related to the mounting of snaps? Can I reduce the boot time by disabling them? I'm running Ubuntu 18.04 alongside Windows 10.










share|improve this question























  • Mine take 14ms at the most. Also, I have only 5 of them.

    – Jos
    Jul 16 '18 at 17:58











  • @Jos Does this mean that there are some errors in my system?

    – Apoorv Potnis
    Jul 16 '18 at 18:08











  • No it does not mean there are errors perse. It means you got more software installed from containers. Each loop device is a snap install.

    – Rinzwind
    Jul 16 '18 at 18:17













  • @Rinzwind Then if I uninstalled those snaps and installed the non-snap versions of those apps, will my boot get faster?

    – Apoorv Potnis
    Jul 16 '18 at 18:25






  • 1





    Yes, it will remove one loop per install (and also old revisions if there are).

    – Rinzwind
    Jul 16 '18 at 18:32
















5















After booting I ran systemd-analyze blame and here are the results:



     21.596s systemd-journal-flush.service
18.658s dev-sda8.device
15.099s dev-loop33.device
15.034s dev-loop19.device
15.012s dev-loop34.device
14.989s dev-loop21.device
14.877s dev-loop15.device
14.866s dev-loop26.device
14.773s dev-loop27.device
14.684s dev-loop30.device
14.677s dev-loop32.device
14.649s dev-loop35.device
14.590s dev-loop25.device
14.267s dev-loop23.device
14.192s dev-loop24.device
14.156s dev-loop29.device
14.133s dev-loop16.device
14.065s dev-loop31.device
14.059s dev-loop28.device
13.821s dev-loop20.device
13.531s dev-loop22.device
13.495s dev-loop14.device
13.364s dev-loop18.device


What are these dev-loopxx.device (xx denotes numbers) services and why are they taking so much time? Are they related to the mounting of snaps? Can I reduce the boot time by disabling them? I'm running Ubuntu 18.04 alongside Windows 10.










share|improve this question























  • Mine take 14ms at the most. Also, I have only 5 of them.

    – Jos
    Jul 16 '18 at 17:58











  • @Jos Does this mean that there are some errors in my system?

    – Apoorv Potnis
    Jul 16 '18 at 18:08











  • No it does not mean there are errors perse. It means you got more software installed from containers. Each loop device is a snap install.

    – Rinzwind
    Jul 16 '18 at 18:17













  • @Rinzwind Then if I uninstalled those snaps and installed the non-snap versions of those apps, will my boot get faster?

    – Apoorv Potnis
    Jul 16 '18 at 18:25






  • 1





    Yes, it will remove one loop per install (and also old revisions if there are).

    – Rinzwind
    Jul 16 '18 at 18:32














5












5








5


2






After booting I ran systemd-analyze blame and here are the results:



     21.596s systemd-journal-flush.service
18.658s dev-sda8.device
15.099s dev-loop33.device
15.034s dev-loop19.device
15.012s dev-loop34.device
14.989s dev-loop21.device
14.877s dev-loop15.device
14.866s dev-loop26.device
14.773s dev-loop27.device
14.684s dev-loop30.device
14.677s dev-loop32.device
14.649s dev-loop35.device
14.590s dev-loop25.device
14.267s dev-loop23.device
14.192s dev-loop24.device
14.156s dev-loop29.device
14.133s dev-loop16.device
14.065s dev-loop31.device
14.059s dev-loop28.device
13.821s dev-loop20.device
13.531s dev-loop22.device
13.495s dev-loop14.device
13.364s dev-loop18.device


What are these dev-loopxx.device (xx denotes numbers) services and why are they taking so much time? Are they related to the mounting of snaps? Can I reduce the boot time by disabling them? I'm running Ubuntu 18.04 alongside Windows 10.










share|improve this question














After booting I ran systemd-analyze blame and here are the results:



     21.596s systemd-journal-flush.service
18.658s dev-sda8.device
15.099s dev-loop33.device
15.034s dev-loop19.device
15.012s dev-loop34.device
14.989s dev-loop21.device
14.877s dev-loop15.device
14.866s dev-loop26.device
14.773s dev-loop27.device
14.684s dev-loop30.device
14.677s dev-loop32.device
14.649s dev-loop35.device
14.590s dev-loop25.device
14.267s dev-loop23.device
14.192s dev-loop24.device
14.156s dev-loop29.device
14.133s dev-loop16.device
14.065s dev-loop31.device
14.059s dev-loop28.device
13.821s dev-loop20.device
13.531s dev-loop22.device
13.495s dev-loop14.device
13.364s dev-loop18.device


What are these dev-loopxx.device (xx denotes numbers) services and why are they taking so much time? Are they related to the mounting of snaps? Can I reduce the boot time by disabling them? I'm running Ubuntu 18.04 alongside Windows 10.







boot 18.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 16 '18 at 17:49









Apoorv PotnisApoorv Potnis

204112




204112













  • Mine take 14ms at the most. Also, I have only 5 of them.

    – Jos
    Jul 16 '18 at 17:58











  • @Jos Does this mean that there are some errors in my system?

    – Apoorv Potnis
    Jul 16 '18 at 18:08











  • No it does not mean there are errors perse. It means you got more software installed from containers. Each loop device is a snap install.

    – Rinzwind
    Jul 16 '18 at 18:17













  • @Rinzwind Then if I uninstalled those snaps and installed the non-snap versions of those apps, will my boot get faster?

    – Apoorv Potnis
    Jul 16 '18 at 18:25






  • 1





    Yes, it will remove one loop per install (and also old revisions if there are).

    – Rinzwind
    Jul 16 '18 at 18:32



















  • Mine take 14ms at the most. Also, I have only 5 of them.

    – Jos
    Jul 16 '18 at 17:58











  • @Jos Does this mean that there are some errors in my system?

    – Apoorv Potnis
    Jul 16 '18 at 18:08











  • No it does not mean there are errors perse. It means you got more software installed from containers. Each loop device is a snap install.

    – Rinzwind
    Jul 16 '18 at 18:17













  • @Rinzwind Then if I uninstalled those snaps and installed the non-snap versions of those apps, will my boot get faster?

    – Apoorv Potnis
    Jul 16 '18 at 18:25






  • 1





    Yes, it will remove one loop per install (and also old revisions if there are).

    – Rinzwind
    Jul 16 '18 at 18:32

















Mine take 14ms at the most. Also, I have only 5 of them.

– Jos
Jul 16 '18 at 17:58





Mine take 14ms at the most. Also, I have only 5 of them.

– Jos
Jul 16 '18 at 17:58













@Jos Does this mean that there are some errors in my system?

– Apoorv Potnis
Jul 16 '18 at 18:08





@Jos Does this mean that there are some errors in my system?

– Apoorv Potnis
Jul 16 '18 at 18:08













No it does not mean there are errors perse. It means you got more software installed from containers. Each loop device is a snap install.

– Rinzwind
Jul 16 '18 at 18:17







No it does not mean there are errors perse. It means you got more software installed from containers. Each loop device is a snap install.

– Rinzwind
Jul 16 '18 at 18:17















@Rinzwind Then if I uninstalled those snaps and installed the non-snap versions of those apps, will my boot get faster?

– Apoorv Potnis
Jul 16 '18 at 18:25





@Rinzwind Then if I uninstalled those snaps and installed the non-snap versions of those apps, will my boot get faster?

– Apoorv Potnis
Jul 16 '18 at 18:25




1




1





Yes, it will remove one loop per install (and also old revisions if there are).

– Rinzwind
Jul 16 '18 at 18:32





Yes, it will remove one loop per install (and also old revisions if there are).

– Rinzwind
Jul 16 '18 at 18:32










2 Answers
2






active

oldest

votes


















8














You can determine the list of all installed snaps with snap list, for relation between mount-point and snap name you can use systemctl status, mount and losetup.



For example on my Ubuntu MATE 18.04 LTS I have the following snaps installed:



$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.33.1 4917 stable canonical core
software-boutique 18.04.0-5b99b84 31 stable/… flexiondotorg classic
ubuntu-mate-welcome 17.10.23-e4f4c4c 169 stable/… flexiondotorg classic


They create loop-devices as follows:



$ systemd-analyze blame | grep dev-loop
4.303s dev-loop4.device
4.267s dev-loop2.device
4.193s dev-loop0.device
4.146s dev-loop3.device
111ms dev-loop5.device


Mount points are as following:



$ mount | grep snapd
/var/lib/snapd/snaps/core_4830.snap on /snap/core/4830 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap on /snap/ubuntu-mate-welcome/169 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/software-boutique_31.snap on /snap/software-boutique/31 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4650.snap on /snap/core/4650 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide)


Let's look closer to dev-loop4.device:



$ systemctl status dev-loop4.device
● dev-loop4.device - /dev/loop4
Follow: unit currently follows state of sys-devices-virtual-block-loop4.device
Loaded: loaded
Active: active (plugged) since Tue 2018-07-17 13:05:41 MSK; 4min 44s ago
Device: /sys/devices/virtual/block/loop4


The folder /sys/devices/virtual/block/loop4 contains very useful file loop/backing_file, we can read its contents:



$ cat /sys/devices/virtual/block/loop4/loop/backing_file 
/var/lib/snapd/snaps/core_4650.snap


So we just determined that /dev/loop4 is created by core snap.





But the easiest way is to use losetup (see man losetup):



$ losetup 
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
/dev/loop4 0 0 1 1 /var/lib/snapd/snaps/core_4650.snap 0 512
/dev/loop2 0 0 1 1 /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap 0 512
/dev/loop0 0 0 1 1 /var/lib/snapd/snaps/core_4830.snap 0 512
/dev/loop5 0 0 1 1 /var/lib/snapd/snaps/core_4917.snap 0 512
/dev/loop3 0 0 1 1 /var/lib/snapd/snaps/software-boutique_31.snap 0 512


Hope this helps to understand Snaps mount-points better.



Bottom-line: by using Snaps for having up-to-date software, we end up paying for it with higher network traffic, more disk usage and slower boot time. If you do not want to use Snaps at all, then remove them with sudo apt-get purge snapd.






share|improve this answer

































    0














    What are snaps? why do they take so much resource to run, how is that an advantage? I thought we wanted faster not slower boot times? I just have not seen much information on snaps, other than the name, I have not seen any descriptions or how to use them or even articles on snaps. Must be a hidden Ubuntu thing. Or I have been in Ubuntu 16.04 too long. In 18.04 I miss the Classic Menu Indicator that I still use in 16.04. It is easier that hunting through 3-4 screens to find an application.





    share








    New contributor




    ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1056645%2fwhat-are-the-dev-loop-services-that-started-on-boot%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      8














      You can determine the list of all installed snaps with snap list, for relation between mount-point and snap name you can use systemctl status, mount and losetup.



      For example on my Ubuntu MATE 18.04 LTS I have the following snaps installed:



      $ snap list
      Name Version Rev Tracking Developer Notes
      core 16-2.33.1 4917 stable canonical core
      software-boutique 18.04.0-5b99b84 31 stable/… flexiondotorg classic
      ubuntu-mate-welcome 17.10.23-e4f4c4c 169 stable/… flexiondotorg classic


      They create loop-devices as follows:



      $ systemd-analyze blame | grep dev-loop
      4.303s dev-loop4.device
      4.267s dev-loop2.device
      4.193s dev-loop0.device
      4.146s dev-loop3.device
      111ms dev-loop5.device


      Mount points are as following:



      $ mount | grep snapd
      /var/lib/snapd/snaps/core_4830.snap on /snap/core/4830 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap on /snap/ubuntu-mate-welcome/169 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/software-boutique_31.snap on /snap/software-boutique/31 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/core_4650.snap on /snap/core/4650 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide)


      Let's look closer to dev-loop4.device:



      $ systemctl status dev-loop4.device
      ● dev-loop4.device - /dev/loop4
      Follow: unit currently follows state of sys-devices-virtual-block-loop4.device
      Loaded: loaded
      Active: active (plugged) since Tue 2018-07-17 13:05:41 MSK; 4min 44s ago
      Device: /sys/devices/virtual/block/loop4


      The folder /sys/devices/virtual/block/loop4 contains very useful file loop/backing_file, we can read its contents:



      $ cat /sys/devices/virtual/block/loop4/loop/backing_file 
      /var/lib/snapd/snaps/core_4650.snap


      So we just determined that /dev/loop4 is created by core snap.





      But the easiest way is to use losetup (see man losetup):



      $ losetup 
      NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
      /dev/loop4 0 0 1 1 /var/lib/snapd/snaps/core_4650.snap 0 512
      /dev/loop2 0 0 1 1 /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap 0 512
      /dev/loop0 0 0 1 1 /var/lib/snapd/snaps/core_4830.snap 0 512
      /dev/loop5 0 0 1 1 /var/lib/snapd/snaps/core_4917.snap 0 512
      /dev/loop3 0 0 1 1 /var/lib/snapd/snaps/software-boutique_31.snap 0 512


      Hope this helps to understand Snaps mount-points better.



      Bottom-line: by using Snaps for having up-to-date software, we end up paying for it with higher network traffic, more disk usage and slower boot time. If you do not want to use Snaps at all, then remove them with sudo apt-get purge snapd.






      share|improve this answer






























        8














        You can determine the list of all installed snaps with snap list, for relation between mount-point and snap name you can use systemctl status, mount and losetup.



        For example on my Ubuntu MATE 18.04 LTS I have the following snaps installed:



        $ snap list
        Name Version Rev Tracking Developer Notes
        core 16-2.33.1 4917 stable canonical core
        software-boutique 18.04.0-5b99b84 31 stable/… flexiondotorg classic
        ubuntu-mate-welcome 17.10.23-e4f4c4c 169 stable/… flexiondotorg classic


        They create loop-devices as follows:



        $ systemd-analyze blame | grep dev-loop
        4.303s dev-loop4.device
        4.267s dev-loop2.device
        4.193s dev-loop0.device
        4.146s dev-loop3.device
        111ms dev-loop5.device


        Mount points are as following:



        $ mount | grep snapd
        /var/lib/snapd/snaps/core_4830.snap on /snap/core/4830 type squashfs (ro,nodev,relatime,x-gdu.hide)
        /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap on /snap/ubuntu-mate-welcome/169 type squashfs (ro,nodev,relatime,x-gdu.hide)
        /var/lib/snapd/snaps/software-boutique_31.snap on /snap/software-boutique/31 type squashfs (ro,nodev,relatime,x-gdu.hide)
        /var/lib/snapd/snaps/core_4650.snap on /snap/core/4650 type squashfs (ro,nodev,relatime,x-gdu.hide)
        /var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide)


        Let's look closer to dev-loop4.device:



        $ systemctl status dev-loop4.device
        ● dev-loop4.device - /dev/loop4
        Follow: unit currently follows state of sys-devices-virtual-block-loop4.device
        Loaded: loaded
        Active: active (plugged) since Tue 2018-07-17 13:05:41 MSK; 4min 44s ago
        Device: /sys/devices/virtual/block/loop4


        The folder /sys/devices/virtual/block/loop4 contains very useful file loop/backing_file, we can read its contents:



        $ cat /sys/devices/virtual/block/loop4/loop/backing_file 
        /var/lib/snapd/snaps/core_4650.snap


        So we just determined that /dev/loop4 is created by core snap.





        But the easiest way is to use losetup (see man losetup):



        $ losetup 
        NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
        /dev/loop4 0 0 1 1 /var/lib/snapd/snaps/core_4650.snap 0 512
        /dev/loop2 0 0 1 1 /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap 0 512
        /dev/loop0 0 0 1 1 /var/lib/snapd/snaps/core_4830.snap 0 512
        /dev/loop5 0 0 1 1 /var/lib/snapd/snaps/core_4917.snap 0 512
        /dev/loop3 0 0 1 1 /var/lib/snapd/snaps/software-boutique_31.snap 0 512


        Hope this helps to understand Snaps mount-points better.



        Bottom-line: by using Snaps for having up-to-date software, we end up paying for it with higher network traffic, more disk usage and slower boot time. If you do not want to use Snaps at all, then remove them with sudo apt-get purge snapd.






        share|improve this answer




























          8












          8








          8







          You can determine the list of all installed snaps with snap list, for relation between mount-point and snap name you can use systemctl status, mount and losetup.



          For example on my Ubuntu MATE 18.04 LTS I have the following snaps installed:



          $ snap list
          Name Version Rev Tracking Developer Notes
          core 16-2.33.1 4917 stable canonical core
          software-boutique 18.04.0-5b99b84 31 stable/… flexiondotorg classic
          ubuntu-mate-welcome 17.10.23-e4f4c4c 169 stable/… flexiondotorg classic


          They create loop-devices as follows:



          $ systemd-analyze blame | grep dev-loop
          4.303s dev-loop4.device
          4.267s dev-loop2.device
          4.193s dev-loop0.device
          4.146s dev-loop3.device
          111ms dev-loop5.device


          Mount points are as following:



          $ mount | grep snapd
          /var/lib/snapd/snaps/core_4830.snap on /snap/core/4830 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap on /snap/ubuntu-mate-welcome/169 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/software-boutique_31.snap on /snap/software-boutique/31 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/core_4650.snap on /snap/core/4650 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide)


          Let's look closer to dev-loop4.device:



          $ systemctl status dev-loop4.device
          ● dev-loop4.device - /dev/loop4
          Follow: unit currently follows state of sys-devices-virtual-block-loop4.device
          Loaded: loaded
          Active: active (plugged) since Tue 2018-07-17 13:05:41 MSK; 4min 44s ago
          Device: /sys/devices/virtual/block/loop4


          The folder /sys/devices/virtual/block/loop4 contains very useful file loop/backing_file, we can read its contents:



          $ cat /sys/devices/virtual/block/loop4/loop/backing_file 
          /var/lib/snapd/snaps/core_4650.snap


          So we just determined that /dev/loop4 is created by core snap.





          But the easiest way is to use losetup (see man losetup):



          $ losetup 
          NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
          /dev/loop4 0 0 1 1 /var/lib/snapd/snaps/core_4650.snap 0 512
          /dev/loop2 0 0 1 1 /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap 0 512
          /dev/loop0 0 0 1 1 /var/lib/snapd/snaps/core_4830.snap 0 512
          /dev/loop5 0 0 1 1 /var/lib/snapd/snaps/core_4917.snap 0 512
          /dev/loop3 0 0 1 1 /var/lib/snapd/snaps/software-boutique_31.snap 0 512


          Hope this helps to understand Snaps mount-points better.



          Bottom-line: by using Snaps for having up-to-date software, we end up paying for it with higher network traffic, more disk usage and slower boot time. If you do not want to use Snaps at all, then remove them with sudo apt-get purge snapd.






          share|improve this answer















          You can determine the list of all installed snaps with snap list, for relation between mount-point and snap name you can use systemctl status, mount and losetup.



          For example on my Ubuntu MATE 18.04 LTS I have the following snaps installed:



          $ snap list
          Name Version Rev Tracking Developer Notes
          core 16-2.33.1 4917 stable canonical core
          software-boutique 18.04.0-5b99b84 31 stable/… flexiondotorg classic
          ubuntu-mate-welcome 17.10.23-e4f4c4c 169 stable/… flexiondotorg classic


          They create loop-devices as follows:



          $ systemd-analyze blame | grep dev-loop
          4.303s dev-loop4.device
          4.267s dev-loop2.device
          4.193s dev-loop0.device
          4.146s dev-loop3.device
          111ms dev-loop5.device


          Mount points are as following:



          $ mount | grep snapd
          /var/lib/snapd/snaps/core_4830.snap on /snap/core/4830 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap on /snap/ubuntu-mate-welcome/169 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/software-boutique_31.snap on /snap/software-boutique/31 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/core_4650.snap on /snap/core/4650 type squashfs (ro,nodev,relatime,x-gdu.hide)
          /var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide)


          Let's look closer to dev-loop4.device:



          $ systemctl status dev-loop4.device
          ● dev-loop4.device - /dev/loop4
          Follow: unit currently follows state of sys-devices-virtual-block-loop4.device
          Loaded: loaded
          Active: active (plugged) since Tue 2018-07-17 13:05:41 MSK; 4min 44s ago
          Device: /sys/devices/virtual/block/loop4


          The folder /sys/devices/virtual/block/loop4 contains very useful file loop/backing_file, we can read its contents:



          $ cat /sys/devices/virtual/block/loop4/loop/backing_file 
          /var/lib/snapd/snaps/core_4650.snap


          So we just determined that /dev/loop4 is created by core snap.





          But the easiest way is to use losetup (see man losetup):



          $ losetup 
          NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
          /dev/loop4 0 0 1 1 /var/lib/snapd/snaps/core_4650.snap 0 512
          /dev/loop2 0 0 1 1 /var/lib/snapd/snaps/ubuntu-mate-welcome_169.snap 0 512
          /dev/loop0 0 0 1 1 /var/lib/snapd/snaps/core_4830.snap 0 512
          /dev/loop5 0 0 1 1 /var/lib/snapd/snaps/core_4917.snap 0 512
          /dev/loop3 0 0 1 1 /var/lib/snapd/snaps/software-boutique_31.snap 0 512


          Hope this helps to understand Snaps mount-points better.



          Bottom-line: by using Snaps for having up-to-date software, we end up paying for it with higher network traffic, more disk usage and slower boot time. If you do not want to use Snaps at all, then remove them with sudo apt-get purge snapd.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 21 '18 at 7:30

























          answered Jul 17 '18 at 10:18









          N0rbertN0rbert

          23.6k650112




          23.6k650112

























              0














              What are snaps? why do they take so much resource to run, how is that an advantage? I thought we wanted faster not slower boot times? I just have not seen much information on snaps, other than the name, I have not seen any descriptions or how to use them or even articles on snaps. Must be a hidden Ubuntu thing. Or I have been in Ubuntu 16.04 too long. In 18.04 I miss the Classic Menu Indicator that I still use in 16.04. It is easier that hunting through 3-4 screens to find an application.





              share








              New contributor




              ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                What are snaps? why do they take so much resource to run, how is that an advantage? I thought we wanted faster not slower boot times? I just have not seen much information on snaps, other than the name, I have not seen any descriptions or how to use them or even articles on snaps. Must be a hidden Ubuntu thing. Or I have been in Ubuntu 16.04 too long. In 18.04 I miss the Classic Menu Indicator that I still use in 16.04. It is easier that hunting through 3-4 screens to find an application.





                share








                New contributor




                ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  What are snaps? why do they take so much resource to run, how is that an advantage? I thought we wanted faster not slower boot times? I just have not seen much information on snaps, other than the name, I have not seen any descriptions or how to use them or even articles on snaps. Must be a hidden Ubuntu thing. Or I have been in Ubuntu 16.04 too long. In 18.04 I miss the Classic Menu Indicator that I still use in 16.04. It is easier that hunting through 3-4 screens to find an application.





                  share








                  New contributor




                  ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  What are snaps? why do they take so much resource to run, how is that an advantage? I thought we wanted faster not slower boot times? I just have not seen much information on snaps, other than the name, I have not seen any descriptions or how to use them or even articles on snaps. Must be a hidden Ubuntu thing. Or I have been in Ubuntu 16.04 too long. In 18.04 I miss the Classic Menu Indicator that I still use in 16.04. It is easier that hunting through 3-4 screens to find an application.






                  share








                  New contributor




                  ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share


                  share






                  New contributor




                  ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 8 mins ago









                  ChiefHChiefH

                  1




                  1




                  New contributor




                  ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  ChiefH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1056645%2fwhat-are-the-dev-loop-services-that-started-on-boot%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      List of shipwrecks in 1808...

                      Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

                      Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...