Skip to content

Instantly share code, notes, and snippets.

@jesperes
Last active March 13, 2018 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesperes/1c9f516dbf67dd64950c5c672e90ec85 to your computer and use it in GitHub Desktop.
Save jesperes/1c9f516dbf67dd64950c5c672e90ec85 to your computer and use it in GitHub Desktop.
# Commands to create a case-insensitive NTFS-filesystem on linux
# Disclaimer: run these commands at you own risk!
# Create the image file. Adjust size to your liking.
dd if=/dev/zero of=fs.img bs=1G count=40
# Create the NTFS file system. -F flag is necessary to make mkfs.ntfs accept
# that fs.img is not a block device.
mkfs.ntfs -F fs.img
# Create the mount point
mkdir -p /media/fs-nocase
# Mount the filesystem. Note that "lowntfs-3g" is necessary in order to be able
# use the "ignore_case" option. See "man mount.ntfs" for details.
mount -t lowntfs-3g fs.img /media/fs-nocase -o ignore_case
# Put this in /etc/fstab to have it mounted on startup
# /path/to/fs.img /media/fs-nocase lowntfs-3g ignore_case 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment