Mount a block special device or remote filesystem
mount [-abwruv] [-t type [-o options] [special] mountpoint] mount [-abwruv] [-T type [-o options] special [mountpoint]] mount [-abwruv] -e [-t|T type] [-o options] special [mountpoint] mount
QNX Neutrino
Any of the mnt* options given to a specific mount command override those provided on the devb-* driver command line. For an example, see the mntuid description in the io-blk.so entry.
For more information, see Pathname Management in the Process Manager chapter of the System Architecture guide.
type: | Filesystem or manager: |
---|---|
cifs | fs-cifs |
dos | fs-dos.so |
etfs | Embedded Transaction Filesystem (e.g., fs-etfs-ram) |
ext2 | fs-ext2.so |
ifs | Image filesystem (see mkifs) |
io-audio | io-audio |
io-pkt | io-pkt-v4-hc, io-pkt-v6-hc (see the note below) |
mac | fs-mac.so |
nfs | fs-nfs2, fs-nfs3 |
nt | fs-nt.so |
qnx6 | Power-Safe filesystem (see fs-qnx6.so) |
qtd | QNX Trusted Disk (see fs-qtd.so) |
udf | fs-udf.so |
If you don't specify the filesystem, mount tries to determine which to use. If it can't figure out which to use, it uses qnx6.
If you've started more than one instance of io-pkt, and you've used the -i option to specify a stack instance number, you can include the stack number in the type argument (e.g., mount -Tio-pkt2 ...). For more information, see Running multiple instances of the TCP/IP stack in the TCP/IP Networking chapter of the QNX Neutrino User's Guide.
Without options, mount displays the current mountpoints. With options set, this utility mounts the block special device or remote filesystem, special, as the specified mountpoint. To mount a real special device, use the -t option; to specify a special-device string (which isn't necessarily a real device), use -T.
The mount utility supports the /etc/fstab file.
In order to use this utility, your process needs to have the vfs/mount-blk (BLK_ABILITY_MOUNTVFS) custom ability enabled. For more information, see procmgr_ability() and procmgr_ability_lookup() in the C Library Reference.
Mount a Power-Safe filesystem on a hard drive as /mnt/fs:
mount -t qnx6 /dev/hd0t177 /mnt/fs
Mount a device driver for io-pkt*. In this example, devnp-asix.so is the name of the shared object that io-pkt* needs to load for the driver, not the name of a real device:
mount -T io-pkt devnp-asix.so
If you want to pass options to the driver, use the -o option before the name of the shared object:
mount -T io-pkt -o mac=12345678 devnp-asix.so
Enumerate the hard disk partition table:
mount -e /dev/hd0
This will reread the disk partition table for /dev/hd0, and create, update or delete /dev/hd0tXX block-special files for each partition. This is used in the following two scenarios:
Mount a CIFS filesystem (fs-cifs must be running first):
mount -T cifs -o abc,efg //node123:1.1.1.1:/C /ctest
where your name is abc, your password is efg, your CIFS server is node123 with an IP address of 1.1.1.1, the share you want to mount is /C, and the mountpoint you want to use is /ctest.
Mount an NFS 2 client filesystem (fs-nfs2 must be running first):
mount -T nfs 10.1.0.22:/home /mnt/home
Mount an NFS 3 client filesystem (fs-nfs3 must be running first):
mount -T nfs -o ver3 server_node:/qnx_bin /bin
Mount the Qnet network protocol:
mount -T io-pkt /lib/dll/lsm-qnet.so
Display the current mountpoints:
mount
Remount the filesystem that's currently mounted at / as read-only:
mount -ur /
Remount the filesystem that's currently mounted at / as read-write:
mount -uw /
Remount the filesystem, adding the noatime option.
mount -u -o noatime /