Most of the time I use chroot to rescue an existing installation from usb.
When I chroot into another system I have to manually bind-mount proc, sys, dev and dev/pts by issuing for example:
mount --bind /proc proc/
Run Code Online (Sandbox Code Playgroud)
Is there an easy way already implemented in a standard Ubuntu install?
psu*_*usi 10
See the schroot package. Man Page
As an alternative, you can shorthand the bind mounting with:
for f in proc sys dev ; do mount --bind /$f /mnt/$f ; done
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11412 次 |
| 最近记录: |