1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 17:19:47 +01:00
tldr/pages/linux/switch_root.md
K.B.Dharun Krishna 1de9190d63
pages.*: standardize capitalization in note term (#12195)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-05 12:34:49 +05:30

14 lines
507 B
Markdown

# switch_root
> Use a different filesystem as the root of the mount tree.
> Note: switch_root will fail to function if the new root is not the root of a mount. Use bind-mounting as a workaround.
> See also: `chroot`, `mount`.
> More information: <https://manned.org/switch_root.8>.
- Move `/proc`, `/dev`, `/sys` and `/run` to the specified filesystem, use this filesystem as the new root and start the specified init process:
`switch_root {{new_root}} {{/sbin/init}}`
- Display help:
`switch_root -h`