centos 7如何访问MacoS文件系统? [英] How centos 7 access the MacoS file system?

查看:200
本文介绍了centos 7如何访问MacoS文件系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个硬盘,一个安装了centos 7操作系统,另一个是Mac OS 10.10.3。

其他linux系统如Fedora或ubuntu可以读取文件系统,但是centos 7不能,我如何使用centos 7来访问Mac OS文件系统?



比你!

解决方案

请参阅我对该问题的评论。



您可以通过编辑文件/ etc /将分区永久挂载到任何基于Linux的系统中fstab文件。假设您要永久地安装某个分区,并为所有用户提供对它的读写访问权限。假设分区是/ dev / sda2(例如,/ dev / sda1是Cent OS分区,文件系统是HFS +,并且您希望在根级别通过名称/挂载它MacOSX的分区。然后,您添加到此文件的行可以是:

#< file system> <挂载点> <类型> <选项> <转储> <通过> 
#...

/ dev / sda2 / MacOSX-partition hfsplus用户,fmask = 0111,dmask = 0000 0 0

您需要检查分区和文件系统类型,许多实用程序可以执行。 Mac OS X现代文件系统应该是HFS +。请参阅:

http://en.wikipedia.org/wiki/HFS_Plus#Linux [ ^ ]。



另请参阅此文档: https://help.ubuntu.com/community/Fstab [ ^ ]。



我引用这个Ubuntu文档只是因为我比其他Linux发行版更多地使用Ununtu,但这个功能非常普遍;你可以在很多地方找到它。 Cent OS不太可能无法应对,除非它因为无法支持Mac OS X文件系统而过时。



- SA

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!

解决方案

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


这篇关于centos 7如何访问MacoS文件系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆