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