[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I read a Mac disk on Linux.



Erik Steffl wrote:

John Summerfield wrote:

I have an external (USB)  disk that has Linux files iin a Mac HFS+ disk.

It's connected to my IA32 peecee:

Parted sees it thus:
Echidna:~# parted /dev/sda
GNU Parted 1.4.24
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Using /dev/sda
Information: The operating system thinks the geometry on /dev/sda is
30401/255/63.  Therefore, cylinder 1024 ends at 8032.499M.
(parted) print
Disk geometry for /dev/sda: 0.000-238475.179 megabytes
Disk label type: mac
Minor    Start       End     Filesystem  Name                  Flags
1          0.000      0.031              Apple
3        128.031 238475.171              Apple_HFS_Untitled_2
(parted)

I've installed hfsplus and hfsutils but I don't see how to access it.

The peecee is running Woody.

Is there a way to access the data on the disk w/o attaching it to my powerbook?
(using the powerbook entails a visit to the site).


  did you try to mount the disk?

  from partition table it looks like this might work:

mount -t hfsplus /dev/sda3 /mnt/macDisk

you need mac partition support in kernel (looks like you have that otherwise parted would not recognize partitions, I guess) and hfsplus filesystem support in kernel. You also need support for USB mass storage (these appear as scsi disks, e.g. /dev/sda)


USB is fine.
I think parted interprets the data it reads.
Kernel sucks:
Echidna:~# mount -t hfsplus /dev/sda3 /mnt/cdrom/
mount: fs type hfsplus not supported by kernel
Echidna:~# ls -l /lib/modules/2.4.18-1-686/kernel/fs/
total 156
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 adfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 affs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 autofs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 autofs4
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 bfs
-rw-r--r--    1 root     root         6788 Apr 15 04:02 binfmt_aout.o
-rw-r--r--    1 root     root        10008 Apr 15 04:02 binfmt_misc.o
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 coda
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 efs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 ext2
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 ext3
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 fat
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 freevxfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 hfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 hpfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 intermezzo
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 isofs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 jbd
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 lockd
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 minix
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 msdos
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 ncpfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 nfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 nfsd
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 nls
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 ntfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 qnx4
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 ramfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 reiserfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 romfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 smbfs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 sysv
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 udf
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 ufs
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 umsdos
drwxr-xr-x    2 root     root         4096 Apr 27 14:13 vfat
Echidna:~#


The 2.6 kernel I'm running here looks like it will work. THere's a 2.6 kernel there too, but it's in a different box. If I have to go onsite, I might as well use OSX on the powerbook.

However, I _can_ build a Sarge 2.4 kernel. Maybe.

--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/



Reply to: