Making the Filesystem Available for Use

We're almost done. All that remains now is to mount the new filesystems you've created. You may also want to set up /etc/fstab to mount the filesystems automatically on boot. A full discussion of the mount command and how to use /etc/fstab can be found in Chapter 9.

We're dealing with the simplest possible case, though: new, clean FreeBSD-formatted partitions. We can use the mount command in its most straightforward way.

Create a directory to act as the mount point, for example /mnt/newdisk. (This can be done anywhere in the filesystem.) Next, issue the mount command:

# mount /dev/ad1s1e /mnt/newdisk

Use the df command to verify that the disk is mounted. You can do the same for each new partition you ...

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.