Why are there multiple loop devices for the same snap?












5















I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



loop1    7:1    0  81.6M  1 loop /snap/core/4110
loop2 7:2 0 81.7M 1 loop /snap/core/4017
loop0 7:0 0 81.3M 1 loop /snap/core/3887


On checking the mount directory of snaps, this is what I get:



drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


and snap list shows this:



core  16-2.31.1  4110  canonical  core


Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.










share|improve this question





























    5















    I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



    loop1    7:1    0  81.6M  1 loop /snap/core/4110
    loop2 7:2 0 81.7M 1 loop /snap/core/4017
    loop0 7:0 0 81.3M 1 loop /snap/core/3887


    On checking the mount directory of snaps, this is what I get:



    drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
    drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
    drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
    lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


    and snap list shows this:



    core  16-2.31.1  4110  canonical  core


    Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.










    share|improve this question



























      5












      5








      5


      2






      I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



      loop1    7:1    0  81.6M  1 loop /snap/core/4110
      loop2 7:2 0 81.7M 1 loop /snap/core/4017
      loop0 7:0 0 81.3M 1 loop /snap/core/3887


      On checking the mount directory of snaps, this is what I get:



      drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
      drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
      drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
      lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


      and snap list shows this:



      core  16-2.31.1  4110  canonical  core


      Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.










      share|improve this question
















      I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



      loop1    7:1    0  81.6M  1 loop /snap/core/4110
      loop2 7:2 0 81.7M 1 loop /snap/core/4017
      loop0 7:0 0 81.3M 1 loop /snap/core/3887


      On checking the mount directory of snaps, this is what I get:



      drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
      drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
      drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
      lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


      and snap list shows this:



      core  16-2.31.1  4110  canonical  core


      Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.







      16.04 mount snap loop-device






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 4 '18 at 9:11









      muru

      1




      1










      asked Mar 4 '18 at 7:56









      ApurvApurv

      285




      285






















          1 Answer
          1






          active

          oldest

          votes


















          5














          In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



          You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



          They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






          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%2f1011728%2fwhy-are-there-multiple-loop-devices-for-the-same-snap%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









            5














            In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



            You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



            They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






            share|improve this answer




























              5














              In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



              You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



              They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






              share|improve this answer


























                5












                5








                5







                In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



                You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



                They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






                share|improve this answer













                In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



                You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



                They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 9 '18 at 21:05









                j1mcj1mc

                373512




                373512






























                    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%2f1011728%2fwhy-are-there-multiple-loop-devices-for-the-same-snap%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

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕