HMCDRVFS(1)
πΈ HMCDRVFS(1) πΈ
okay so bestie, welcome to the hmcdrvfs page πΏ β literally a whole manual page for mounting a FUSE file system that gives you remote access to a DVD sitting in an HMC DVD drive. yes, that's the whole vibe. sit down, hydrate, let's go β¨
π NAME π
hmcdrvfs β mount a FUSE file system for remote access to a DVD in a HMC DVD drive π
π¦ SYNOPSIS π¦
mounting:
hmcdrvfs MOUNTPOINT [OPTIONS]
unmounting:
fusermount -u MOUNTPOINT
π DESCRIPTION π
Use the hmcdrvfs command for read-only access to files on a DVD in the DVD drive of an HMC. no write girlies here, it's read-only periodt π
On the HMC, the DVD must be assigned to the LPAR within which your Linux instance runs. For z/VM guests, the DVD must be assigned to the LPAR where the z/VM hypervisor runs. With the DVD assigned to your Linux instance, this command creates a FUSE.HMCDRVFS file system with the content of the DVD at the specified mountpoint. iconic, honestly π₯
β¨ OPTIONS β¨
πΈ General mount options
-o opt[,opt...]β FUSE or mount command options; for the FUSE options see below, for mount options seemount(8)β yes bestie, you read that right, go look it up π-h,--helpβ print usage information, then exit (see also DIAGNOSTICS) π«Ά-v,--versionβ print version information, then exit
π Specific FUSE.HMCDRVFS options
-o hmclang=LANGβ specify the language setting on the HMC; for valid values, seelocale(1); for more information, see DIAGNOSTICS and EXAMPLES π-o hmctz=TZβ specify the time zone setting on the HMC; for valid values, seetzset(3); for more information, see DIAGNOSTICS and EXAMPLES π
π Applicable FUSE options (version 2.6)
-d,-o debugβ enable debug output (implies-f)-fβ foreground operation-sβ disable multi-threaded operation-o allow_otherβ allow access by other users-o allow_rootβ allow access by root-o default_permissionsβ enable permission checking by kernel-o fsname=NAMEβ set file system name-o subtype=TYPEβ set file system type-o max_read=Nβ set maximum size of read requests-o direct_ioβ use direct I/O-o kernel_cacheβ cache files in kernel-o [no]auto_cacheβ enable caching based on modification times-o umask=Mβ set file permissions (octal)-o uid=Nβ set file owner-o gid=Nβ set file group-o entry_timeout=Tβ cache timeout for names (default: 1.0 second)-o attr_timeout=Tβ cache timeout for attributes (default: 1.0 second)-o ac_attr_timeout=Tβ auto cache timeout for attributes (default:attr_timeout)-o max_readahead=Nβ set maximum readahead-o async_readβ perform reads asynchronously (default)-o sync_readβ perform reads synchronously-o no_remote_lockβ disable remote file locking-o intrβ allow requests to be interrupted-o intr_signal=NUMβ signal to send on interrupt
π§ EXAMPLES π§
To mount the HMC drive DVD at /mnt/hmc without any special options use:
$ hmcdrvfs /mnt/hmc
In case the kernel module hmcdrv was not loaded in advance use:
# modprobe hmcdrv
# hmcdrvfs /mnt/hmc
To translate the UID and GID of files on the HMC drive DVD to your system users and groups along with overriding the permissions use for example:
$ hmcdrvfs /mnt/hmc -o uid=500 -o gid=1000 -o umask=0337
To speed up transfer rates to frequently accessed directories use the cache timeout option:
$ hmcdrvfs /mnt/hmc -o entry_timeout=60
If the HMC is in a different timezone and is configured for a different language use, for example:
$ hmcdrvfs /mnt/hmc -o hmclang=de_DE -o hmctz=Europe/Berlin
or disregarding any daylight saving time, specifying hours west of Prime Meridian (UTC):
$ hmcdrvfs /mnt/hmc -o hmclang=de_DE -o hmctz="GMT-1"
To unmount the HMC drive DVD mounted on /mnt/hmc use:
$ fusermount -u /mnt/hmc
It is also possible to mount by using fstab(5). Specify the mount point and associated mount options in /etc/fstab, for example:
hmcdrvfs /mnt/hmc fuse ro,noatime,allow_other,uid=500,gid=1000
You can then mount the file system with this command:
# mount /mnt/hmc
π FILES π
Some general options about mount policy can be set in the /etc/fuse.conf file. These options are:
mount_max=NNNβ Set the maximum number of FUSE mounts allowed to non-root users. The default is1000.user_allow_otherβ Allow non-root users to specify theallow_otherorallow_rootmount options.
π DIAGNOSTICS π
- The
FUSE.HMCDRVFSfile system needs access to device node/dev/hmcdrv. This node is created automatically when thehmcdrvkernel module is loaded (see Linux kernel configuration optionCONFIG_HMC_DRV). The user process that runs thehmcdrvfscommand must have sufficient privileges to read from and write to node/dev/hmcdrv. Use the commandschown(1),chgrp(1)and/orchmod(1)on node/dev/hmcdrvto ensure this condition. π - In addition to the required permissions, there are some environmental requirements:
- In a z/VM environment, the z/VM guest virtual machine must have at least privilege class B.
- For Linux in LPAR mode, the LPAR activation profile must allow issuing SCLP requests.
- On the HMC, the DVD must be assigned to the associated system image (use menu Access Removable Media).
- The
FUSE.HMCDRVFSfile system maintains a file attributes cache, with an aging timeout. This timeout is related to theentry_timeoutandattr_timeoutFUSE options. Its value exceeds the greater of the two,entry_timeoutandattr_timeout, by 30 - 60 seconds. This timeout affects the performance of theFUSE.HMCDRVFSfile system. β³ - Different language and time zone settings on the HMC and your Linux instance can result in incorrect file modification information. π careful bestie:
- Use the
hmclangspecificFUSE.HMCDRVFSoption if the language settings of the HMC and your Linux instance do not match. Correctly setting this option prevents incorrect file modification dates in the file details. Omitting thehmclangoption can result in incorrect dates of the form01-01-YYYY, with misleading values for the day and month. - Use the
hmctzspecificFUSE.HMCDRVFSoption if the time zone settings of the HMC and your Linux instance do not match. Correctly setting this option prevents incorrect file modification times in the file details. Omittinghmctz, an incorrect specification, or a missing time zone description file can result in modification times that differ up to 25 hours from the correct times. Specifications that cannot be interpreted result in GMT/UTC being set. If the HMC is set to GMT/UTC, specifyhmctz="".
- Use the
- The following generic mount options from
mount(8)are ignored β like, they just don't count, ngl:-w,--rw,-o rwβ mount the file system read/write-o atimeβ update inode access times on this file system
- The following FUSE mount options from
mount.fuse(8)are ignored β also being ignored, sorry babe π:-o hard_removeβ immediate removal-o negative_timeoutβ cache timeout for deleted names-o max_write=Nβ set maximum size of write requests-o atomic_o_truncβ enable atomic open+truncate support-o big_writesβ enable larger than 4kB writes-o subdir=DIRβ prepend this directory to all paths-o use_inoβ let file system set inode numbers-o readdir_inoβ try to fill ind_inoin readdir
π SEE ALSO π
tzset(3), locale(1), fusermount(1), fstab(5), mount(8), mount.fuse(8) lshmc(8), and Linux on System z: Device Drivers, Features and Commands π
and that's the page bestie, go forth and mount that DVD π«Ά this lil masterpiece is from s390-tools, dated Mar 2015 β HMCDRVFS(1), slay, periodt π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: s390-tools-hmcdrvfs 2.44.1-160000.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms