/util-linux/sys-utils/switch_root.8
Unknown | 48 lines | 44 code | 4 blank | 0 comment | 0 complexity | 295bae7992599ac710fbb666b11856e7 MD5 | raw file
Possible License(s): GPL-3.0, AGPL-3.0, GPL-2.0, MPL-2.0, JSON, WTFPL, CC-BY-SA-4.0, CC-BY-3.0, BSD-3-Clause, LGPL-2.0, MPL-2.0-no-copyleft-exception, AGPL-1.0, 0BSD, Zlib, Unlicense, BSD-2-Clause, Apache-2.0, LGPL-3.0, ISC, MIT, CC-BY-SA-3.0, CC0-1.0, LGPL-2.1
- .\" Karel Zak <kzak@redhat.com>
- .TH SWITCH_ROOT 8 "June 2009" "Linux"
- .SH NAME
- switch_root \- switch to another filesystem as the root of the mount tree.
- .SH SYNOPSIS
- .B switch_root
- .RB [ \-hV ]
- .LP
- .B switch_root
- .I newroot
- .I init
- .RI [ arg ...]
- .SH DESCRIPTION
- .B switch_root
- moves already mounted /proc, /dev and /sys to
- .I newroot
- and makes
- .I newroot
- the new root filesystem and starts
- .I init
- process.
- .B WARNING: switch_root removes recursively all files and directories on the current root filesystem.
- .SH OPTIONS
- .IP "\fB\-h, \-\-help\fP"
- show help and exit
- .IP "\fB\-V, \-\-version\fP"
- show version number and exit
- .SH RETURN VALUE
- .B switch_root
- returns 0 on success and 1 on failure.
- .SH "SEE ALSO"
- .BR mount (8)
- .BR chroot (2)
- .BR init (8)
- .BR mkinitrd (8)
- .SH AUTHORS
- .nf
- Peter Jones <pjones@redhat.com>
- Jeremy Katz <katzj@redhat.com>
- Karel Zak <kzak@redhat.com>
- .fi
- .SH AVAILABILITY
- The switch_root command is part of the util-linux-ng package and is available from
- ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.