User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2024/05/12 15:13] felixonmarslinux [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 ====
 <code> <code>
-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+
 </code> </code>
  
 ==== ZSWAP ==== ==== ZSWAP ====
 +Configuration:
 <code> <code>
 grep -r . /sys/module/zswap/parameters/ grep -r . /sys/module/zswap/parameters/
 +</code>
 +Stats:
 +<code>
 +grep -r . /sys/kernel/debug/zswap/
 </code> </code>
  
linux.1715526799.txt.gz · Last modified: 2024/05/12 15:13 by felixonmars