How can I get information if my HD format is case sensitive or case insensitive?
I want to make sure my Mac running Mountain Lion has a case sensitive file system.
How can I get information if my HD format is case sensitive or case insensitive?
I want to make sure my Mac running Mountain Lion has a case sensitive file system.
You can use terminal to read the File System Personality:
diskutil info /
Look for the fields named below:
File System Personality: Journaled HFS+
Type (Bundle): hfs
Name (User Visible): Mac OS Extended (Journaled)
If the file system is case sensitive, you will see Case-sensitive Journaled HFS in the first pasted line and Mac OS Extended (Case-sensitive, Journaled) in the third.
Disk Utility will also show you this from the info window for any File System it can see.
If you see
File System Personality: APFS
Type (Bundle): apfs
Name (User Visible): APFS
you are also case insensitive. There's a version of APFS Case-Sensitive
diskutil info as list did not show the expected information.
– Nick
Feb 07 '13 at 13:40
diskutil info / instead of diskutil list /?
– AlcubierreDrive
Feb 22 '14 at 11:00
diskutil info / and diskutil list / do not seem to be showing the File System Personality field. Perhaps due to changes with the fact it's now using APFS volumes?
– Adam Parkin
Jan 27 '21 at 19:45
Something like this should work:
touch abc1
touch abC1
ls ab*
mkdir mydir && mkdir myDir, which would explicitly error out on a case-insensitive FS.
– Ruslan
Aug 23 '22 at 10:01
run diskutil info <device> and your answer will be shown.
File System Personality will reflect one of the known personalities.
If you see: File System Personality: Journaled HFS+ that means it's case insensitive. To answer your question, you want to see File System Personality: Case-sensitive Journaled HFS+.
You can do a test in a shell:
Open the Terminal
Enter the following commands:
touch abc1
touch ABC2
ls a*
If the ls command displays both files, abc1 and ABC2, then your drive is case insensitive (i.e. case does not matter). If only abc1 is displayed, then it is case sensitive (i.e. case does matter).
Before you close Terminal, enter rm abc1 and rm ABC2 to clean up after the test.
ls a* command that will tell you weather the file system is case sensitive. If it is, only armour will be listed using my last example, since there is a lower case letter a in ls a*. However, if the OS is not case sensitive, the ls a* command will list both Allan and armour.
– Jean-François Beauchamp
Nov 07 '13 at 23:48
nocaseglob.
– nohillside
Apr 08 '15 at 17:31
abc1 and ABC2, but ls a* only shows the one file. I was just trying to help, however, I don't want to edit against your own wishes and you seem to be sensitive about it - so I will leave the answer as is and leave a downvote instead.
– wim
Apr 09 '15 at 02:15
What does work for me is:
echo -n This file system is case->tmp; echo -n in>>TMP; echo sensitive>>tmp; cat tmp
Fastest way is using Terminal.app:
diskutil info /Volumes/NAME-OF-VOLUME
or (if you want to only see the relevant line)
diskutil info /Volumes/NAME-OF-VOLUME | grep 'User Visible'
You can also use Disk Utility to check the partition format. If the format is case-sensitive, it will say so in the format name, otherwise nothing will be indicated.
You can see the menus on this link: http://www.kenstone.net/fcp_homepage/partitioning_tiger.html
Beware that it is not the "Mac" that is case-sensitive or not, it is each partition on your drives.