Linux and a Firewire Harddrive

I’m trying to get Linux to see an external Firewire harddrive (and an IPod) that is being used with a OSX box (HFS+ filesystems). I know that the Firewire card is installed correctly and I believe that all the proper modules are being loaded. When I plug in the harddrive, I get nothing; no indication at all that my box is seeing it. I’ve gone rounds and round with webpages trying to find the information I need. Unfortunately I will not have access to the disc again until later, so I’m not able to run any tests.

My questions are:

I didn’t have HFS+ support installed on my computer when I was trying. If Linux didn’t recognize a file system, would it still give me feedback on a device? Would a failure in hot-plugging be listed in one of my log files? Has anyone else had success with these types of devices?

Yes… it should give you feedback on the device if you are actually trying to mount the device.

No, if you have the wrong address. Usually after you figure out were the hell it is you need to add it to /etc/fstab so that it will do it without you thinking from then on.

First qestion. Which distro are you using. I can tell you a lot more from that.

I’m using Mandriva 2006 running the 2.6.12 kernel.

By the way, your alias is hilarious!

an easy way to tell if you’re seeing it on a hardware level is to do an ls hd* and or a ls sd* in the /dev directory, it will show any ide and scsi hard drive, and if you see the hard drive there, then its been configured and is ready to mount, but you’d still need HFS drivers to mount it.

Thanks for the comp… I thought it fitting for this forum just because I think this is a great impersonal place for people to share art, ideas, and talk smack.

The firewire issue is different than just looking for sd* or hd*… besides you are using the new UDEV device filesystem. You may have listings for devices that may or may not exist depending on how it has been set up.

You will need the filesystem, no doubt. But the device itself should show.

If you use the command lsmod as root from the command line you should see a list. In that list you should see these modules.

ieee1394

ohci1394

sbp2

if you do not see those in the list you will need to modprobe them.

modprobe iee1394
modprobe ohci1394
modprobe sbp2

Ok…

if that goes alright you should be able to see them with lsmod. To see that you have your hard drive attached do this.

cat /var/log/messages | grep -A 3 ohci1394

the following lines on your output should show that the kernel has found it. Then do a …

cat /proc/scsi/scsi

You should see something like this…

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SAMSUNG Model: SP8004H Rev:
Type: Direct-Access ANSI SCSI revision: 06

you then should be able to mount it by creating a directory like /mnt/scsi and then mounting it like this…

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

that is if you have the hfs filesystem in your kernel. (trust me this all sounds complicated until you’ve tried to do something similar under windows)

Thanks for the detailed help. I believe that you filled in all of the missing blanks. I’ll try it out and let you know what happened.

The thing that’s funny about this is this is the first time in years a piece of hardware didn’t automatically configure itself without me thinking about it. It’s been so long since I’ve even though about modules and explicity mounting anything. I’ve become spoiled by how easy Linux boxes can be now. Not quite a Mac yet, but usually easier than Windows.

Deathguppie, you rock! It took a little modification from what you wrote, but I was able to get Firewire working perfectly. The magical command under Mandriva 2006 was:

mount -t hfsplus /dev/sda /mnt/scsi

Everything else you wrote was exaclty what I needed to get there. Thank you for taking the time to help.

that’s what were here for :wink: