File: genfstab.adoc

package info (click to toggle)
arch-install-scripts 21-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 180 kB
  • sloc: sh: 403; makefile: 35
file content (46 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
genfstab(1)
===========
:doctype: manpage

NAME
----
genfstab - script to generate an fstab file based on mounted partitions


SYNOPSIS
--------
*genfstab* ['options'] 'root'


OPTIONS
-------
*-f* 'FILTER'::
 Restrict output to mountpoints matching the prefix FILTER
*-L*::
 Use labels for source identifiers (shortcut for '-t LABEL')
*-p*::
 Exclude pseudofs mounts (default behavior)
*-P*::
 Include pseudofs mounts
*-t* 'TAG'::
 Use TAG for source identifiers.  Common options for TAG include: 'LABEL', 'UUID', 'PARTLABEL', 'PARTUUID'
*-U*::
 Use UUIDs for source identifiers (shortcut for '-t UUID')
*-h*::
 Print the help message


DESCRIPTION
-----------
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.


EXAMPLES
--------

To generate an fstab file using UUIDs as identifiers, run:

```
genfstab -U /media/testing >> /media/testing/etc/fstab
```