FINDMNT(8)
๐ซ findmnt โ the manual page, but make it make sense ๐ซ
okay bestie, welcome to findmnt(8) from the System Administration corner of the manual. she's a classic, she's an icon, and she's about to become your new fave. let's go ๐
๐ธ NAME ๐ธ
findmnt โ find a filesystem. that's it, that's the whole vibe. she finds filesystems. ๐
โจ SYNOPSIS โจ
findmnt [options]
findmnt [options] device|mountpoint
findmnt [options] [--source] device [--target path|--mountpoint
mountpoint]
three ways in, all iconic, all valid. pick your fighter ๐
๐ฆ DESCRIPTION ๐ฆ
so, findmnt will list all your mounted filesystems, or search for one specific filesystem. no cap.
she can search in /etc/fstab, /etc/mtab, or /proc/self/mountinfo โ she's got range, she's got options. and if you don't hand her a device or a mountpoint? she just shows you everything. every single filesystem. the whole wardrobe. ๐
now here's the tea about the device โ you can specify it by:
- device name
major:minornumbers- filesystem label or UUID
- partition label or UUID
like, so many ways to name her, she answers to all of them. ๐
heads up though โfindmntfollowsmount(8)behavior, which means a device name may be interpreted as a mountpoint (and vice versa) if the--target,--mountpointor--sourceoptions aren't specified. yes, they can swap roles. it's giving chaos but it's on purpose.
the command-line option --target is the flexible one, fr fr โ she accepts any file or directory, and then findmnt displays the filesystem for that given path. any path. she'll find it. ๐ง
by default, the command prints all mounted filesystems in the tree-like format. very demure, very mindful, very aesthetically pleasing. ๐ณ
okay but listen โ the default output is subject to change. so whenever possible, you should avoid using the default output in your scripts. seriously. always explicitly define your expected columns by using --output columns-list in environments where a stable output is required. protect your scripts bestie, they deserve it. ๐ญ
and now, the deep lore: the relationship between block devices and filesystems is not always one-to-one. the filesystem may use more block devices. multiple. she's polyamorous like that. ๐ซถ
that's exactly why findmnt provides the SOURCE and SOURCES (plural, with the lil period abbreviation) columns. the SOURCES column displays all devices where it's possible to find the same filesystem UUID โ or another tag specified in fstab when executed with --fstab and --evaluate. so when one filesystem lives across a whole squad of devices, SOURCES shows you the whole group chat. ๐โจ
more coming, don't go anywhere โ this page keeps going and she does NOT disappoint ๐
๐ OPTIONS ๐
okay bestie, this is the part where findmnt gets specific. there are SO many flags and honestly? each one is a little baddie. let's go one by one, no skipping ๐
-A,--allโ turns OFF all the built-in filters and just prints every single filesystem. no gatekeeping, no filtering, everyone's invited ๐ซถ-a,--asciiโ uses plain ascii characters for the tree formatting instead of the pretty ones. for when your terminal is giving "not like other girls" energy.-b,--bytesโ prints sizes in raw bytes instead of human-readable form. โจ by default, sizes show up in units that are powers of1024bytes, and the formal abbreviations for those units (KiB,MiB,GiB, ...) get further shortened to just their first letter:K,M,G, ....-C,--nocanonicalizeโ does NOT canonicalize paths at all. this option affects comparing paths and the evaluation of tags (LABEL,UUID, etc.). it's giving "i said what i said" ๐-c,--canonicalizeโ canonicalizes ALL printed paths. glow up for every path.-D,--dfโ imitates the output ofdf(1). this is literally equivalent to-o SOURCE,FSTYPE,SIZE,USED,AVAIL,USE%,TARGETbut it excludes all pseudo filesystems. wanna print everything? use--all. see also the-I,--dfioptions ๐-d,--direction wordโ sets the search direction. eitherforwardorbackward. pick your vibe.-e,--evaluateโ converts all tags (LABEL,UUID,PARTUUID, orPARTLABEL) into the corresponding device names for theSOURCEcolumn. it's a rare situation, but the same tag can be duplicated (used for more than one device). for that, there's theSOURCES(pl.) column โ it displays, by multi-line cell, all the devices where the tag is detected bylibblkid. this option only makes sense for fstab, bestie.-F,--tab-file pathโ searches in an alternative file. if it's used with--fstab,--mtabor--kernel, then it overrides the default paths. and if you specify it more than once, tree-like output gets disabled (see the--listoption). ๐ฅ-f,--first-onlyโ prints only the first matching filesystem. main character only, no ensemble cast.-H,--list-columnsโ lists all the columns you can specify with the--outputoption. can be used with--jsonor--rawto get that list in a machine-readable format. โจ--hyperlink[=when]โ prints paths as terminal hyperlinks. the optional when argument can bealways,never, orauto. if you leave the argument out, it defaults toauto, which means hyperlinks only get used when the output actually goes to a terminal. ๐-I,--dfiโ imitates the output ofdf(1)with its-ioption. this is equivalent to-o SOURCE,FSTYPE,INO.TOTAL,INO.USED,INO.AVAIL,INO.USE%,TARGETbut excludes all pseudo filesystems. use--allto print all filesystems.-i,--invertโ inverts the sense of matching. plot twist ๐ญ--id numberโ selects a filesystem using the mount node ID.--uniq-id numberโ selects a filesystem using the mount node 64-bit ID. use it with the--kernel=listmountoption.-J,--jsonโ uses JSON output format. for the girlies who speak API. ๐-k,--kernel[=method]โ reads information about filesystems from the kernel. this is the default output. the format is tree-like and it only includes mount options managed by the kernel (see also--mtab). the optional method argument is supported only for the long variant (--kernel). the short variant (-k) defaults to themountinfomethod for backward compatibility. the supported methods are either:mountinfoโ this is the default method and it reads data from the/proc/self/mountinfofile.listmountโ this is an EXPERIMENTAL method that uses thelistmount(2)andstatmount(2)syscalls to generate the mount table. the output may not contain all details about mount nodes (for example,SOURCEis currently missing). โ ๏ธ
-l,--listโ uses the list output format. this format is automatically enabled if the output is restricted by the-t,-O,-Sor-Toption and the option--submountsis not used, or if more than one source file (the option-F) is specified.-M,--mountpoint pathโ explicitly defines the mountpoint file or directory. see also--target.-m,--mtabโ searches in/etc/mtab. the output is in list format by default (see--tree). the output may include user space mount options.-N,--task tidโ uses the alternative namespace/proc/<tid>/mountinfoinstead of the default/proc/self/mountinfo. if this option is specified more than once, then tree-like output gets disabled (see the--listoption). see also theunshare(1)command. ๐ฆ-n,--noheadingsโ does not print a header line. minimalism queen.-O,--options listโ limits the set of printed filesystems. more than one option may be specified in a comma-separated list. the-tand-Ooptions are cumulative in effect. it's different from-tin that each option is matched exactly; a leadingnoat the beginning does not have global meaning. the "no" can be used for individual items in the list. and the "no" prefix interpretation can be disabled by the "+" prefix. ๐-o,--output listโ defines output columns. check the--helpoutput to get a list of the currently supported columns. theTARGETcolumn contains tree formatting if the--listor--rawoptions are not specified. the default list of columns may be extended if list is specified in the format+list(e.g.,findmnt -o +PROPAGATION).--output-allโ outputs almost all available columns. the columns that require--pollare not included. ๐-P,--pairsโ produces output in the form ofkey="value"pairs. all potentially unsafe value characters are hex-escaped (\x<code>). see also the option--shell. note that theSOURCEScolumn uses multi-line cells. in these cases, the column uses an array-like formatting in the output, for examplename=("aaa" "bbb" "ccc"). โจ-p,--poll[=list]โ monitors changes in the/proc/self/mountinfofile. the supported actions are:mount,umount,remountandmove. more than one action may be specified in a comma-separated list. all actions are monitored by default. the time for which--pollwill block can be restricted with the--timeoutor--first-onlyoptions. the standard columns always use the new version of the information from the mountinfo file, except theumountaction, which is based on the original information cached byfindmnt. the poll mode allows using extra columns:ACTIONโ themount,umount,moveorremountaction name; this column is enabled by defaultOLD-TARGETโ available forumountandmoveactionsOLD-OPTIONSโ available forumountandremountactions
--pseudoโ prints only pseudo filesystems. fake it till you make it ๐-Q,--filter exprโ prints only the filesystems that meet the conditions specified by the expr.
this feature is EXPERIMENTAL. see also scols-filter(5). โ ๏ธ
for example, include xfs having more than 50% free space:
findmnt -Q 'INO.USED < INO.AVAIL && FSTYPE == "xfs"'
-R,--submountsโ prints recursively all submounts for the selected filesystems. the restrictions defined by options-t,-O,-S,-Tand--directionare not applied to submounts. all submounts are always printed in tree-like order. this option enables the tree-like output format by default. it has no effect for--mtabor--fstab. ๐ธ-r,--rawโ uses raw output format. all potentially unsafe characters are hex-escaped (\x<code>). note that the columnSOURCESuses multi-line cells. in these cases, the column may produce more strings on the same line.--realโ prints only real filesystems. no fakes allowed.-S,--source specโ explicitly defines the mount source. the supported specifications aredevice,maj:min,LABEL=label,UUID=uuid,PARTLABEL=labelandPARTUUID=uuid.-s,--fstabโ searches in/etc/fstab. the output is in list format (see--list).--shadowedโ prints only filesystems that are over-mounted by another filesystem. it's giving lurking in the shadows ๐ซฃ-T,--target pathโ defines the mount target. if path is not a mountpoint file or directory, thenfindmntchecks the path elements in reverse order to get the mountpoint (this feature is supported only when searching in kernel files and is unsupported for--fstab). it's recommended to use the option--mountpointwhen checks of path elements are unwanted and the path is a strictly specified mountpoint. ๐-t,--types listโ limits the set of printed filesystems. more than one type may be specified in a comma-separated list. the list of filesystem types can be prefixed withnoto specify the filesystem types on which no action should be taken. for more details seemount(8).--treeโ enables tree-like output if possible. this option is silently ignored for tables where the child-parent relation is missing (e.g., fstab). ๐ณ-U,--uniqโ ignores filesystems with duplicate mount targets, thus effectively skipping over-mounted mount points. ๐ฆ-u,--notruncateโ does not truncate text in columns. the default is to not truncate theTARGET,SOURCE,UUID,LABEL,PARTUUID,PARTLABELcolumns. this option disables text truncation also in all other columns.-v,--nofsrootโ does not print a[/dir]in theSOURCEcolumn for bind mounts or btrfs subvolumes.--verboseโ forcesfindmntto print more information (--verifyonly for now).--vfs-allโ when used with theVFS-OPTIONScolumn, prints all VFS (fs-independent) flags. this option is designed for auditing purposes โ to list also the default VFS kernel mount options which are normally not listed. ๐-w,--timeout millisecondsโ specifies an upper limit on the time for which--pollwill block, in milliseconds.-x,--verifyโ checks mount table content. the default is to verify/etc/fstabparsability and usability. it's possible to use this option also with--tab-file. it's possible to specify a source (device) or target (mountpoint) to filter the mount table. the option--verboseforcesfindmntto print more details. ๐-y,--shellโ the column name will be modified to contain only characters allowed for shell variable identifiers. this is usable, for example, with--pairs. note that this feature was automatically enabled for--pairsin version2.37, but due to compatibility issues, now it's necessary to request this behavior by--shell. ๐ญ-h,--helpโ displays help text and exits. ๐ซถ-V,--versionโ displays version and exits. โจ
๐ EXIT STATUS ๐
the exit value is 0 if there's something to display, or 1 on any error (for example, if no filesystem is found based on the user's filter specification, or the device path or mountpoint does not exist). so if you get a 1, bestie, something's off and findmnt is telling you loud and clear. periodt. ๐
๐ ENVIRONMENT ๐
okay so these are the lil environment variables that change how findmnt behaves, and honestly some of them are giving secret-menu energy ๐
LIBMOUNT_FSTAB=<path>โ overrides where thefstabfile lives by default. like, if your fstab is somewhere else, this is how you tell it. โจLIBMOUNT_MTAB=<path>โ overrides the default location of themtabfile. same vibe, different file. ๐LIBMOUNT_DEBUG=allโ turns onlibmountdebug output. for when you're feeling nosy about what's happening under the hood ๐LIBSMARTCOLS_DEBUG=allโ turns onlibsmartcolsdebug output. yes bestie, more debugging, more power ๐ฆLIBSMARTCOLS_DEBUG_PADDING=onโ makes the padding characters visible. so you can literally see the spacing. iconic for figuring out why your columns look cursed ๐LIBSMARTCOLS_JSON=compact|linesโ controls the JSON output format when you're using--json. the supported values are:compactโ JSON output with minimal whitespace (snatched and tidy โจ)linesโ JSON Lines format, which is one JSON object per line (very slay for streaming ๐ )
if it's unset, or set to literally any other value, you get pretty-printed JSON. no drama, just the default. ๐ธ
๐ EXAMPLES ๐
this is the part where it all clicks, bestie. let's go ๐ซถ
findmnt --fstab -t nfsprints all NFS filesystems defined in/etc/fstab. ๐findmnt --fstab /mnt/fooprints all/etc/fstabfilesystems where the mountpoint directory is/mnt/foo. it also prints bind mounts where/mnt/foois a source. so generous of it fr fr โจfindmnt --fstab --target /mnt/fooprints all/etc/fstabfilesystems where the mountpoint directory is/mnt/foo. (yes it's similar to the one above, no they're not the same, we don't make the rules ๐)findmnt --fstab --evaluateprints all/etc/fstabfilesystems and convertsLABEL=andUUID=tags into the real device names. glow-up for your output ๐ซfindmnt -n --raw --evaluate --output=target LABEL=/bootprints only the mountpoint where the filesystem with label"/boot"is mounted. minimal, clean, main character energy ๐findmnt --poll --mountpoint /mnt/foomonitors mount, unmount, remount and move on/mnt/foo. it's literally watching ๐findmnt --poll=umount --first-only --mountpoint /mnt/foowaits for/mnt/footo unmount. patiently. like a bestie holding your bag ๐findmnt --poll=remount -t ext3 -O romonitors remounts to read-only mode on all ext3 filesystems. ๐ง
โจ AUTHORS โจ
Karel Zak <kzak@redhat.com>
the legend themselves, no cap ๐
๐ SEE ALSO ๐
fstab(5), mount(8) scols-filter(5)
go read these next, iykyk ๐
๐ REPORTING BUGS ๐
found a bug? for bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>. tell them everything, bestie, they wanna know ๐ซถ
๐ AVAILABILITY ๐
the findmnt command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
okay that's the whole page, bestie!! this wasutil-linux 2.42.4, dated2026-09-21, and it's theFINDMNT(8)manual โ go mount something cute and slay ๐ ๐โจ
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms