This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
technical:programming:shell [2022/08/14 23:10] – [chroot] jc | technical:programming:shell [2022/08/17 08:26] (current) – jc | ||
---|---|---|---|
Line 7: | Line 7: | ||
<code bash> | <code bash> | ||
- | Start a Xorg server running fluxbox on display1 vt7 | + | Start a Xorg server running fluxbox on display1 vt7. |
<code bash> | <code bash> | ||
- | Start a Xorg server running emacs on display2 vt8 | + | Start a Xorg server running emacs on display2 vt8. |
<code bash> | <code bash> | ||
Line 17: | Line 17: | ||
===== chroot ===== | ===== chroot ===== | ||
- | The '' | + | The **chroot** command changes the root directory. This can be useful when repairing a system in an unbootable state. |
- | A luks encrypted volume must be decrypted before it can be mounted. The '' | + | A luks encrypted volume must be decrypted before it can be mounted. The **cryptsetup** command can be used to decrypt an luks encrypted volume. |
- | <code bash> | + | <code bash> |
- | Next the decrpyted volume will be mounted along with the '' | + | Next the decrpyted volume will be mounted along with the /proc, /sys, and /dev directories. |
<code bash> | <code bash> | ||
- | Once the volume and diretories have been mounted chroot into the new root directory. | + | With the volume and directories |
<code bash> | <code bash> | ||
- | |||
- |