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.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
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.
Something like this should work:
touch abc1 touch abC1 ls ab*
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:
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.
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.