Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I have two hard drives, one installed the centos 7 operating system, the another one is Mac os 10.10.3.
Other linux system like Fedora or ubuntu can read access the file system, but the centos 7 can not, How can I use the centos 7 to acess Mac OS file system?

Than you!
Posted
Comments
Sergey Alexandrovich Kryukov 2-Jun-15 21:59pm    
There should not be difference for different *NIX systems, especially Linux, unless one of them is impossibly outdated. Probably you just don't know how to set it up properly.
—SA

1 solution

Please see my comment to the question.

You can permanently mount the partition in any Linux-based system by editing the file "/etc/fstab". Let's assume that you want to mount some partition permanently and give read-write access to it to all users. Let's assume the partition is "/dev/sda2" (say, "/dev/sda1" is a Cent OS partition, for example), the filesystem is HFS+, and you want to mount it at the root level by the name "/MacOSX-partition". Then the line you add to this file could be:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# ...

/dev/sda2  /MacOSX-partition   hfsplus    user,fmask=0111,dmask=0000 0 0
You will need to check up the partition and the file system type, which many utilities can do. Mac OS X modern file system is supposed to be HFS+. Please see:
http://en.wikipedia.org/wiki/HFS_Plus#Linux[^].

See also this documentation: https://help.ubuntu.com/community/Fstab[^].

I referenced this Ubuntu documentation just because I use Ununtu more than other Linux distro, but this piece of functionality is pretty much universal; you can find it in many places. It is very unlikely that Cent OS won't cope with that, unless it is so badly obsolete to fail to support Mac OS X file systems.

—SA
 
Share this answer
 
v2
Comments
Albert Holguin 8-Jun-15 22:14pm    
CentOS 7 is essentially the "free-ware" version of RedHat Enterprise. It's VERY capable but since it's more of a server type of OS, it probably just doesn't do too many things automatically like Ubuntu does. It also does tend to lag on functionality due to the stability requirements of enterprise users.
Sergey Alexandrovich Kryukov 9-Jun-15 0:13am    
That was my thought, too. It's very unlikely that this really capable and well-known Linux distro would be incapable of doing such a basic thing any kind Linux would support. It's way more likely that it's just our inquirer might not know how to do this basic things. That's why I answered this way. By the way, even with Ubuntu, permanent mount of Mac OS X hard drive partition would require the "manual" step I just described. I routinely to it for NTFS partition which I nearly routinely install in the system for having double boot or some other purposes.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900