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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







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

231213




231213













  • 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










1 Answer
1






active

oldest

votes


















9














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


























    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

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    9














    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






























      9














      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




























        9












        9








        9







        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

        24.9k852117




        24.9k852117






























            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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?