HMOUNT(1)
π HMOUNT(1) π
okay bestie, welcome to the hmount page from the General Commands Manual β this is the one that goes "hey girl, meet your new HFS volume, she's current now" π
β¨ NAME β¨
hmount β introduce a new HFS volume and make it current π
β¨ SYNOPSIS β¨
hmount source-path [partition-no]
β¨ DESCRIPTION β¨
so, hmount is literally the "introduce yourself" step for a new HFS volume π«Ά You <em>must</em> give it a UNIX pathname pointing at the volume's source, no skipping that part. That source can be a block device, or a regular file that's holding an HFS volume image. either one, she's valid π
Now if the source medium is partitioned, you gotta pick <em>one</em> partition to mount. here's the vibe:
- if there's only one HFS partition on the medium, she gets selected by default. no input needed, she's the main character π
- otherwise you <em>must</em> specify the partition number on the command line β and it's the <em>ordinal nth</em> HFS partition, iykyk
- and you can pass partition number
0to refer to the entire medium, straight-up ignoring whatever looks like a partition map. ngl though, in practice this is probably only useful if you actually <em>want</em> this command to fail when the medium is partitioned π
The mounted volume becomes "current" so all your subsequent commands know who they're talking to β¨ And the current working directory for that volume gets set to the root of the volume. All this info lives in a file named .hcwd in your home directory, fr fr.
β οΈ big heads-up bestie: if the source medium gets changed (think a floppy or CD-ROM disc being exchanged) <em>after</em>hmounthas been called, then subsequent HFS commands will FAIL until either the original medium comes back or a different volume is made current. To use the same source path with the different medium, just reissue thehmountcommand. periodt π
β¨ EXAMPLES β¨
% hmount /dev/fd0
If a Macintosh floppy disk is available as /dev/fd0, this command makes the floppy current for other HFS commands such as hls(1), hcd(1), hcopy(1), etc. she's ready for her close-up π
% hmount /dev/sd2 1
If a SCSI disk is available as /dev/sd2, this command finds the <em>first</em> HFS partition on the medium and makes it available for other HFS operations. slay π₯
β¨ NOTES β¨
okay important clarification because people get this twisted: hmount does <em>not</em> actually mount an HFS partition over a UNIX directory in the traditional mount(8) sense. nope. it is merely a "virtual" mount π β just a lil point of convenience for future HFS operations. Every single HFS command independently opens, operates on, and closes the named source path that you gave to hmount. no shared state, no cap π§
β¨ SEE ALSO β¨
β¨ FILES β¨
$HOME/.hcwd
β¨ AUTHOR β¨
Robert Leslie <rob@mars.org> π (iconic, honestly)
and that's the whole page bestie!! π this came to you from HFSUTILS, dated 08-Nov-1997 β yes she's vintage, yes she still ate π β¨
π¦ where this page comes from
- debian bookworm: hfsutils 3.2.6-15
- fedora 43: hfsutils 3.2.6-53.fc42 Β· GPL-2.0-or-later
- fedora 43: hfsutils 3.2.6-57.fc43 Β· GPL-2.0-or-later
- fedora 44: hfsutils 3.2.6-53.fc42 Β· GPL-2.0-or-later
- fedora 44: hfsutils 3.2.6-57.fc44 Β· GPL-2.0-or-later
- nixos 26.05: hfsutils 3.2.6
- nixpkgs unstable: hfsutils 3.2.6
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- ubuntu jammy: hfsutils 3.2.6-15build2
- ubuntu noble: hfsutils 3.2.6-16
- ubuntu questing: hfsutils 3.2.6-16ubuntu1
- ubuntu resolute: hfsutils 3.2.6-16ubuntu2
- ubuntu stonking: hfsutils 3.2.6-16ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms