# Cannot remove snapd .mount files

**URL:** <https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074>\
**Category:** Newbie\
**Created:** [November 18, 2021, 10:49am UTC](https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074 "2021-11-18T10:49:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Celty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/celty/32/34777_2.png) [@Celty](https://forum.endeavouros.com/u/Celty)\
**Post date:** [November 18, 2021, 10:49am UTC](https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074/1 "2021-11-18T10:49:45Z")

</div>

After removing snapd it seems there are still some files left, resulting in multiple errors during the boot process (failed to mount unit for […]). A search led me to `/etc/systemd/system` where these mount files exist, however, I cannot seem to delete them. `ls /etc/systemd/system/` produces:

```auto
'var-lib-snapd-snap-apple\x2dmusic\x2delectron-2.mount'
 var-lib-snapd-snap-bare-5.mount
 var-lib-snapd-snap-core18-2246.mount
'var-lib-snapd-snap-gnome\x2d3\x2d28\x2d1804-161.mount'
'var-lib-snapd-snap-gtk\x2dcommon\x2dthemes-1519.mount'
 var-lib-snapd-snap-snapd-13640.mount

```

`sudo rm -r /etc/systemd/system/var-lib-snapd-snap-apple\x2dmusic\x2delectron-2.mount` results in:

```auto
rm: cannot remove '/etc/systemd/system/var-lib-snapd-snap-apple-music-electron-2.mount': No such file or directory

```

The files are visible in Thunar when not run as root, whilst with root access I cannot see them. Deleting them with Thunar is therefore seemingly impossible as well, so how can I remove these files?

Last but not least, unrelated to the topic, but I do not believe it warrants its own post so I’ll throw it in here: is it possible to automatically resize the terminal window when running something like ncmpcpp, htop or nvim? As DE/WM is perhaps relevant here, I’m on Sway.

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [November 18, 2021, 5:40pm UTC](https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074/2 "2021-11-18T17:40:02Z")

</div>

> [@Celty](#):
>
> `var-lib-snapd-snap-apple\x2dmusic\x2delectron-2.mount`

Cd into the directory and try it in quotes “var-lib-snapd-snap-apple\x2dmusic\x2delectron-2.mount”

---

<div class="post-metadata">

**Author:** ![Celty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/celty/32/34777_2.png) [@Celty](https://forum.endeavouros.com/u/Celty)\
**Post date:** [November 18, 2021, 10:05pm UTC](https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074/3 "2021-11-18T22:05:26Z")

</div>

> [@xircon](#):
>
> Cd into the directory and try it in quotes “var-lib-snapd-snap-apple\x2dmusic\x2delectron-2.mount”

The files do not exist, regardless of where I execute the command from, or whether their path is in quotation marks or not.

---

<div class="post-metadata">

**Author:** ![daab](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/d/f19dbf/32.png) [@daab](https://forum.endeavouros.com/u/daab)\
**Post date:** [November 19, 2021, 5:56pm UTC](https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074/4 "2021-11-19T17:56:23Z")

</div>

What does `ls -l /etc/systemd/system/` show?

---

<div class="post-metadata">

**Author:** ![Celty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/celty/32/34777_2.png) [@Celty](https://forum.endeavouros.com/u/Celty)\
**Post date:** [November 20, 2021, 5:20pm UTC](https://forum.endeavouros.com/t/cannot-remove-snapd-mount-files/20074/5 "2021-11-20T17:20:36Z")

</div>

> [@daab](#):
>
> What does `ls -l /etc/systemd/system/` show?

Wiped the entire drive by now, so I couldn’t tell you. Thanks for the thought though.
