Cannot perform operation: mount --rbind /mnt /tmp/snap.rootfs_qe7PLK//mnt: No such device

Hello dear snapcraft people:) I having following issue with my snaps:

vld@pop-os:~$ sudo snap install hello-world
[sudo] password for vld: 
hello-world 6.4 from Canonical✓ installed
vld@pop-os:~$ hello-world
cannot perform operation: mount --rbind /mnt /tmp/snap.rootfs_KWU8Dh//mnt: No such device
vld@pop-os:~$ snap list | grep core
core                16-2.61.2        16928  latest/stable  canonical**   core
core20              20240227         2264   latest/stable  canonical**   base
core22              20240111         1122   latest/stable  canonical**   base

ENcountered this when my hugo stopped working. Went to the forum and was advised to test the above, see that it is a snap problem and when it was, was advised to come here:)) Thanks for help anybody:) Vladimir The Curious Mechanobiologist

I am running this system:

OS: Pop!_OS 22.04 LTS x86_64
Host: TECRA Z50-A PT544E-042039CZ
Kernel: 6.8.0-76060800daily20240311-generic
Uptime: 8 mins
Packages: 2359 (dpkg), 7 (flatpak), 13 (snap)
Shell: bash 5.1.16
Resolution: 1920x1080, 1920x1080
DE: GNOME 42.5
WM: Mutter
WM Theme: Pop
Theme: Pop-dark [GTK2/3]
Icons: Pop [GTK2/3]
Terminal: gnome-terminal
CPU: Intel i5-4210U (4) @ 2.700GHz
GPU: Intel Haswell-ULT
Memory: 1700MiB / 7868MiB
1 Like

Where is your home directory mounted ? It looks like its trying to access /mnt

I have a similar issue with a NFS share

Mike

1 Like

Thanks @mc33 , my home is mounted in the default location from the beginning of the installation of !pop_os on a hard drive on an older laptop. The strange thing (for me) is, that it happened “overnight” without me changing the location of home or any settings. The hugo static site generator, which I am trying to learn to build a website, just stopped working.

Do you have any idea how to fix it? Should I just reinstall snap?

Best Regards Vladimir

1 Like

I am not an expert on Snap, trying to fix my own issues with a NFS share and snap. Nothing to stop you trying as its broken.

Have you mounted a usb stick or hard drive in /mnt ? I wonder why its trying to look at mount point?

I dont know if you can turn on logs on snap and check /var/logs/*** ?

M

Hi @VladimirV.

Can you show the output of this command ?

mount

You can try this, follow these steps :


# Check snapd service
sudo systemctl status snapd

# If the service is down, execute this 
sudo systemctl start snapd

# Refresh snap
sudo snap refresh

# Remove `hello-word`, then install it
sudo snap remove hello-world
sudo snap install hello-world

# Again execute `hello-word`
hello-world 

# If the error persists, reboot your system
reboot 

Thank you will try when I am at the computer:)

1 Like

1 sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

2 proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)

3 udev on /dev type devtmpfs (rw,nosuid,relatime,size=3985112k,nr_inodes=996278,mode=755,inode64)

4 devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)

5 tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=805716k,mode=755,inode64)

6 /dev/sda1 on / type ext4 (rw,noatime,errors=remount-ro)

7 securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)

8 tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)

9 tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)

10 cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)

11 pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)

12 bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)

13 systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=378)

14 hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)

15 mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)

16 debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)

17 tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)

18 fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)

19 configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

20 ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)

21 systemd-1 on /mnt type autofs (rw,relatime,fd=54,pgrp=1,timeout=60,minproto=5,maxproto=5,direct,pipe_ino=465)

22 /var/lib/snapd/snaps/bare_5.snap on /snap/bare/5 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

23 /var/lib/snapd/snaps/brave_387.snap on /snap/brave/387 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

24 /var/lib/snapd/snaps/core_16574.snap on /snap/core/16574 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

25 /var/lib/snapd/snaps/core_16928.snap on /snap/core/16928 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

26 /var/lib/snapd/snaps/core20_2182.snap on /snap/core20/2182 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

27 /var/lib/snapd/snaps/core20_2264.snap on /snap/core20/2264 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

28 /var/lib/snapd/snaps/core22_1033.snap on /snap/core22/1033 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

29 /var/lib/snapd/snaps/core22_1122.snap on /snap/core22/1122 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

30 /var/lib/snapd/snaps/docker_2904.snap on /snap/docker/2904 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

31 /var/lib/snapd/snaps/docker_2915.snap on /snap/docker/2915 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

32 /var/lib/snapd/snaps/gnome-3-38-2004_143.snap on /snap/gnome-3-38-2004/143 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

33 /var/lib/snapd/snaps/gnome-42-2204_141.snap on /snap/gnome-42-2204/141 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

34 /var/lib/snapd/snaps/gtk-common-themes_1535.snap on /snap/gtk-common-themes/1535 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

35 /var/lib/snapd/snaps/gum_58.snap on /snap/gum/58 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

36 /var/lib/snapd/snaps/gum_68.snap on /snap/gum/68 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

37 /var/lib/snapd/snaps/hugo_19340.snap on /snap/hugo/19340 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

38 /var/lib/snapd/snaps/whatsapp-for-linux_58.snap on /snap/whatsapp-for-linux/58 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

39 binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)

40 sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)

41 tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=805716k,mode=755,inode64)

42 /dev/sda1 on /tmp/snap.rootfs_APlQfI type ext4 (rw,noatime,errors=remount-ro)

43 tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=805712k,nr_inodes=201428,mode=700,uid=1000,gid=1000,inode64)

44 gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

45 portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

46 /var/lib/snapd/snaps/hello-world_29.snap on /snap/hello-world/29 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

47 /dev/sda1 on /tmp/snap.rootfs_KWU8Dh type ext4 (rw,noatime,errors=remount-ro)

48 /dev/sda1 on /tmp/snap.rootfs_swIEV0 type ext4 (rw,noatime,errors=remount-ro)

Well ! @VladimirV, try the scenario that I suggested to you (above in the thread) .

Hi thanks for the support,

tried the scenario, the problem pesrsits.

I also tried removing, and purging snap and snapd through apt, the same…


vld@pop-os:~$ mount

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)

udev on /dev type devtmpfs (rw,nosuid,relatime,size=3985112k,nr_inodes=996278,mode=755,inode64)

devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)

tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=805716k,mode=755,inode64)

/dev/sda1 on / type ext4 (rw,noatime,errors=remount-ro)

securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)

tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)

tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)

cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)

pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)

bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)

systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=3569)

hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)

mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)

debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)

tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)

fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)

configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)

systemd-1 on /mnt type autofs (rw,relatime,fd=55,pgrp=1,timeout=60,minproto=5,maxproto=5,direct,pipe_ino=6799)

/var/lib/snapd/snaps/core_16928.snap on /snap/core/16928 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

/var/lib/snapd/snaps/hello-world_29.snap on /snap/hello-world/29 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)

binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)

sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)

tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=805712k,nr_inodes=201428,mode=700,uid=1000,gid=1000,inode64)

gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=805716k,mode=755,inode64)

/dev/sda1 on /tmp/snap.rootfs_f10zm2 type ext4 (rw,noatime,errors=remount-ro)

@VladimirV, I do not see errors in the log .

Hello thanks, yes there are no errors but when I try to run hello-world it hangs for a while and then closes with "sanity check timeout " (or something similar, sorry forgot to save the output) which is the same as before.

Okay, please show again the output when you execute hello-world .