website/content/blog/chrootvirtfilesystem.md

19 lines
609 B
Markdown
Raw Normal View History

2020-11-29 18:54:46 +00:00
---
title: "Chroot and Virtual Filesystems"
date: 2020-11-29T10:52:07-05:00
draft: false
2022-01-02 19:24:29 +00:00
tags: ["Linux"]
2023-01-05 19:04:45 +00:00
medium_enabled: true
2020-11-29 18:54:46 +00:00
---
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)