Where are snaps saved

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I'm running Ubuntu 16.04. I have a few snaps installed. Looking in the system monitor it looks like there are several versions of each snap installed and that each version is consuming space on the hard drive.



enter image description here



Looking in my home folder it seems like there are just a few empty folders under the ~/snap folder.



enter image description here



But then it seems like the binaries for each snap are actually located under /snap.



So here are my three questions.



  1. What is the system monitor actually showing in terms of space used?

  2. What it ~/snap used for?

  3. What are the /dev/loopX files used for?

I know that there should be only one question in each post but in this case I think the questions are dependent on each other.










share|improve this question



















  • 1




    /dev/loop* 'files' aren't using disk space but are virtual devices (everything has to be a file in *nix, this accomplishes this using minimal memory & ~no disk space). /snap/* is the actual location of data stored on disk (real files here and not virtual). For loop devices maybe look at en.wikipedia.org/wiki/Loop_device
    – guiverc
    Apr 18 at 6:21







  • 2




    Possible duplicate of askubuntu.com/questions/834093/…or it may be useful anyway
    – guiverc
    Apr 18 at 6:24















up vote
2
down vote

favorite












I'm running Ubuntu 16.04. I have a few snaps installed. Looking in the system monitor it looks like there are several versions of each snap installed and that each version is consuming space on the hard drive.



enter image description here



Looking in my home folder it seems like there are just a few empty folders under the ~/snap folder.



enter image description here



But then it seems like the binaries for each snap are actually located under /snap.



So here are my three questions.



  1. What is the system monitor actually showing in terms of space used?

  2. What it ~/snap used for?

  3. What are the /dev/loopX files used for?

I know that there should be only one question in each post but in this case I think the questions are dependent on each other.










share|improve this question



















  • 1




    /dev/loop* 'files' aren't using disk space but are virtual devices (everything has to be a file in *nix, this accomplishes this using minimal memory & ~no disk space). /snap/* is the actual location of data stored on disk (real files here and not virtual). For loop devices maybe look at en.wikipedia.org/wiki/Loop_device
    – guiverc
    Apr 18 at 6:21







  • 2




    Possible duplicate of askubuntu.com/questions/834093/…or it may be useful anyway
    – guiverc
    Apr 18 at 6:24













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I'm running Ubuntu 16.04. I have a few snaps installed. Looking in the system monitor it looks like there are several versions of each snap installed and that each version is consuming space on the hard drive.



enter image description here



Looking in my home folder it seems like there are just a few empty folders under the ~/snap folder.



enter image description here



But then it seems like the binaries for each snap are actually located under /snap.



So here are my three questions.



  1. What is the system monitor actually showing in terms of space used?

  2. What it ~/snap used for?

  3. What are the /dev/loopX files used for?

I know that there should be only one question in each post but in this case I think the questions are dependent on each other.










share|improve this question















I'm running Ubuntu 16.04. I have a few snaps installed. Looking in the system monitor it looks like there are several versions of each snap installed and that each version is consuming space on the hard drive.



enter image description here



Looking in my home folder it seems like there are just a few empty folders under the ~/snap folder.



enter image description here



But then it seems like the binaries for each snap are actually located under /snap.



So here are my three questions.



  1. What is the system monitor actually showing in terms of space used?

  2. What it ~/snap used for?

  3. What are the /dev/loopX files used for?

I know that there should be only one question in each post but in this case I think the questions are dependent on each other.







snap ubuntu-core






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 30 at 14:32









guntbert

8,750123067




8,750123067










asked Apr 18 at 6:01









g3blv

15318




15318







  • 1




    /dev/loop* 'files' aren't using disk space but are virtual devices (everything has to be a file in *nix, this accomplishes this using minimal memory & ~no disk space). /snap/* is the actual location of data stored on disk (real files here and not virtual). For loop devices maybe look at en.wikipedia.org/wiki/Loop_device
    – guiverc
    Apr 18 at 6:21







  • 2




    Possible duplicate of askubuntu.com/questions/834093/…or it may be useful anyway
    – guiverc
    Apr 18 at 6:24













  • 1




    /dev/loop* 'files' aren't using disk space but are virtual devices (everything has to be a file in *nix, this accomplishes this using minimal memory & ~no disk space). /snap/* is the actual location of data stored on disk (real files here and not virtual). For loop devices maybe look at en.wikipedia.org/wiki/Loop_device
    – guiverc
    Apr 18 at 6:21







  • 2




    Possible duplicate of askubuntu.com/questions/834093/…or it may be useful anyway
    – guiverc
    Apr 18 at 6:24








1




1




/dev/loop* 'files' aren't using disk space but are virtual devices (everything has to be a file in *nix, this accomplishes this using minimal memory & ~no disk space). /snap/* is the actual location of data stored on disk (real files here and not virtual). For loop devices maybe look at en.wikipedia.org/wiki/Loop_device
– guiverc
Apr 18 at 6:21





/dev/loop* 'files' aren't using disk space but are virtual devices (everything has to be a file in *nix, this accomplishes this using minimal memory & ~no disk space). /snap/* is the actual location of data stored on disk (real files here and not virtual). For loop devices maybe look at en.wikipedia.org/wiki/Loop_device
– guiverc
Apr 18 at 6:21





2




2




Possible duplicate of askubuntu.com/questions/834093/…or it may be useful anyway
– guiverc
Apr 18 at 6:24





Possible duplicate of askubuntu.com/questions/834093/…or it may be useful anyway
– guiverc
Apr 18 at 6:24











1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










  1. What is the system monitor actually showing in terms of space used?

Snaps are squashfs images that are mounted into place, which is what you're seeing there. They are presented as disks which are 100% full, since each image is only as large as necessary to hold its data.



  1. What it ~/snap used for?

Snaps are (typically) confined, by default limited to a few areas when it comes to reading/writing. ~/snap holds snaps' user data (e.g. config files, etc.) since they can't by default write to $HOME.



  1. What are the /dev/loopX files used for?

Loop devices are what are used to make files accessible as a block device, such as when mounting the snap (squashfs) files. So when you install a snap, it's mounted, and a loop device is used. When a snap is updated, it keeps three revisions around (current and two old ones) in case you want to revert, so these old ones are using loop devices as well.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1026015%2fwhere-are-snaps-saved%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    1. What is the system monitor actually showing in terms of space used?

    Snaps are squashfs images that are mounted into place, which is what you're seeing there. They are presented as disks which are 100% full, since each image is only as large as necessary to hold its data.



    1. What it ~/snap used for?

    Snaps are (typically) confined, by default limited to a few areas when it comes to reading/writing. ~/snap holds snaps' user data (e.g. config files, etc.) since they can't by default write to $HOME.



    1. What are the /dev/loopX files used for?

    Loop devices are what are used to make files accessible as a block device, such as when mounting the snap (squashfs) files. So when you install a snap, it's mounted, and a loop device is used. When a snap is updated, it keeps three revisions around (current and two old ones) in case you want to revert, so these old ones are using loop devices as well.






    share|improve this answer


























      up vote
      3
      down vote



      accepted










      1. What is the system monitor actually showing in terms of space used?

      Snaps are squashfs images that are mounted into place, which is what you're seeing there. They are presented as disks which are 100% full, since each image is only as large as necessary to hold its data.



      1. What it ~/snap used for?

      Snaps are (typically) confined, by default limited to a few areas when it comes to reading/writing. ~/snap holds snaps' user data (e.g. config files, etc.) since they can't by default write to $HOME.



      1. What are the /dev/loopX files used for?

      Loop devices are what are used to make files accessible as a block device, such as when mounting the snap (squashfs) files. So when you install a snap, it's mounted, and a loop device is used. When a snap is updated, it keeps three revisions around (current and two old ones) in case you want to revert, so these old ones are using loop devices as well.






      share|improve this answer
























        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        1. What is the system monitor actually showing in terms of space used?

        Snaps are squashfs images that are mounted into place, which is what you're seeing there. They are presented as disks which are 100% full, since each image is only as large as necessary to hold its data.



        1. What it ~/snap used for?

        Snaps are (typically) confined, by default limited to a few areas when it comes to reading/writing. ~/snap holds snaps' user data (e.g. config files, etc.) since they can't by default write to $HOME.



        1. What are the /dev/loopX files used for?

        Loop devices are what are used to make files accessible as a block device, such as when mounting the snap (squashfs) files. So when you install a snap, it's mounted, and a loop device is used. When a snap is updated, it keeps three revisions around (current and two old ones) in case you want to revert, so these old ones are using loop devices as well.






        share|improve this answer














        1. What is the system monitor actually showing in terms of space used?

        Snaps are squashfs images that are mounted into place, which is what you're seeing there. They are presented as disks which are 100% full, since each image is only as large as necessary to hold its data.



        1. What it ~/snap used for?

        Snaps are (typically) confined, by default limited to a few areas when it comes to reading/writing. ~/snap holds snaps' user data (e.g. config files, etc.) since they can't by default write to $HOME.



        1. What are the /dev/loopX files used for?

        Loop devices are what are used to make files accessible as a block device, such as when mounting the snap (squashfs) files. So when you install a snap, it's mounted, and a loop device is used. When a snap is updated, it keeps three revisions around (current and two old ones) in case you want to revert, so these old ones are using loop devices as well.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 20 at 22:28

























        answered Apr 18 at 14:22









        Kyle

        3,8981219




        3,8981219



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026015%2fwhere-are-snaps-saved%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491