macos 从 Ubuntu 12.04 访问 OSX 文件和文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10387352/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Accessing OSX files and folders from Ubuntu 12.04
提问by gblock
I would like to dual boot ubuntu 12.04 and OSX Lion. Is there a way that I can access all my music, documents, etc. from my ubuntu partition?
我想双启动 ubuntu 12.04 和 OSX Lion。有没有办法可以从我的 ubuntu 分区访问我的所有音乐、文档等?
回答by thundersteele
You should be able to read the OSX partition from Ubuntu without any modifications. You might have to mount the partition, although I would expect Ubuntu to automatically mount it read only, so you just have to find the partition in the file browser and open it.
您应该无需任何修改即可从 Ubuntu 读取 OSX 分区。您可能需要挂载该分区,尽管我希望 Ubuntu 自动将其挂载为只读,因此您只需在文件浏览器中找到该分区并将其打开即可。
OSX by default uses journaled HFS+ as it's file system. Ubuntus kernel has support for this file system built in. If you want read/write access to the OSX partition, you have to disable journaling in OSX. Here are some guides with more details:
OSX 默认使用日志式 HFS+ 作为文件系统。Ubuntus 内核内置了对这个文件系统的支持。如果你想读/写访问 OSX 分区,你必须在 OSX 中禁用日志。以下是一些包含更多详细信息的指南:
https://help.ubuntu.com/community/hfsplus
http://manpages.ubuntu.com/manpages/intrepid/man7/hfsplus.7.html
https://help.ubuntu.com/community/hfsplus
http://manpages.ubuntu.com/manpages/intrepid/man7/hfsplus.7.html
Note that I would not recommend disabling journaling, and I do not recommend writing to the OSX system partition from a different OS. If you want to read and write to some files from both OSs, you should create a separate partition for this purpose. Non-journaled HFS+ would work as a file system, FAT 32 should also work.
请注意,我不建议禁用日记功能,也不建议从其他操作系统写入 OSX 系统分区。如果您想从两个操作系统读取和写入某些文件,您应该为此创建一个单独的分区。非日志式 HFS+ 将作为文件系统工作,FAT 32 也应该工作。