How to mount Mac partitions

Asked by Daniel Schachter

I am running ubuntu linux live cd on my Mac iBook G3.
However, the help included only explains how to mount a "windows partition".
I need to mount my HD Mac partitions.
Which is the command I should enter at Terminal to mount/umount Mac partitions?
Thanks for your help
Daniel

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gustavo Franco (stratus) said :
#1

Hi Daniel,

Open your terminal and run:
sudo fdisk -l |grep HFS

You should see something like:
/dev/hda3 Apple_HFS Apple_HFS_Untitled_2 45760064 @ 262208 ( 21.8G) HFS

The /dev/hda3 in this case is your HFS partition and you will be able to mount/umount that with the following commands:
mount -t hfsplus /dev/hda3 /targetdir
umount /targetdir

Please note that you will need to create /targetdir with the name you want, before running the commands above.

If it works, i recommend you add the following line in your /etc/fstab file to let your system startup automont the partition for you:
/dev/hda3 /targetdir hfsplus rw,uid=1000,gid=1000 0 0

If it fails from the start, try change hfsplus to just hfs and double check your partition (/dev/hda3 in the example above)

Revision history for this message
Felix Stock (felix-stock) said :
#2

somehow terminal tells my "only root can do that"

what shall I do? What can I do to mount the disc?

Revision history for this message
isayhelloyousaygoodbye (ihiubye) said :
#3

u need to be super-user aka root. prepend the command "sudo "

Revision history for this message
Gionn (giovanni.toraldo) said :
#4

Please notice that Linux doesn't allow read/write access to journaled hfs partitions, so you need to disable hfs journaling from macos if you want to enable read/write access:
sudo diskutil disableJournal /

Can you help with this problem?

Provide an answer of your own, or ask Daniel Schachter for more information if necessary.

To post a message you must log in.