All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] How to mount HFS 6.0 ?
@ 2002-07-08  8:05 dlorin
  2002-07-08 12:32 ` [parisc-linux] " Martin K. Petersen
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: dlorin @ 2002-07-08  8:05 UTC (permalink / raw)
  To: debian-hppa; +Cc: parisc-linux

The content of my question concerns the "old fellows", who were using the 
ancient series HP/9000/3xx or 4xx and whom I hope to find reading this 
mails-list. But anyone, able to help me, is welcome...

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

Nota:
1) the filesystem's type on this disk is: HFS version 6.0.
2) the disk is already installed in the daisy chain SCSI and correctly 
identified during the boot sequence.

Thanks.
D. Lorin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [parisc-linux] How to mount HFS 6.0 ?
@ 2002-07-08  8:05 dlorin
  0 siblings, 0 replies; 8+ messages in thread
From: dlorin @ 2002-07-08  8:05 UTC (permalink / raw)
  To: debian-hppa; +Cc: parisc-linux

The content of my question concerns the "old fellows", who were using the 
ancient series HP/9000/3xx or 4xx and whom I hope to find reading this 
mails-list. But anyone, able to help me, is welcome...

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

Nota:
1) the filesystem's type on this disk is: HFS version 6.0.
2) the disk is already installed in the daisy chain SCSI and correctly 
identified during the boot sequence.

Thanks.
D. Lorin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [parisc-linux] Re: How to mount HFS 6.0 ?
  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
  2002-07-08 12:46 ` [parisc-linux] " Steve Pacenka
  2 siblings, 0 replies; 8+ messages in thread
From: Martin K. Petersen @ 2002-07-08 12:32 UTC (permalink / raw)
  To: dlorin; +Cc: debian-hppa, parisc-linux

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [parisc-linux] Re: How to mount HFS 6.0 ?
  2002-07-08  8:05 [parisc-linux] How to mount HFS 6.0 ? dlorin
@ 2002-07-08 12:32 ` Martin K. Petersen
  2002-07-08 12:32 ` Martin K. Petersen
  2002-07-08 12:46 ` [parisc-linux] " Steve Pacenka
  2 siblings, 0 replies; 8+ messages in thread
From: Martin K. Petersen @ 2002-07-08 12:32 UTC (permalink / raw)
  To: dlorin; +Cc: debian-hppa, parisc-linux

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [parisc-linux] How to mount HFS 6.0 ?
  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
@ 2002-07-08 12:46 ` Steve Pacenka
  2002-07-08 13:10   ` Martin K. Petersen
  2 siblings, 1 reply; 8+ messages in thread
From: Steve Pacenka @ 2002-07-08 12:46 UTC (permalink / raw)
  To: dlorin; +Cc: parisc-linux

On Mon, 2002-07-08 at 04:05, dlorin@univ-rennes1.fr wrote:
> The content of my question concerns the "old fellows", who were using the 
> ancient series HP/9000/3xx or 4xx and whom I hope to find reading this 
> mails-list. But anyone, able to help me, is welcome...
> 
> I took a disk SCSCI-1 out of a station 425t running with BASIC-UX. On this one, 
> there are several files (data and programs written in HP-BASIC) I want to reach 
> in reading with my 715/50 running with Woody. How to do that?
> 
> Nota:
> 1) the filesystem's type on this disk is: HFS version 6.0.
> 2) the disk is already installed in the daisy chain SCSI and correctly 
> identified during the boot sequence.
> 
> Thanks.
> D. Lorin


The kernel sources suggest that the following may work if you have ufs
support compiled into your kernel:

   mount -t ufs -o ufstype=hp /dev/sd{whatever} /mnt

It would be unportable if type "hfs" as Martin Peterson suggests works. 
The "hfs" filesystem type in the standard Linux kernel represents an
Apple Macintosh filesystem.

-- SP

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [parisc-linux] How to mount HFS 6.0 ?
  2002-07-08 12:46 ` [parisc-linux] " Steve Pacenka
@ 2002-07-08 13:10   ` Martin K. Petersen
  0 siblings, 0 replies; 8+ messages in thread
From: Martin K. Petersen @ 2002-07-08 13:10 UTC (permalink / raw)
  To: Steve Pacenka; +Cc: dlorin, parisc-linux

>>>>> "Steve" == Steve Pacenka <spacenka@lightlink.com> writes:

Steve> It would be unportable if type "hfs" as Martin Peterson
Steve> suggests works.  The "hfs" filesystem type in the standard
Steve> Linux kernel represents an Apple Macintosh filesystem.

Yes, you're right.  Waaay too early in the morning here (And slightly
embarassing given that I was the one who implemented the hfs support
in ufs d:)...

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [parisc-linux] How to mount HFS 6.0 ?
@ 2002-07-08 16:47 dlorin
  0 siblings, 0 replies; 8+ messages in thread
From: dlorin @ 2002-07-08 16:47 UTC (permalink / raw)
  To: Steve Pacenka; +Cc: debian-hppa, parisc-linux

> It would be unportable if type "hfs" as Martin Peterson suggests works. 
> The "hfs" filesystem type in the standard Linux kernel represents an
> Apple Macintosh filesystem.

You're right, the problem is still open ...

Clearly, it is the Hewlett-Packard Filesystem 'HFS' HP-UX (ver. 6.0), 
which has been developped in the 80's, and not the Apple's filesystem 
HFS (confusion , confusion, ...).
Anyway, thanks to all.

d.l.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [parisc-linux] How to mount HFS 6.0 ?
@ 2002-07-08 16:47 dlorin
  0 siblings, 0 replies; 8+ messages in thread
From: dlorin @ 2002-07-08 16:47 UTC (permalink / raw)
  To: Steve Pacenka; +Cc: debian-hppa, parisc-linux

> It would be unportable if type "hfs" as Martin Peterson suggests works. 
> The "hfs" filesystem type in the standard Linux kernel represents an
> Apple Macintosh filesystem.

You're right, the problem is still open ...

Clearly, it is the Hewlett-Packard Filesystem 'HFS' HP-UX (ver. 6.0), 
which has been developped in the 80's, and not the Apple's filesystem 
HFS (confusion , confusion, ...).
Anyway, thanks to all.

d.l.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-08 16:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2002-07-08 12:46 ` [parisc-linux] " Steve Pacenka
2002-07-08 13:10   ` Martin K. Petersen
  -- strict thread matches above, loose matches on Subject: below --
2002-07-08  8:05 dlorin
2002-07-08 16:47 dlorin
2002-07-08 16:47 dlorin

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.