[parisc-linux] Re: How to mount HFS 6.0 ?

Martin K. Petersen mkp@mkp.net
08 Jul 2002 08:32:54 -0400


>>>>> "DL" == dlorin  <dlorin@univ-rennes1.fr> writes:

DL> I took a disk SCSCI-1 out of a station 425t running with
DL> BASIC-UX. On this one, there are several files (data and programs
DL> written in HP-BASIC) I want to reach in reading with my 715/50
DL> running with Woody. How to do that?

If there is only one partition on the drive,

        mount -t hfs /dev/sdX /mnt

should work.

HP/UX's partitioning scheme is not supported, unfortunately, so if you
have several partitions you need to hack a bit.  

I suggest writing a program to scan for the UFS magic field on the
disk and print the offsets.  Move 8K back from the start of each
superblock and write down that number.

Then use the loopback mount facility and pass the offset you found to
losetup's -o option.  So - say -

        losetup -o <found offset> /dev/loop0 /dev/sda
        mount -t hfs /dev/loop0 /mnt

With a bit of tinkering, you should be able to mount your hfs
filesystems that way.

-- 
Martin K. Petersen      Cereal Bowl Engineer, Linuxcare, Inc.
http://mkp.net/         SGI XFS, Linux/PA-RISC, Linux/IA-64