All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <mkp@mkp.net>
To: <dlorin@univ-rennes1.fr>
Cc: debian-hppa@lists.debian.org, <parisc-linux@lists.parisc-linux.org>
Subject: [parisc-linux] Re: How to mount HFS 6.0 ?
Date: 08 Jul 2002 08:32:54 -0400	[thread overview]
Message-ID: <yq1sn2ummbt.fsf@austin.mkp.net> (raw)
In-Reply-To: <200207080705.JAA06652@mailimailo.univ-rennes1.fr>

>>>>> "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

  parent reply	other threads:[~2002-07-08 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-08  8:05 [parisc-linux] How to mount HFS 6.0 ? dlorin
2002-07-08 12:32 ` [parisc-linux] " Martin K. Petersen
2002-07-08 12:32 ` Martin K. Petersen [this message]
2002-07-08 12:46 ` [parisc-linux] " Steve Pacenka
2002-07-08 13:10   ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yq1sn2ummbt.fsf@austin.mkp.net \
    --to=mkp@mkp.net \
    --cc=debian-hppa@lists.debian.org \
    --cc=dlorin@univ-rennes1.fr \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.