linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux [2024/05/12 15:13] – 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 | + | |
</ | </ | ||
==== ZSWAP ==== | ==== ZSWAP ==== | ||
+ | Configuration: | ||
< | < | ||
grep -r . / | grep -r . / | ||
+ | </ | ||
+ | Stats: | ||
+ | < | ||
+ | grep -r . / | ||
</ | </ | ||
linux.1715526799.txt.gz · Last modified: 2024/05/12 15:13 by felixonmars