Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mount a Macintosh disk on Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
watersb
Apprentice
Apprentice


Joined: 04 Sep 2002
Posts: 297
Location: where the hell is Tesuque, New Mexico?

PostPosted: Sun Sep 05, 2004 9:43 pm    Post subject: Mount a Macintosh disk on Linux Reply with quote

Mounting a Macintosh disk with UFS or HFS on Linux can be a problem if you let the Mac set up the partition map.

The best thing to do would be to create an MSDOS partition map on a disk from Linux via fdisk, and then let the Mac mount it to create and manipulate the file systems.

If you cannot do that, or (like me) you have a Macintosh disk with some valuable data on it, you can still "teach" your Linux box to read the disk!

First, configure your kernel:
If you are using menuconifg, the menu items for partition maps is under File Systems -> Partition Types

Whenever you dork with partition types for the kernel, make sure that you have a backup kernel available from your boot menu! If you screw up, you won't be able to boot! So:
Always enable "PC BIOS (MSDOD partition tables) support


Code:

CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_UFS_FS=y


You can add the UFS filesystem as a module if you wish. Enabling write support for UFS won't help you very much, as the flavor of UFS used by the Mac is still read-only from Linux. See the mount( 8 ) man page for details.

btw... do not confuse "config_mac_partition" under Linux with "option MAC_PARTITION" under FreeBSD... in FreeBSD, this refers to a Mandatory Access Control (MAC) policy :oops:


Next, reboot into your new kernel.
dmesg should show that your Macintosh partitions were detected.

Finally, mount the Macintosh disk filesystem.

To mount a Mac-created UFS filesystem (read-only!) on Linux, you'll need the openstep option, like this:

Code:

# mount -t ufs -o ro,ufstype=openstep /dev/hdb3 /mnt/mac/1


Which partition to Mount?
You may have to try a number of different partitions; by default, the Mac creates some extra, small partitions at the beginning of the disk for legacy device-driver support (System 9 and older Macs).

My test disk had two user partitions created from the Mac OS X Disk Utility -- this was actually six partitions on the hard disk! I just tried all the partitions until I was successful.
Back to top
View user's profile Send private message
hamletmun
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2002
Posts: 111
Location: Buenos Aires, Argentina

PostPosted: Fri May 29, 2009 2:36 pm    Post subject: Thank you!!! Reply with quote

I used System Rescue CD to copy MacOS X discs.

It was easy to mount "Mac OS Extended" or HFS+ file system.
But I couldn't mount "UNIX File System" or UFS file system.

It was hard to find the answer about mounting MacOS X "UNIX File System".
I already tried 44bsd, nextstep, openstep, etc..

But the key was to know "Mac creates some extra, small partitions at the beginning of the disk for legacy device-driver support (System 9 and older Macs)"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum