Difference between revisions of "Directory Structure"

From GhostBSD Wiki
Jump to: navigation, search
(Created page with "==Introduction== The Ghost/FreeBSD directory hierarchy is fundamental to obtaining an overall understanding of the system. The most important directory is root or, “/”. T...")
 
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
  
The Ghost/FreeBSD directory hierarchy is fundamental to obtaining an overall understanding of the system. The most important directory is root or, “/”. This directory is the first one mounted at boot time and it contains the base system necessary to prepare the operating system for multi-user operation. The root directory also contains mount points for other file systems that are mounted during the transition to multi-user operation.
+
The Ghost/<q>FreeBSD directory hierarchy is fundamental to obtaining an overall understanding of the system. The most important directory is root or, “/”. This directory is the first one mounted at boot time and it contains the base system necessary to prepare the operating system for multi-user operation. The root directory also contains mount points for other file systems that are mounted during the transition to multi-user operation.</q>
 +
 
 +
A mount point is a directory where additional file systems can be grafted onto a parent file system (usually the root file system). This is further described in FreeBSD Handbook Section 3.6, [https://www.freebsd.org/doc/handbook/disk-organization.html “Disk Organization”].
 +
 
 +
Standard mount points include
 +
<pre style="color: green">
 +
: /usr/
 +
: /var/
 +
: /tmp/
 +
: /mnt/ 
 +
: /cdrom/
 +
</pre>
 +
These directories are usually referenced to entries in
 +
 +
<pre style="color: green">/etc/fstab</pre>
 +
 
 +
This file is a table of various file systems and mount points and is read by the system. Most of the file systems in
 +
 
 +
<pre style="color: green">/etc/fstab</pre>
 +
 
 +
are mounted automatically at boot time from the script
 +
 
 +
[https://www.freebsd.org/cgi/man.cgi?query=rc&sektion=8&manpath=freebsd-release-ports <pre style="color: green">rc(8)</pre>]
 +
 
 +
unless their entry includes ''noauto''. Details can be found in FreeBSD Handbook Section 3.7.1 [https://www.freebsd.org/doc/handbook/mount-unmount.html#disks-fstab “The fstab File”].

Revision as of 12:14, 27 January 2020

Introduction

The Ghost/FreeBSD directory hierarchy is fundamental to obtaining an overall understanding of the system. The most important directory is root or, “/”. This directory is the first one mounted at boot time and it contains the base system necessary to prepare the operating system for multi-user operation. The root directory also contains mount points for other file systems that are mounted during the transition to multi-user operation.

A mount point is a directory where additional file systems can be grafted onto a parent file system (usually the root file system). This is further described in FreeBSD Handbook Section 3.6, “Disk Organization”.

Standard mount points include

: /usr/
: /var/ 
: /tmp/
: /mnt/  
: /cdrom/ 

These directories are usually referenced to entries in

/etc/fstab

This file is a table of various file systems and mount points and is read by the system. Most of the file systems in

/etc/fstab

are mounted automatically at boot time from the script

rc(8)

unless their entry includes noauto. Details can be found in FreeBSD Handbook Section 3.7.1 “The fstab File”.