Difference between revisions of "File Hierarchy Standard (FHS)"

[quality revision] [quality revision]
m
 
m
 

Template:ArticleMainWriter Template:ReviewersList Template:ArticleApprovedVersion

SUMMARY
This article lists and describes the OpenSTLinux file-system hierarchy (Weston and core).

1 Introduction[edit]

Linux® is a file-oriented operating system. This means that any application, library, or other information related, for example, to configurations and running applications is stored in files only.

The Filesystem Hierarchy Standard (FHS) defines the directory structure and directory contents in Linux distributions.
It is maintained by the Linux Foundation. The latest version is 3.0, released on June 3rd 2015[1]

The main parts described by the FHS are:

  • the physical filesystem: any mass storage devices (NAND/eMMC/... partitions, USB key partitions, and so on)
  • pseudo filesystem: created dynamically at boot-up (and/or at runtime) to store various information and configurations related to the software being run
  • remote filesystem: rootfs can contain links to a network filesystem

OpenSTLinux images respect the latest FHS definition: 3.0

2 Root filesystem content[edit]

  • The filesystem root of any Linux Distribution (OpenSTLinux included) is named '/' or 'root' (do not confuse with the 'root' super user name).

There are no files in the root path, only directories that shape the Linux FHS, as listed below:

bin/ Essential command binaries
boot/ Static boot loader files
dev/ Device files (temporary filessytem devtmpfs)
etc/ Host-specific system configuration
lib/ Essential shared libraries and kernel modules
media/ Mount point for removable media
mnt/ Mount point for temporarily mounting a filesystem
proc/ Kernel and process information (pseudo filesystem procfs)
opt/ Add-on application software packages
run/ Data relevant to running processes
sbin/ Essential system binaries
sys/ Kernel and system information (pseudo filesystem sysfs))
srv/ Data for system-provided services
tmp/ Temporary files
usr/ Secondary filesystem-hierarchy
var/ Variable data
  • As a standard Linux distribution, the OpenSTLinux distribution includes the optional user directories:
/home User home directories (optional)
/root Home directory for the root user (optional)

Details of the directory purpose, content or sub-hierarchy can be found in the official documentation: FHS-3.0

  • OpenSTLinux also integrates a vendorfs filesystem, mounted on a dedicated Flash-memory partition (that is, /dev/mmcblk0p5):
/vendor Vendor dedicated directory

This directory allows the storage of specific vendor libraries.

3 References[edit]


<noinclude>

{{ArticleMainWriter | Jean-PhilippeR}}
{{ReviewersList | SebastienG, NathalieS, ChristopheP, RomualdJ, DenisH}}
{{ArticleApprovedVersion | Jean-PhilippeR | Jean-ChristopheT,ChristopheP,RomualdJ,DenisH | No previous approved version | PhilipS - 15Jan'19 - 10271 | 16Jan'19}}

[[Category:OpenSTLinux filesystem|00]]</noinclude>


'''SUMMARY '''<br>
This article lists and describes the OpenSTLinux file-system hierarchy (Weston and core).

== Introduction ==
Linux<sup>&reg;</sup> is a file-oriented operating system. This means that any application, library, or other information related, for example, to configurations and running applications is stored in files only.

The {{highlight|Filesystem Hierarchy Standard (FHS)}} defines the directory structure and directory contents in Linux distributions.<br>

It is maintained by the Linux Foundation. {{highlight|The latest version is 3.0, released on June 3<sup>rd</sup> 2015<ref> http://refspecs.linuxfoundation.org/</ref>}}

The main parts described by the FHS are:
* the physical filesystem: any [[:category:Mass storage|mass storage]] devices (NAND/eMMC/... partitions, USB key partitions, and so on)
* [[Pseudo filesystem|pseudo filesystem]]: created dynamically at boot-up (and/or at runtime) to store various information and configurations related to the software being run
* remote filesystem: rootfs can contain links to a network filesystem

OpenSTLinux images respect the latest FHS definition: 3.0

== Root filesystem content ==
*The filesystem root of any Linux Distribution (OpenSTLinux included) is named '/' or 'root' (''do not confuse with the 'root' super user name'').

There are no files in the root path, only directories that shape the Linux FHS, as listed below:
{|
|-
|bin/
|Essential command binaries
|-
|boot/
|Static boot loader files
|-
|dev/
|Device files ([[Pseudo_filesystem#devtmpfs|''temporary filessytem devtmpfs'']])
|-
|etc/
|Host-specific system configuration
|-
|lib/
|Essential shared libraries and kernel modules
|-
|media/
|Mount point for removable media
|-
|mnt/
|Mount point for temporarily mounting a filesystem 
|-
|proc/
|Kernel and process information ([[Pseudo_filesystem#procfs (/proc) - Kernel_and_process_information|''pseudo filesystem procfs'']])
|-
|opt/
|Add-on application software packages
|-
|run/
|Data relevant to running processes
|-
|sbin/
|Essential system binaries
|-
|sys/
|Kernel and system information ([[Pseudo filesystem#sysfs (/sys) - System filesystem|''pseudo filesystem sysfs'')]])
|-
|srv/
|Data for system-provided services 
|-
|tmp/
|Temporary files
|-
|usr/
|Secondary filesystem-hierarchy 
|-
|var/
|Variable data
|}

*As a standard Linux distribution, the OpenSTLinux distribution includes the optional user directories:
{|
|-
|/home
|User home directories (''optional'')
|-
|/root
|Home directory for the root user (''optional'')
|}

Details of the directory purpose, content or sub-hierarchy can be found in the official documentation: [http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html FHS-3.0]

*OpenSTLinux also integrates a vendorfs filesystem, mounted on a dedicated Flash-memory partition (''that is, /dev/mmcblk0p5''):
{|
|-
|/vendor
|Vendor dedicated directory
|}
This directory allows the storage of specific vendor libraries.

==References==<references/>

<noinclude>

[[Category:OpenSTLinux filesystem|00]]
{{PublicationRequestId | 10271 | 2019-01-16 | PhilipS}}</noinclude>
Line 1: Line 1:
<noinclude>
 
{{ArticleMainWriter | Jean-PhilippeR}}
 
{{ReviewersList | SebastienG, NathalieS, ChristopheP, RomualdJ, DenisH}}
 
{{ArticleApprovedVersion | Jean-PhilippeR | Jean-ChristopheT,ChristopheP,RomualdJ,DenisH | No previous approved version | PhilipS - 15Jan'19 - 10271 | 16Jan'19}}
 
 
[[Category:OpenSTLinux filesystem|00]]
 
</noinclude>
 
 
'''SUMMARY '''<br>
 
 
This article lists and describes the OpenSTLinux file-system hierarchy (Weston and core).
 
This article lists and describes the OpenSTLinux file-system hierarchy (Weston and core).
   
Line 100: Line 91:
 
==References==
 
==References==
 
<references/>
 
<references/>
  +
  +
<noinclude>
  +
[[Category:OpenSTLinux filesystem|00]]
  +
{{PublicationRequestId | 10271 | 2019-01-16 | PhilipS}}
  +
</noinclude>

Attachments

Discussions