genfstab

simple implementation of genfstab
git clone git://git.ckyln.com/~cem/genfstab.git
Log | Files | Refs | README | LICENSE

README (2758B)


      1 GENFSTAB
      2 --------------------------------------------------------------------------------
      3 
      4 Simplified POSIX sh implementation of the Arch Linux tool[1] with the same name.
      5 This implementation (with the exception of a single function) is pure shell,
      6 the only dependency is 'readlink' which can be found in most base utility
      7 implementations.
      8 
      9 Pseudo-filesystem identification is better on this implementation for complex
     10 environments. Other than this, syntax and output is identical. If you are
     11 using a simple PC, you will not notice any difference.
     12 
     13 
     14 Installation
     15 --------------------------------------------------------------------------------
     16 
     17 To install you can simply run 'make install' or without make,
     18 
     19   +--------------------------------------------------------------------------+
     20   | $ mkdir -p /usr/local/bin /usr/local/share/man/man8                      |
     21   | $ cp genfstab   /usr/local/bin/genfstab                                  |
     22   | $ cp genfstab.8 /usr/local/share/man/man8/genfstab.8                     |
     23   |                                                                          |
     24   | $ chmod 755 /usr/local/bin/genfstab                                      |
     25   | $ chmod 644 /usr/local/share/man/man8/genfstab.8                         |
     26   +--------------------------------------------------------------------------+
     27 
     28 
     29 Usage
     30 --------------------------------------------------------------------------------
     31 
     32 The syntax and usage of genfstab is the same as the Arch Linux tool.
     33 
     34   +--------------------------------------------------------------------------+
     35   | # Simply add all mounted devices to fstab                                |
     36   | $ genfstab >> /etc/fstab                                                 |
     37   |                                                                          |
     38   | # Only list mounted devices on /home                                     |
     39   | $ genfstab -f /home >> /etc/fstab                                        |
     40   |                                                                          |
     41   | # Use /mnt as root                                                       |
     42   | $ genfstab /mnt >> /etc/fstab                                            |
     43   |                                                                          |
     44   | # Use PARTUUID identifiers                                               |
     45   | $ genfstab -t PARTUUID >> /etc/fstab                                     |
     46   +--------------------------------------------------------------------------+
     47 
     48 See 'genfstab --help' or the genfstab manual page for more detailed information.
     49 
     50 
     51 References
     52 --------------------------------------------------------------------------------
     53 [1]: https://github.com/archlinux/arch-install-scripts