Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running Arch Linux on a Macbook. I want to automatically mount my Macintosh partition when booting Arch, so I added the following to /etc/fstab:

/dev/sda2   /media/Machintosh hfsplus defaults 1 2

After rebooting, the partition was not mounted, but I could mount it with the following command:

sudo mount /dev/sda2

How can I make Arch Linux automatically mount the partition?

share|improve this question
1  
Use dmesg to look for warning/error when the system tries to mount your partitions. –  ByteNudger Mar 2 '12 at 16:33
1  
Normally /media is used by HAL/udev for automounting dynamic disks like a USB drive. I recommend putting the directory Macintosh under /mnt which has often been used for static mounts from fstab. –  penguin359 Mar 2 '12 at 18:53
add comment

4 Answers 4

As you said above, creating the directory to attach the mount point to will fix this issue.

share|improve this answer
add comment

If hfsplus was built into the kernel as a module and if the partition containg the modules has not yet been mounted (read: entries in fstab have to be in the right order) the hfs-partition cannot be mounted during boot.

Might also happen if your kernel cannot autoload modules.

share|improve this answer
add comment
up vote 0 down vote accepted

Creating the mount point fixed the issue:

mkdir /mnt/Machintosh

Also if you want to avoid warnings, mount the volume as read-only, because write is not supported on HFS+ journaled systems (or you can disable journaling, but it is not advised).

share|improve this answer
add comment

Some recommendations ,

It's likely /media will be cleared by HAL , so during boot , the path doesn't exist , so mount would fail.

You should either change the mount path , e.g to /mnt/Machintosh ,

Or use user-land tools , e.g udisks to mount it automatically (this will ensure the correct path , e.g /media/VOLUME_NAME)

To use udisks , add a mac.desktop in ~/.config/autostart ,

[Desktop Entry]
Exec=Mount Mac Disk
Name=udisks --mount /dev/XXX
Type=Application

(Note the second solution work only for graphical users)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.