FreeBSD Unix How To Use Mount

FreeBSD Unix How To Use Mount
The 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 filesystems
This command will list mounted remote and local file systems.
Sample output:
A bored coder
The first field displays the special device such as /dev/ada0p2 or remote file system such as 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 -v
Sample output:
A bored coder
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 ufs
Or let's say you only want to show nfs filesystems.
mount -t nfs
Sample output:
A bored coder
Mounting Filesystems with mount.
You can also use mount to mount filesystems, the command structure looks like this.
mount <options> device mountpoint
You 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 /mnt
Or for example if I wanted to mount a ufs filesystem.
monut -t ufs /dev/da0 /mnt
If 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.
umount /dev/da0




Page generated in 0.0103 seconds.