-2

On FreeBSD I wish to see all mounted disks and all of their mount locations.

For example this shows my disks.

[root@freenas] ~# sysctl kern.disks
kern.disks: xbd2 xbd1 ada0
[root@freenas] ~#

Now I have the disks but I don't know where they are mounted.

Phil
  • 265
  • 2
  • 6
  • 13

1 Answers1

2

You can use the mount command

The system maintains a list of currently mounted file systems. If no arguments are given to mount, this list is printed.

Then parse the output looking for the disks you are interested in.

user9517
  • 115,471
  • 20
  • 215
  • 297