Ask Your Question
0

mount case-sensitive drive

asked 2013-11-19 19:26:44 -0600

AsiGoldtooth gravatar image

updated 2013-11-25 12:23:02 -0600

Hi,

I manage to mount a remote network drive, but the mount is NOT case-sensitive. I'm somewhat new to Linux, but this is what I figured out so far

I added a new mount line to /etc/fstab

//10.0.1.10/folder /blue cifs username=fedora,password=fedora,file_mode=0777,dir_mode=0777 0 0

Important to say, the remote drive is running on fedora too. And it is case-sensitive when I ssh into that machine. Also my local machine is case-sensitive too for any other folder/files BUT the mounted drive:

the mount isn't case-sensitive:
ls -l /blue/testfile.txt
ls -l /blue/TESTFILE.TXT

local drive is sensitive:
ls -l /tmp/testfile.txt
ls -l /tmp/TESTFILE.TXT # fail, file not found, which is what I want

any idea what/how should I do this?

UPDATE - I mounted more drives, from different machines and they all aren't case-sensitive. So I believe the issue is in my local machine. but still have no idea how to fix it.

edit retag flag offensive close merge delete

Comments

What behavior are you seeing that makes you think it is case insensitive? The default for CIFS is supposed to be case sensitivity.

Eddie gravatar imageEddie ( 2013-11-19 19:36:18 -0600 )edit

Here's an example that shows the issue: cd /blue ( the mounted drive ) touch testfile.txt file testfile.txt > prints file info file TESTFILE.TXT > also prints file info ( same with ls -l TESTFILE.TXT )

but I do the same test on a local drive, /tmp/ for example, it is case-sensitive.

AsiGoldtooth gravatar imageAsiGoldtooth ( 2013-11-19 20:14:00 -0600 )edit

Is there a reason you cannot share the filesystem using something like nfs?

Eddie gravatar imageEddie ( 2013-11-21 01:52:00 -0600 )edit

Do you only have this problem on the one system with mounted drives, and not with local drives? It sounds like you need to fiddle with CIFS configuration parameters, or maybe you have something entered in fstab in such a way that it's ignoring or not processing some of your parameters? In any case, to export from Linux to Linux, I recommend using nfs instead of CIFS.

Eddie gravatar imageEddie ( 2013-11-25 23:15:20 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2013-12-03 14:23:25 -0600

AsiGoldtooth gravatar image

The problem was the ciff mount, I switched to NGS and it's case-sensitive now.

edit flag offensive delete link more

Comments

I guess you mean NFS.

hedayat gravatar imagehedayat ( 2014-07-29 01:58:59 -0600 )edit
3

answered 2013-12-03 14:44:59 -0600

VincePrince gravatar image

updated 2013-12-03 14:46:47 -0600

The case sensitivity of CIFS/SMB shares is configured in the Samba config file, /etc/samba/smb.conf.

Amend the smb.conf on your server (the host sharing the files) to include the following directive in the [global] section;

case sensitive = yes

Then as root restart Samba with;

service samba restart

Remount the cifs share and test.

edit flag offensive delete link more
0

answered 2014-07-28 19:27:02 -0600

syzygy gravatar image

It's likely that you are seeing a bug. The Samba server seems to mistakenly assume that clients with certain capabilities must be Windows Vista (which wants case insensitive). Newer versions of the Linux kernel CIFS now have those additional capabilities, thereby confusing the server into treating the client as if it were Windows Vista. More detailed report with code patches: http://www.spinics.net/lists/linux-cifs/msg09530.html

Meanwhile, on the client side, you can easily avoid the issue by including, among your mount options in /etc/fstab, the option "sec=ntlmv2".

edit flag offensive delete link more
0

answered 2013-11-19 20:33:41 -0600

sergiomb gravatar image

The SMB/CIFS protocol is a standard file sharing protocol widely deployed on Microsoft Windows machines. The best tool to mount Windows share is smb4k .

yum install smb4k
edit flag offensive delete link more

Comments

In case you didn't notice, the drive being mounted is on another machine running Fedora, so samba has nothing to do with it.

sideburns gravatar imagesideburns ( 2013-11-19 21:12:06 -0600 )edit

what word cifs is doing in middle ? , what kind of fs (file system) you export your ? if you are using cifs than is samba, google:cifs , maybe you want use nfs server and export with nfs fs

sergiomb gravatar imagesergiomb ( 2013-11-19 23:04:51 -0600 )edit

I agree with @sergiomb. CIFS is an implementation of the Windows file sharing protocol. Look it up. Samba can certainly be used to export a filesystem from one Linux system to another.

Eddie gravatar imageEddie ( 2013-11-21 01:50:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-11-19 19:26:44 -0600

Seen: 1,759 times

Last updated: Jul 28 '14