1HMOUNT(1)                   General Commands Manual                  HMOUNT(1)
2
3
4

NAME

6       hmount - introduce a new HFS volume and make it current
7

SYNOPSIS

9       hmount source-path [partition-no]
10

DESCRIPTION

12       hmount  is  used  to introduce a new HFS volume. A UNIX pathname to the
13       volume's source must be specified. The source may be a block device  or
14       a regular file containing an HFS volume image.
15
16       If  the source medium is partitioned, one partition must be selected to
17       be mounted. If there is only one HFS partition on the medium,  it  will
18       be selected by default. Otherwise, the desired partition number must be
19       specified (as the ordinal nth HFS partition) on the command-line.  Par‐
20       tition  number 0 can be specified to refer to the entire medium, ignor‐
21       ing what might otherwise be perceived as a partition map,  although  in
22       practice  this is probably only useful if you want this command to fail
23       when the medium is partitioned.
24
25       The mounted volume becomes "current" so subsequent commands will  refer
26       to it.  The current working directory for the volume is set to the root
27       of the volume.  This information is kept in a file named .hcwd  in  the
28       user's home directory.
29
30       If  the source medium is changed (e.g. floppy or CD-ROM disc exchanged)
31       after hmount has been called, subsequent HFS commands will  fail  until
32       the  original medium is replaced or a different volume is made current.
33       To use the same source path with  the  different  medium,  reissue  the
34       hmount command.
35

EXAMPLES

37       % hmount /dev/fd0
38              If  a  Macintosh floppy disk is available as /dev/fd0, this com‐
39              mand makes the floppy current for other  HFS  commands  such  as
40              hls(1), hcd(1), hcopy(1), etc.
41
42       % hmount /dev/sd2 1
43              If  a SCSI disk is available as /dev/sd2, this command finds the
44              first HFS partition on the medium and  makes  it  available  for
45              other HFS operations.
46

NOTES

48       hmount  does  not actually mount an HFS partition over a UNIX directory
49       in the traditional mount(8) sense. It is merely a "virtual" mount, as a
50       point  of convenience for future HFS operations. Each HFS command inde‐
51       pendently opens, operates on, and closes the named source path given to
52       hmount.
53

SEE ALSO

55       hfsutils(1), hformat(1), humount(1), hvol(1)
56

FILES

58       $HOME/.hcwd
59

AUTHOR

61       Robert Leslie <rob@mars.org>
62
63
64
65HFSUTILS                          08-Nov-1997                        HMOUNT(1)
Impressum