Mount case-sensitive network drives when they're *nix on the remote?

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
qed
Posts: 17
Joined: Tue Feb 02, 2021 4:47 am

Mount case-sensitive network drives when they're *nix on the remote?

Post by qed »

Hi there,

I've used dietpi-drive_manager to mount some *nix system drives as network drives, but they seem to be mounted case-insensitive? Thats great for WIndows shares/network mounts, but for *nix systems the FS's are case sensative.

How can I mount a network share that is on a remote *nix system as a case sensitive network drive on the pi?

Does dietpi-drive_manager detect this or is it part of the external system mount share (eg samba, etc.)?
Last edited by qed on Mon Aug 23, 2021 10:12 am, edited 2 times in total.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount case-sensative network drives when they're *nix on the remote?

Post by Joulinar »

Hi,

can you be a little bit more specific. What kind of share do you like to mount? Is this a SAMBA or NFS share?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
qed
Posts: 17
Joined: Tue Feb 02, 2021 4:47 am

Re: Mount case-sensative network drives when they're *nix on the remote?

Post by qed »

Sorry, these were mounted as samba shares on other *nix systems, some from dietpi's

I've believe found the setting to make them case sensitive samba shares on *nix here

I'm guessing dietpi assumes Windows access for samba shares when samba is installed - perhaps this can be reconsidered even though by default Windows is usually case-insensitive, setting the case sensitive = auto setting allows for both:

"The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS and smbclient 3.0.5 and above currently) to tell the Samba server on a per-packet basis that they wish to access the file system in a case-sensitive manner (to support UNIX case sensitive semantics). No Windows or DOS system supports case-sensitive filename so setting this option to auto is that same as setting it to no for them. Default auto."
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount case-sensitive network drives when they're *nix on the remote?

Post by Joulinar »

But this seems more like a server setting. If you use drive manager, your Pi is acting as client.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
qed
Posts: 17
Joined: Tue Feb 02, 2021 4:47 am

Re: Mount case-sensitive network drives when they're *nix on the remote?

Post by qed »

That is correct, I'm using both. However it looks like when installing Samba Server (with deitpi-software) the defaults in /etc/samba/smb.conf get setup to share the local devices on the network. That is where the settings appear to be for case sensitivity.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount case-sensitive network drives when they're *nix on the remote?

Post by Joulinar »

honestly I'm not 100% where your issue is.

if you setup a samba server, a default smb.conf will be created to share a default dietpi folder. if you like you can adjust smb.conf on your needs to share other folder or change settings.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
qed
Posts: 17
Joined: Tue Feb 02, 2021 4:47 am

Re: Mount case-sensitive network drives when they're *nix on the remote?

Post by qed »

by default the smb.conf should have 'case sensitive = auto'. This becomes an issue when admins have a large number of RPI's and editing the defaul smb.conf defaults is a waste of time. There are apps that require case sensitivity with shares (urbackup is one)
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount case-sensitive network drives when they're *nix on the remote?

Post by Joulinar »

If I understood SMB documentation correctly, default setting is auto https://www.samba.org/samba/docs/curren ... ESENSITIVE

Code: Select all

Default: case sensitive = auto
Why should it be added to a config file if it is default anyway?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply