2005-05-02 15:01:42 +02:00
|
|
|
.TH PRINTROOT 8
|
|
|
|
.SH NAME
|
|
|
|
printroot \- print the name of the root device on standard output
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBprintroot\fR
|
|
|
|
.br
|
|
|
|
.de FL
|
|
|
|
.TP
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
\\$2
|
|
|
|
..
|
|
|
|
.de EX
|
|
|
|
.TP 20
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
# \\$2
|
|
|
|
..
|
|
|
|
.SH OPTIONS
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 5
|
|
|
|
.B \-r
|
|
|
|
# Print only the root device, not a full mtab line
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH EXAMPLES
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 20
|
|
|
|
.B printroot
|
|
|
|
# Print the name of the root device
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
.I Printroot
|
|
|
|
is useful for initializing the \fI/etc/mtab\fR when the system is booted.
|
|
|
|
It figures out what the root device is by searching \fI/dev\fR until it
|
|
|
|
finds a block special file with the right major/minor device numbers.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR fstab (5),
|
|
|
|
.BR boot (8).
|