Using a Firewire HD with YDL 3.0.1

yellowdog-general@lists.terrasoftsolutions.com yellowdog-general@lists.terrasoftsolutions.com
Mon Dec 15 15:21:03 2003


On Mon, Dec 15, 2003 at 11:59:32AM -0800, Rich Simpson wrote:
> thanks, I can see my drive in dmesg now.
> Can I mount an hfs+ or ufs partition on my firewire drive? or do I need 
> to do something else to read my data on my mac partitions?

The answer to this depends on the kernel you are using.  YDL 3.0 came
with a 2.4.20 kernel (linux-2.4.20-8d to be precise).  This does not
come with the ability to mount hfs+.  Later kernels available for YDL
3.0 and 3.0.1 do come with this ability.  I am running a 2.4.22 kernel
(YDL's linux-2.4.22-2g) at the moment and this is able to mount and
read/write a hfs+ partition.  The kernel module is still experimental,
so I would suggest you dont' write to a bootable partition, but use
another partition if you have one.  I have a small 1GB partition for
this purpose.  There is mount support for ufs partitions, but I have
never used it.

To illustrate (using my built in drive, not the Firewire drive), using
pdisk (as you were doing previously) I can see the partitions on the
drive.  This shows that partition 9 is the hfsplus partition.

[~] sudo pdisk -l /dev/hda
Password:

Partition map (with 512 byte blocks) on '/dev/hda'
 #:                type name               length   base     ( size )
 1: Apple_partition_map Apple                  63 @ 1       
 2:      Apple_Driver43*Macintosh              56 @ 64      
 3:      Apple_Driver43*Macintosh              56 @ 120     
 4:    Apple_Driver_ATA*Macintosh              56 @ 176     
 5:    Apple_Driver_ATA*Macintosh              56 @ 232     
 6:      Apple_FWDriver Macintosh             512 @ 288     
 7:  Apple_Driver_IOKit Macintosh             512 @ 800     
 8:       Apple_Patches Patch Partition       512 @ 1312    
 9:           Apple_HFS "Macintosh HD_1" 19534688 @ 1824     (  9.3G)
10:     Apple_Bootstrap untitled            40961 @ 19536512 ( 20.0M)
11:     Apple_UNIX_SVR2 swap               524289 @ 19577473 (256.0M)
12:     Apple_UNIX_SVR2 untitled          8388609 @ 20101762 (  4.0G)
13:     Apple_UNIX_SVR2 untitled          1310721 @ 28490371 (640.0M)
14:     Apple_UNIX_SVR2 untitled          4194305 @ 29801092 (  2.0G)
15:     Apple_UNIX_SVR2 untitled          2097153 @ 33995397 (  1.0G)
16:     Apple_UNIX_SVR2 untitled          2977530 @ 36092550 (  1.4G)

Device block size=512, Number of Blocks=39070080 (18.6G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1:  23 @ 64, type=0x1
2:  36 @ 120, type=0xffff
3:  21 @ 176, type=0x701
4:  34 @ 232, type=0xf8ff

With this information I can try mounting the hfs+ partition to the
mount point /mnt/hfs that I have created for this purpose.

[~] sudo mount -t hfsplus /dev/hda9 /mnt/hfs

Then I can try listing the directory as follows and copy files from
there.  I am happy to read files, but if I want to put files onto the
mac side I use Mac-On-Linux and mount the linux partition as a server.
Another alternative would be to use the MacOSX ext2 filesytem, see:
http://sourceforge.net/projects/ext2fsx/.  A third possibility is the
hfsplus utilities (hpmount and family).  There may be others.

[~] ls -agsl /mnt/hfs
total 673
   0 drwxr-xr-x    1 root           39 Dec 13 11:32 .
   4 drwxr-xr-x    7 root         4096 Dec 16 08:20 ..
   0 drwxrwxr-x    1 desktop        36 Dec  8 19:41 Applications
   0 drwxrwxrwx    1 games          18 Jun 18 20:24 Applications (Mac OS 9)
   0 drwxrwxrwx    1 games           2 Mar 21  2003 automount
   0 drwxr-xr-x    1 root           35 Apr  7  2003 bin
   0 drwxrwxrwt    1 root            2 Jul 14  2002 cores
  14 -rw-r--r--    1 games      113664 Oct 18 08:56 Desktop DB
 110 -rw-r--r--    1 games      893122 Oct 18 08:38 Desktop DF
   0 drwxrwxrwx    1 games           9 Apr  1  2003 Desktop Folder
   0 lrwxr-xr-x    1 games          15 Apr  5  2003 Desktop (Mac OS 9) -> /Desktop Folder
   0 dr-xr-xr-x    1 root            2 Apr  6  2003 dev
   0 drwxrwxr-x    1 desktop        12 Apr  6  2003 Developer
   0 drwxrwxrwx    1 games          11 Oct 18 08:37 Documents
   2 -rwxrwxr-x    1 desktop     12292 Dec  8 19:41 .DS_Store
   0 lrwxr-xr-x    1 desktop        11 Apr  6  2003 etc -> private/etc
   1 -r--r--r--    1 root          156 Jul 14  2002 .hidden
   0 drwxrwxr-x    1 desktop        29 Oct 18 08:29 Library
   0 lrwxr-xr-x    1 root            9 Dec 13 11:32 mach -> /mach.sym
 457 -rw-r--r--    1 root      3737772 May  2  2003 mach_kernel
  87 -r--r--r--    1 root       706732 Dec 13 11:32 mach.sym
   0 drwxr-xr-x    1 root            6 Apr  6  2003 Network
   0 drwxrwxr-x    1 desktop         4 Nov  3 14:14 Previous Systems
   0 drwxr-xr-x    1 root            6 Dec 13 11:32 private
   0 drwxr-xr-x    1 root           60 May 12  2003 sbin
   0 drwxrwxrwx    1 games          12 Apr  6  2003 sw
   0 drwxr-xr-x    1 root            4 Nov  3 16:06 System
   0 drwxrwxrwx    1 games          39 Oct 18 08:55 System Folder
   0 drwxr-xr-x    1 desktop         2 Oct 18 08:36 Temporary Items
   0 drwxr-xr-x    1 desktop         2 Oct 18 08:34 TheVolumeSettingsFolder
   0 lrwxr-xr-x    1 desktop        11 May 12  2003 tmp -> private/tmp
   0 drwxrwxrwx    1 games           2 Oct 15  2002 Trash
   0 d-wx-wx-wx    1 games           3 Apr  5  2003 .Trashes
   0 drwxrwxr-t    1 root            5 Apr  6  2003 Users
   0 drwxr-xr-x    1 root           10 Jan 31  2003 usr
   0 lrwxr-xr-x    1 desktop        11 Apr  6  2003 var -> private/var
   0 dr-xr-xr-x    1 root            2 Apr  6  2003 .vol
   0 drwxrwxrwt    1 root            3 Dec 13 11:32 Volumes

-- 
Stephen Harker                           Stephen.Harker@spme.monash.edu.au
School of Physics & Materials Engineering
Monash University                       http://www.ph.adfa.edu.au/s-harker/
                                 Baloney Baffles brains: Eric Frank Russell