chroot:mounting_dev_in_a_chroot_environment
Differences
This shows you the differences between two versions of the page.
chroot:mounting_dev_in_a_chroot_environment [2016/07/16 20:57] – created peter | chroot:mounting_dev_in_a_chroot_environment [2019/11/26 21:58] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== chroot - Mounting /dev in a chroot environment ====== | ||
- | |||
- | When working in a chrooted environment, | ||
- | |||
- | For instance, grub will need to access your disk devices.... | ||
- | |||
- | While most special file systems might be mounted with: | ||
- | |||
- | <code bash> | ||
- | mount fstype -t fstype / | ||
- | </ | ||
- | |||
- | Where fstype will be sysfs, proc, /dev is not following this rule. | ||
- | |||
- | In order to mirror /dev, you will need to actually bind / | ||
- | |||
- | This can be done through the following command: | ||
- | |||
- | <code bash> | ||
- | mount --bind /dev / | ||
- | </ | ||
- | |||
- | Or to make it shorter: | ||
- | |||
- | <code bash> | ||
- | mount -B /dev / | ||
- | </ | ||
- | |||
- | Now, **/ | ||
chroot/mounting_dev_in_a_chroot_environment.1468702628.txt.gz · Last modified: 2020/07/15 09:30 (external edit)