FreeBSD Unix How To Use MountThe mount command can be used to see all of the mounted filesystems or to mount/add any local devices such as USB,DVD/CD or remote file systems such asNFS, SAMBA shares or files is the mount command on a FreeBSD.
Listing all of the mounted filesystemsThis command will list mounted remote and local file systems.
The first field displays the special device such as /dev/ada0p2 or remote file system such as 192.168.1.10:/exports/nas01/data mounted on second field. The second field is the mount point for the file system displayed in the first field. Adding the -v flag to the mount command will add IDs too.
mount -vSample output:
If you want to see only a specific file system you would use the -t flag. For example, to only show a ufs based mounted file system.
mount -t ufsOr let's say you only want to show nfs filesystems.
mount -t nfsSample output:
Mounting Filesystems with mount.You can also use mount to mount filesystems, the command structure looks like this.
mount <options> device mountpointYou use the -t flag to tell the mount command the filesystem type you're trying to mount. For example if you wanted to mount a fat32 file system, a usb stick or something.
monut -t msdosfs /dev/da0 /mntOr for example if I wanted to mount a ufs filesystem.
monut -t ufs /dev/da0 /mntIf you're trying to mount a large filesystem, a usb hard drive for example, you have to use the -o flag with the option large.
mount -t msdosfs -o large /dev/da0 /mnt
Unounting Filesystems with umount.You can unmount a filesystem with the umount command.