Skip to content

Commit 16870c9

Browse files
zhb4Managorsebastiaanspeckivanbaluta
authored
pivot_root: add page (#19673)
* Create pivot_root.md * Update pivot_root.md * Update pivot_root.md * Update pages/linux/pivot_root.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pivot_root.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pivot_root.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pivot_root.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pivot_root.md Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com> * Update pages/linux/pivot_root.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com>
1 parent 5a38d5f commit 16870c9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pages/linux/pivot_root.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# pivot_root
2+
3+
> Change the root filesystem to a new directory and move the current root to a subdirectory of the new root.
4+
> Commonly used during system initialization (e.g., in `initramfs`) to switch from a temporary root to the real root filesystem.
5+
> More information: <https://manned.org/pivot_root.8>.
6+
7+
- Make `/new_root` the new root (`/`) and move current root to a subdirectory of it:
8+
9+
`sudo pivot_root {{path/to/new_root}} {{path/to/new_root/old_root}}`
10+
11+
- Display help:
12+
13+
`pivot_root {{[-h|--help]}}`

0 commit comments

Comments
 (0)