Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

While following this guide to installing Arch Linux the reader is instructed to execute the following command:

genfstab -U -p /mnt >> /mnt/etc/fstab

It is stated the the -U option uses UUID's over labels, but what does the -p option do? I have Googled it and can only find a page on fstab itself, not its generator. Arch includes no manpage on the subject... if anyone knows where docs on genfstab are, can they please provide a link? If not, can someone tell me what the options are or what the options do (primarily the -p switch)?

share|improve this question
2  
genfstab --help –  strugee Apr 14 at 17:51

1 Answer 1

up vote 8 down vote accepted

As it's states in usage section, -p will skip pseudofs mounts (tmpfs, autofs and others):

usage: genfstab [options] root

Options:
-L             Use labels for source identifiers (shortcut for -t LABEL)
-p             Avoid printing pseudofs mounts
-t TAG         Use TAG for source identifiers
-U             Use UUIDs for source identifiers (shortcut for -t UUID)

-h             Print this help message

genfstab generates output suitable for addition to an fstab file based on the devices mounted under the mountpoint specified by the given root.

You can check details in it's source code: https://projects.archlinux.org/arch-install-scripts.git/tree/genfstab.in

share|improve this answer
    
is that a man page? is the problem simply that arch doesnt include the man for this command? or was this obtained from the provided link? –  Konner Rasmussen Apr 14 at 17:38
1  
Yes, Arch doesn't provide man-page for genfstab. And you can get this if you run genfstab without parameters or genfstab -h. It's quite common for short scripts to contains full usage explanation (because there is too few options to bother with man). –  diffycat Apr 14 at 17:43
    
awesome! thanks much =) –  Konner Rasmussen Apr 14 at 17:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.