'\" t .\" Title: genfstab .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 1.5.8 .\" Date: 2019-01-11 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "GENFSTAB" "1" "2019-01-11" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" genfstab \- script to generate an fstab file based on mounted partitions .SH "SYNOPSIS" .sp \fBgenfstab\fP [\fIoptions\fP] \fIroot\fP .SH "OPTIONS" .sp \fB\-f\fP \fIFILTER\fP .RS 4 Restrict output to mountpoints matching the prefix FILTER .RE .sp \fB\-L\fP .RS 4 Use labels for source identifiers (shortcut for \fI\-t LABEL\fP) .RE .sp \fB\-p\fP .RS 4 Exclude pseudofs mounts (default behavior) .RE .sp \fB\-P\fP .RS 4 Include pseudofs mounts .RE .sp \fB\-t\fP \fITAG\fP .RS 4 Use TAG for source identifiers. Common options for TAG include: \fILABEL\fP, \fIUUID\fP, \fIPARTLABEL\fP, \fIPARTUUID\fP .RE .sp \fB\-U\fP .RS 4 Use UUIDs for source identifiers (shortcut for \fI\-t UUID\fP) .RE .sp \fB\-h\fP .RS 4 Print the help message .RE .SH "DESCRIPTION" .sp One can use genfstab to generate fstab entries for mounted partitions given a filesystem root. This can be useful when installing or chrooting into a broken installation. .SH "EXAMPLES" .sp To generate an fstab file using UUIDs as identifiers, run: .sp .if n .RS 4 .nf genfstab \-U /media/testing >> /media/testing/etc/fstab .fi .if n .RE