LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount error: cifs filesystem not supported by the system (https://www.linuxquestions.org/questions/linux-newbie-8/mount-error-cifs-filesystem-not-supported-by-the-system-4175593855/)

tonj 11-19-2016 09:02 AM

mount error: cifs filesystem not supported by the system
 
I'm running a vps which my vps-provider tells me is an OpenVZ container - but I don't know what that means. I have centos 7 64 bit installed on this vps and I'm trying to mount a share at a remote location using this command:
Code:

mount -t cifs -o username=<username>,password=<password> //<remote-ip>/share /media/smb-share
but I get:
Code:

mount: unknown filesystem type 'cifs'
so I installed cifs-utils and ran the command again but this time I get:
Code:

mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The '<remote-ip>/share' location is working fine because I've tested it on other machines so the problem is with the vps. Is there a way to get this to work on the vps I have?
ps: if it's any help...
Code:

# uname -a
Linux <hostname> 2.6.32-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux


smallpond 11-19-2016 09:21 AM

To find out what filesystems are supported by the running kernel, do:

Code:

cat /proc/filesystems
If cifs is not listed do:

Code:

sudo modprobe cifs

tonj 11-19-2016 09:36 AM

Quote:

# cat /proc/filesystems
nodev cgroup
nodev devpts
nodev mqueue
ext4
ext2
nodev nfs
nodev nfs4
nodev delayfs
nodev devtmpfs
nodev sysfs
nodev proc
nodev tmpfs
nodev binfmt_misc
nodev fusectl
nodev fuse
don't see cifs there...
Quote:

# sudo modprobe cifs
gives nothing, cursor just drops to the next line.

Emerson 11-19-2016 09:44 AM

The idea of using Samba over internet gives me creeps. It may be impossible, too. If you are trying to connect to a home machine your ISP may block the ports.

michaelk 11-19-2016 11:38 AM

I agree that exposing CIFS ports to the internet is a security concern and puts your remote network at risk. It is also true that some ISPs block CIFS ports.

However, it may may not be possible unless you have access to the host.

http://www.linux-faqs.info/virtualiz...envz-container

Note: many commands like modprobe do not output any status messages if completed successfully.

tonj 11-19-2016 12:09 PM

I have the samba ports at '//<remote-ip>/share' locked down to restricted ip's in iptables so the security of this is not what I'm asking about. Thanks for the link, I don't have access to the host. Is there any other way around this?

michaelk 11-19-2016 01:00 PM

I don't know but using fuse and sshfs (sftp) may be an option.

https://openvz.org/FUSE

Emerson 11-19-2016 01:02 PM

NFSv4 was designed to work over untrusted networks.

BW-userx 11-19-2016 02:31 PM

mount.cifs(8) - Linux man page
https://linux.die.net/man/8/mount.cifs

Linux mount CIFS Windows Share
https://www.cyberciti.biz/faq/linux-...windows-share/

mount.cifs — mount using the Common Internet File System (CIFS) SIMBA
https://www.samba.org/samba/docs/man...nt.cifs.8.html

How to mount NFS and CIFS file systems on Linux with the Seagate BlackArmor NAS
http://knowledge.seagate.com/article...S/FAQ/209791en

tonj 11-19-2016 03:50 PM

@BW-userx, and where in all those links does it explain how to mount a share from within an openvz container?

BW-userx 11-19-2016 03:56 PM

Quote:

Originally Posted by tonj (Post 5632453)
@BW-userx, and where in all those links does it explain how to mount a share from within an openvz container?

sorry I tried....

BW-userx 11-19-2016 03:58 PM

Quote:

Originally Posted by tonj (Post 5632453)
@BW-userx, and where in all those links does it explain how to mount a share from within an openvz container?

just google that too and wow lots of links on that subject...


All times are GMT -5. The time now is 04:06 AM.