Skip to main content
deleted 26 characters in body
Source Link
Jo Liss
  • 213
  • 3
  • 6

Summarymount

Use findmnt --real instead of mount:

findmnt --real -t nosquashfs
df -x tmpfs -l

Explanation

mount

The mountfindmnt command doesn't support thisis the recommended way of listing mounts, but its manual page recommends usingaccording to the newer findmntmount for listing mountsmanual page:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a The --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup).

Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter using -t nosquashfs. You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df

df -x tmpfs -l

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l). If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

Summary

findmnt --real -t nosquashfs
df -x tmpfs -l

Explanation

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup).

Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter using -t nosquashfs. You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l). If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

mount

Use findmnt --real instead of mount:

findmnt --real -t nosquashfs

findmnt is the recommended way of listing mounts, according to the mount manual page:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

The --real option excludes virtual filesystems (like proc, devtmpfs, or cgroup).

Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter using -t nosquashfs. You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df -x tmpfs -l

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l). If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

summary at the top
Source Link
Jo Liss
  • 213
  • 3
  • 6

mountSummary

findmnt --real -t nosquashfs
df -x tmpfs -l

Explanation

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup). 

Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter:

findmnt --real -t nosquashfs

using -t nosquashfs. You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l):

df -x tmpfs -l

. If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup). Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter:

findmnt --real -t nosquashfs

You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l):

df -x tmpfs -l

If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

Summary

findmnt --real -t nosquashfs
df -x tmpfs -l

Explanation

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup). 

Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter using -t nosquashfs. You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l). If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

deleted 2 characters in body
Source Link
Jo Liss
  • 213
  • 3
  • 6

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup). Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter:

findmnt --real -t nosquashfs

You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones using the (-l option):

df -l -x tmpfs -l

If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup). Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter:

findmnt --real -t nosquashfs

You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems, as well as perhaps non-local ones using the -l option:

df -l -x tmpfs

If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

mount

The mount command doesn't support this, but its manual page recommends using the newer findmnt for listing mounts:

The listing mode is maintained for backward compatibility only.

For more robust and customizable output use findmnt(8), especially in your scripts.

findmnt has a --real option, which excludes virtual filesystems (like proc, devtmpfs, or cgroup). Furthermore, you may want to exclude squashfs filesystems (if you use snap) to remove some clutter:

findmnt --real -t nosquashfs

You can exclude more filesystems separated by comma, e.g. -t nosquashfs,nofuse.sshfs.

df

df doesn't list most virtual systems by default (unless you pass the -a option), so the main thing you'll want to exclude is tmpfs filesystems (-x tmpfs), as well as perhaps non-local ones (-l):

df -x tmpfs -l

If your df shows squashfs filesystems (mine doesn't), you may have to pass -x tmpfs -x squashfs to exclude them.

Source Link
Jo Liss
  • 213
  • 3
  • 6
Loading