mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-09 10:40:34 -05:00
19 lines
No EOL
626 B
Markdown
19 lines
No EOL
626 B
Markdown
---
|
|
date: 2020-11-29 15:52:07
|
|
draft: false
|
|
medium_enabled: true
|
|
medium_post_id: 37f5b4c46ae8
|
|
tags:
|
|
- Linux
|
|
title: Chroot and Virtual Filesystems
|
|
---
|
|
|
|
When running applications under a [`chroot`](https://en.wikipedia.org/wiki/Chroot) environment, it can be annoying when certain [virtual filesystems](https://opensource.com/article/19/3/virtual-filesystems-linux) are unavailable. Here are the commands to mount the most common ones:
|
|
|
|
```bash
|
|
sudo mount -t proc /proc /mnt/root/proc
|
|
sudo mount -o bind /sys /mnt/root/sys
|
|
sudo mount -o bind /dev /mnt/root/dev
|
|
```
|
|
|
|
Source: [ArchWiki](https://wiki.archlinux.org/index.php/chroot) |