linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
linux [2024/05/12 15:15] – felixonmars | linux [2024/05/13 17:38] (current) – [Mount Target System For Chroot] felixonmars | ||
---|---|---|---|
Line 18: | Line 18: | ||
==== Mount Target System For Chroot ==== | ==== Mount Target System For Chroot ==== | ||
< | < | ||
- | TARGET=/mnt | + | _target=/mnt |
- | mount /dev/sdxn $TARGET | + | mount -t proc proc $_target/proc |
- | mount -t proc proc $TARGET/proc | + | mount -t sysfs sys $_target/sys |
- | mount -t sysfs sys $TARGET/sys | + | mount -o bind /dev $_target/dev |
- | mount -o bind /dev $TARGET/dev | + | mount -t devpts pts $_target/dev/pts/ |
- | mount -t devpts pts $TARGET/dev/pts/ | + | chroot $_target |
- | chroot $TARGET | + | |
</ | </ | ||
linux.txt · Last modified: 2024/05/13 17:38 by felixonmars