Giter VIP home page Giter VIP logo

genfstab's Introduction

GENFSTAB
--------------------------------------------------------------------------------

Simplified POSIX sh implementation of the Arch Linux tool[1] with the same name.
This implementation is almost pure shell, and it only depends on a few POSIX
utilities. Keep note that this script makes use of files created by the kernel,
and I have not tested this script outside of Linux. So, while the script itself
is POSIX, it may not work outside of Linux.

Pseudo-filesystem identification is better on this implementation for complex
environments. Other than this, syntax and output is identical. If you are
using a simple PC, you will probably not notice any difference.


Installation
--------------------------------------------------------------------------------

To install you can simply run 'make install' or without make,

  +--------------------------------------------------------------------------+
  | $ mkdir -p /usr/local/bin /usr/local/share/man/man8                      |
  | $ cp genfstab   /usr/local/bin/genfstab                                  |
  | $ cp genfstab.8 /usr/local/share/man/man8/genfstab.8                     |
  |                                                                          |
  | $ chmod 755 /usr/local/bin/genfstab                                      |
  | $ chmod 644 /usr/local/share/man/man8/genfstab.8                         |
  +--------------------------------------------------------------------------+


Usage
--------------------------------------------------------------------------------

The syntax and usage of genfstab is the same as the Arch Linux tool.

  +--------------------------------------------------------------------------+
  | # Simply add all mounted devices to fstab                                |
  | $ genfstab >> /etc/fstab                                                 |
  |                                                                          |
  | # Only list mounted devices on /home                                     |
  | $ genfstab -f /home >> /etc/fstab                                        |
  |                                                                          |
  | # Use /mnt as root                                                       |
  | $ genfstab /mnt >> /etc/fstab                                            |
  |                                                                          |
  | # Use PARTUUID identifiers                                               |
  | $ genfstab -t PARTUUID >> /etc/fstab                                     |
  +--------------------------------------------------------------------------+

See 'genfstab --help' or the genfstab manual page for more detailed information.


References
--------------------------------------------------------------------------------
[1]: https://github.com/archlinux/arch-install-scripts

genfstab's People

Contributors

cemkeylan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rharmonson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.