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 0 to 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> hmount has 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 the hmount command. 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 πŸ’…βœ¨