Create folder with case-insensitive file name on Linux

Install ciopfs

  1. Get source code from https://github.com/martanne/ciopfs.

  2. Install dependencies.
    Fedora:

    $ sudo dnf install make gcc fuse-devel glib2-devel libattr-devel
    

    Debian:

    $ sudo apt install make gcc libfuse-dev libglib2.0-dev libattr1-dev
    
  3. Build and install.

    $ make && make install
    

Create folder that files inside it are case-insensitive

  1. Create two folders: one for contain real data (case-sensitive), one is mount point (case-insensitive).

    $ mkdir .data-real data
    
  2. Mount .data-real to data with ciopfs.

    $ sudo ciopfs .data-real data
    

Now just use folder data as a case-insensitive folder.

Auto-mount on boot

Add mount entry to /etc/fstab.

/path/to/.data-real	/path/to/data	ciopfs	allow_other,default_permissions,use_ino,attr_timeout=0	0	0

References

https://www.brain-dump.org/projects/ciopfs/

linux 
comments powered by Disqus