mount -a [-F][-fnrsvw] [-t fstype] linux darwin/BSD
mount [-fnrsvw] [-o options] [-t fstype] device directory
mount [-fnrsvw] [-o options [,…]] device | directory
mount [-hV]
Temporaily attach the file system which exists on device overlaying directory
and update /etc/mtab
device |
File system specific types
ufs |
The previous contents of directory are hidden.
It might be a good idea to touch "not mounted" at the mount point
this will cause the file not mounted to be displayed if the mount point is retained and has no device mounted.
List all mounted file systems of type fstype
mount [-t fstype]
The proc file system is not associated with a special device, proc can be used instead of a device specification.
cifs//server/share
-o options
user=[workgroup/]uname[%pass
| ||||||||
pass[word]=pppp
| ||||||||
ro |
mount [-adfruvw] [-t fstype ]
Prepare and graft a special device or the remote node (
Without
Without arguments, the currently mounted files systems are output with options. > mount minor edits for clarity /dev/disk1s6s1 on / (apfs, sealed, local, read-only, journaled) /dev/disk1s1 on /System/Volumes/Data (apfs, local, journaled, nobrowse) /dev/disk1s3 on /System/Volumes/Preboot (apfs, local, journaled, nobrowse) /dev/disk1s5 on /System/Volumes/VM (apfs, local, noexec, journaled, noatime, nobrowse) /dev/disk1s7 on /System/Volumes/Update (apfs, local, journaled, nobrowse) /dev/disk1s2 on /Volumes/DATA (apfs, local, journaled) map auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse) //com.apple.idms.appleid.prd.UUID@ smac14._smb._tcp.local/dgerman on /Volumes/dgerman (smbfs, nodev, nosuid, mounted by dgerman) by finder //com.apple.idms.appleid.prd.UUID@ smac14._smb._tcp.local/Macintosh%20HD on /Volumes/Macintosh HD-1 (smbfs, nodev, nosuid, mounted by dgerman) by finder devfs on /dev (devfs, local, nobrowse)
| ||||||||||||||||||||||||||||||||||||||||||||||
struct fstab: spec /* block special device name */ file /* file system path prefix */ vfstype /* File system type, ufs, nfs */ mntops /* Mount options ala -o */ type /* FSTAB_* from fs_mntops */ freq /* dump frequency, in days */ passno /* pass number on parallel fsck */ File System types as per: ls -log /sbin/mount_* ( as of 09/12/22 Monterey) § /System/Library/Filesystems/ ® /Contents/Resources/mount_ acfs -> §acfs.fs/Contents/bin/redirection.sh afp apfs -> ..§apfs.fs®apfs Mac OS default cd9660 -> §cd9660.fs®cd9660 CD-ROM (as per ISO 9660) cddafs -> §cddafs.fs®cddafs devfs exfat -> §exfat.fs®exfat fdesc /dev/fd floppy ftp -> §ftp.fs®ftp hfs -> §hfs.fs®hfs HFS+ is the previous Mac OS default lifs msdos -> §msdos.fs®msdos nfs Sun Microsystems compatible ``Network File System'' ntfs -> §ntfs.fs®ntfs smbfs Mac to Mac tmpfs -> ..§tmpfs.fs®tmpfs udf -> §udf.fs®udf webdav 9p Plan 9 union translucent |
dev/rdisk3s1: fsck_hfs started at Wed Feb 23 15:47:59 2022 /dev/rdisk3s1: /dev/rdisk3s1: ** /dev/rdisk3s1 (NO WRITE) /dev/rdisk3s1: Executing fsck_hfs (version hfs-583.100.9). QUICKCHECK ONLY; FILESYSTEM CLEAN /dev/rdisk3s1: fsck_hfs completed at Wed Feb 23 15:47:59 2022 /dev/rdisk2s2: fsck_hfs started at Thu Feb 24 19:50:15 2022 /dev/rdisk2s2: /dev/rdisk2s2: ** /dev/rdisk2s2 (NO WRITE) /dev/rdisk2s2: Executing fsck_hfs (version hfs-583.100.10). QUICKCHECK ONLY; FILESYSTEM CLEAN /dev/rdisk2s2: fsck_hfs completed at Thu Feb 24 19:50:15 2022
> /sbin/mount -v -t smbfs //mgerman@kitchen2023/data0 /Volumes/data0
mount_smbfs: mount error: /Volumes/data0: Unknown error: -1073741412
mount: /Volumes/data0 failed with 64
> mount -v -a
mount_apfs: volume could not be mounted: Operation not permitted
mount: / failed with 77
mount: /Volumes/s failed with 72
> sudo mount -a
mount_apfs: volume could not be mounted: Permission denied
mount: / failed with 66
mount_smbfs: server connection failed: No route to host
mount: /Volumes/mountDir failed with 68
Not such host
Incorrect host spelling
> sudo mount -t smbfs -v /Volumes/rn23
mount: /Volumes/dgerman23: invalid special file or file system.
mount: /Volumes/mountDir: invalid file system.
mountDir does not exist
mount_smbfs: server rejected the connection: Authentication error
mount: /Volumes/s failed with 77
Wrong userID/Password
getfsent,
mount, mount_afp, mount_cd9660, mount_cddafs, mount_fdesc, mount_hfs, mount_msdos, mount_nfs,
mount_smbfs, mount_udf, mount_webdav,
umount
df - Report filesystem disk space usage and device/mount_points
fdformat - Low-level format a floppy disk
fdisk - Partition table manipulator for Linux
ram - ram_disk
umount- detach/unmount a device OS X administrative utility
diskutil