website/content/blog/chrootvirtfilesystem.md

19 lines
626 B
Markdown
Raw Permalink Normal View History

2020-11-29 13:54:46 -05:00
---
2023-03-10 12:41:04 -05:00
date: 2020-11-29 15:52:07
2020-11-29 13:54:46 -05:00
draft: false
2023-01-05 14:04:45 -05:00
medium_enabled: true
2023-03-10 12:41:04 -05:00
medium_post_id: 37f5b4c46ae8
tags:
- Linux
title: Chroot and Virtual Filesystems
2020-11-29 13:54:46 -05: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
```
2023-03-10 12:41:04 -05:00
Source: [ArchWiki](https://wiki.archlinux.org/index.php/chroot)