0

When I try to run sshfs, I get the error fuse: device not found, try 'modprobe fuse' first. I already ran sudo modprobe fuse, but it just returns immediately without any output and the error persists:

[root@localhost main]# modprobe fuse
[root@localhost main]# sshfs user:[email protected] mnt
fuse: device not found, try 'modprobe fuse' first

I can also verify that fuse is loaded:

[main@localhost ~]$ lsmod | grep fuse
fuse                    4242  -2

This is on a VPS with freshly installed CentOS. The OS is up-to-date, as far as I can tell:

[main@localhost ~]$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

Running virt-what yields the following:

[root@localhost ~]$ virt-what
openvz
lxc

Any ideas on how I can resolve this?

4
  • Also at unix.stackexchange.com/questions/459039/… Jul 28, 2018 at 14:56
  • 3
    Use count is -2? That's broken. Reboot the system. Jul 28, 2018 at 15:15
  • @MichaelHampton Wow, you're right... I didn't even notice that. Just rebooted the system but its still -2. Not only for fuse, but for every entry generated by lsmod. Btw I didn't install CentOS myself - I'm using a pre-configured image from my server provider. Jul 28, 2018 at 15:35
  • @MichaelHampton According to this answer here the -2 means that CONFIG_MODULE_UNLOAD is set. Could it be that sshfs is confused by the -2? What can I do about this? Jul 28, 2018 at 15:43

1 Answer 1

1

Eww, it's OpenVZ. That's why it doesn't work. You can't load modules (properly) on OpenVZ without the VPS provider doing it for you. These guys somehow managed to screw it up. Go find a nice KVM VPS.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .