Is there a semi automated way to cleanup /dev/loop mounts?











up vote
1
down vote

favorite












My system seems to generate more and more /dev/loop mounts with certain updates.



So far it looks like:



/dev/loop0      128M  128M     0 100% /snap/yakyak/28
/dev/loop1 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop2 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop3 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop4 15M 15M 0 100% /snap/gnome-logs/43
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop7 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop6 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop8 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop9 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop11 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop10 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop12 88M 88M 0 100% /snap/core/5742
/dev/loop13 102M 102M 0 100% /snap/ubuntu-social-kit/3
/dev/loop14 88M 88M 0 100% /snap/core/5662
/dev/loop16 141M 141M 0 100% /snap/yakyak/35
/dev/loop17 128M 128M 0 100% /snap/yakyak/25
/dev/loop18 141M 141M 0 100% /snap/gnome-3-26-1604/74


Is there a tool that can tell which ones are no longer in use and free them up?

Not that this is causing a problem, i just prefer less clutter with mount points.










share|improve this question









New contributor




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




















  • Those are Snap packages - some came with Gnome, others you installed. One easy way to clean up duplicates is to reboot.
    – user535733
    Nov 20 at 18:04












  • Try this script
    – Alvin Liang
    Nov 21 at 3:48

















up vote
1
down vote

favorite












My system seems to generate more and more /dev/loop mounts with certain updates.



So far it looks like:



/dev/loop0      128M  128M     0 100% /snap/yakyak/28
/dev/loop1 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop2 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop3 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop4 15M 15M 0 100% /snap/gnome-logs/43
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop7 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop6 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop8 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop9 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop11 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop10 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop12 88M 88M 0 100% /snap/core/5742
/dev/loop13 102M 102M 0 100% /snap/ubuntu-social-kit/3
/dev/loop14 88M 88M 0 100% /snap/core/5662
/dev/loop16 141M 141M 0 100% /snap/yakyak/35
/dev/loop17 128M 128M 0 100% /snap/yakyak/25
/dev/loop18 141M 141M 0 100% /snap/gnome-3-26-1604/74


Is there a tool that can tell which ones are no longer in use and free them up?

Not that this is causing a problem, i just prefer less clutter with mount points.










share|improve this question









New contributor




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




















  • Those are Snap packages - some came with Gnome, others you installed. One easy way to clean up duplicates is to reboot.
    – user535733
    Nov 20 at 18:04












  • Try this script
    – Alvin Liang
    Nov 21 at 3:48















up vote
1
down vote

favorite









up vote
1
down vote

favorite











My system seems to generate more and more /dev/loop mounts with certain updates.



So far it looks like:



/dev/loop0      128M  128M     0 100% /snap/yakyak/28
/dev/loop1 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop2 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop3 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop4 15M 15M 0 100% /snap/gnome-logs/43
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop7 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop6 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop8 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop9 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop11 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop10 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop12 88M 88M 0 100% /snap/core/5742
/dev/loop13 102M 102M 0 100% /snap/ubuntu-social-kit/3
/dev/loop14 88M 88M 0 100% /snap/core/5662
/dev/loop16 141M 141M 0 100% /snap/yakyak/35
/dev/loop17 128M 128M 0 100% /snap/yakyak/25
/dev/loop18 141M 141M 0 100% /snap/gnome-3-26-1604/74


Is there a tool that can tell which ones are no longer in use and free them up?

Not that this is causing a problem, i just prefer less clutter with mount points.










share|improve this question









New contributor




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











My system seems to generate more and more /dev/loop mounts with certain updates.



So far it looks like:



/dev/loop0      128M  128M     0 100% /snap/yakyak/28
/dev/loop1 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop2 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop3 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop4 15M 15M 0 100% /snap/gnome-logs/43
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop7 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop6 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop8 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop9 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop11 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop10 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop12 88M 88M 0 100% /snap/core/5742
/dev/loop13 102M 102M 0 100% /snap/ubuntu-social-kit/3
/dev/loop14 88M 88M 0 100% /snap/core/5662
/dev/loop16 141M 141M 0 100% /snap/yakyak/35
/dev/loop17 128M 128M 0 100% /snap/yakyak/25
/dev/loop18 141M 141M 0 100% /snap/gnome-3-26-1604/74


Is there a tool that can tell which ones are no longer in use and free them up?

Not that this is causing a problem, i just prefer less clutter with mount points.







18.04 mount






share|improve this question









New contributor




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











share|improve this question









New contributor




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









share|improve this question




share|improve this question








edited Nov 21 at 9:10









Zanna

49.1k13123234




49.1k13123234






New contributor




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









asked Nov 20 at 16:54









Tdiguy

61




61




New contributor




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





New contributor





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






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












  • Those are Snap packages - some came with Gnome, others you installed. One easy way to clean up duplicates is to reboot.
    – user535733
    Nov 20 at 18:04












  • Try this script
    – Alvin Liang
    Nov 21 at 3:48




















  • Those are Snap packages - some came with Gnome, others you installed. One easy way to clean up duplicates is to reboot.
    – user535733
    Nov 20 at 18:04












  • Try this script
    – Alvin Liang
    Nov 21 at 3:48


















Those are Snap packages - some came with Gnome, others you installed. One easy way to clean up duplicates is to reboot.
– user535733
Nov 20 at 18:04






Those are Snap packages - some came with Gnome, others you installed. One easy way to clean up duplicates is to reboot.
– user535733
Nov 20 at 18:04














Try this script
– Alvin Liang
Nov 21 at 3:48






Try this script
– Alvin Liang
Nov 21 at 3:48

















active

oldest

votes











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: 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
});


}
});






Tdiguy is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094573%2fis-there-a-semi-automated-way-to-cleanup-dev-loop-mounts%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Tdiguy is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Tdiguy is a new contributor. Be nice, and check out our Code of Conduct.













Tdiguy is a new contributor. Be nice, and check out our Code of Conduct.












Tdiguy is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094573%2fis-there-a-semi-automated-way-to-cleanup-dev-loop-mounts%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei