68k Macintosh Liberation Army Forums
68k Macintosh Liberation Army Forums
Home | Members | Search | FAQ
 All Forums
 UNIX on 68k
 Mounting a Mac disk from Linux in situ
Author Topic  
ConsoleCowboy
Starting Member



23 Posts
Posted - 18 Oct 2002 :  20:24:18
Hi folk,

I recently mounted the disk from my MacSE in my Linux PC. The cool thing is that I did not had to open the Mac case; I mounted the drive in situ.

Stuff you will need :

- a SCSI card in your PC that can have his ID setted either by jumper or by software. I used an AVA-1505; a cheap ISA card formely bundled with scanner.

- A SCSI cable DB25 on one end (the Mac end) with the appropriate connector for your SCSI card on the other hand (in my case, a DB25 too). DO NOT USE A PARALLEL CABLE.

- A Linux distribution that include the hfs filesystem module. It came standard in most distro; my Debian testing have them.

Here are the step :

1. Connect the SCSI from your card to the SCSI port of your Mac. Start the Mac.

2. Have your SCSI card module (driver) loaded. For my AVA-1505, I did :

modprobe aha152x aha152x=0x340,12,5

where 0x340 is the IO port of my card (0x330 is another common value), 12 is the IRQ (setted by jumper on the card) and 5 is the SCSI ID to use for the controller. On probe success, you will see a list of SCSI device on the chain. That should include the Mac HD.

3. Create a suitable mount point for your Mac disk :

mkdir /mnt/mac

4. Mount the disk :

mount -t hfs /dev/sda /mnt/mac

assuming that your Mac disk is the first (or only) on the chain (/dev/sda). People familiar with Linux will notice that we did not qualify the partition we want to mount (such as /dev/sda1, for example). The reason for this is simple. Linux does not recognize Mac partition table, so the hfs module just need to be told the device. If you need to mount a specific partition on your Mac disk, please read section 2.8 of http://www-sccm.stanford.edu/Students/hargrove/HFS/README-2.html

4. cd /mnt/mac, and here you go !

A strange thing is that file and folder created from Linux won't be seen by MacOS 6 until I reboot the Mac. I dont know about other MacOs version. This is probably a disk buffer issue.

If you are running Debian, there are a few package you may want to install. If you have apt correctly configured, do the following commands :

apt-get install mcvert
apt-get install macutils
apt-get install hfsutils

Hope that would help someone !

:wq

charlieman
Starting Member


United Kingdom
2 Posts
Posted - 22 Oct 2002 :  14:25:39
Very neat. SCSI is supposed to work that way, strangely enough, but few people are courageous enogh to use it in this way. The important thing to remember is that the PC host adapter (ie the SCSI card) must have a different SCSI ID to the Mac. And don't try to read/write to the same file from both computers at the same time...

Phil

Go to Top of Page

   

68k Macintosh Liberation Army Forums

© 2001-2003 68kMLA

Go To Top Of Page

68k of the Week: kastegir's PowerBook 180.