Making the Filesystem Available for Use


You're almost done. All that remains now is to mount the new filesystems you've created.

Tip

If Sysinstall does not automatically write an entry into /etc/fstab for the newly added filesystems, you might want to set up /etc/fstab yourself to ensure that filesystems will mount automatically on bootup (a full discussion of the mount command and how to use /etc/fstab appears in "Understanding the /etc/fstab File," in Chapter 12).


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

Create a directory to act as the mount point (for example, /mnt/newdisk). You can do this 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 created, placing each one at a different point in the filesystem. Unmount it with the umount command:

# umount /mnt/newdisk


Congratulationsyou've tamed FreeBSD disk management!




FreeBSD 6 Unleashed
FreeBSD 6 Unleashed
ISBN: 0672328755
EAN: 2147483647
Year: 2006
Pages: 355
Authors: Brian Tiemann

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net