User Tools

Site Tools


linux

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
linux [2017/01/05 06:41] – created felixonmarslinux [2018/10/19 18:32] felixonmars
Line 6: Line 6:
 chown root:root $SWAPFILE chown root:root $SWAPFILE
 chmod 0600 $SWAPFILE chmod 0600 $SWAPFILE
 +swapon $SWAPFILE
 +</code>
 +
 +=== Add to /etc/fstab to make it persistent ===
 +<code>
 +echo "$SWAPFILE none swap sw 0 0" >> /etc/fstab
 </code> </code>
  
 ==== Mount Target System For Chroot ==== ==== Mount Target System For Chroot ====
 <code> <code>
-TARGET=/target+TARGET=/mnt
 mount /dev/sdxn $TARGET mount /dev/sdxn $TARGET
 mount -t proc proc $TARGET/proc mount -t proc proc $TARGET/proc
Line 74: Line 80:
 <code> <code>
 echo "noop" > /sys/block/`readlink /dev/disk/by-uuid/$UUID|sed "s/.*\(sd[a-z]\).*/\1/"`/queue/scheduler echo "noop" > /sys/block/`readlink /dev/disk/by-uuid/$UUID|sed "s/.*\(sd[a-z]\).*/\1/"`/queue/scheduler
 +</code>
 +
 +==== Install Artful Kernel (4.13) on Xenial ====
 +<code>
 +echo 'deb http://archive.ubuntu.com/ubuntu/ artful main' >> /etc/apt/sources.list.d/artful.list
 +echo -e 'Package: *\nPin: release a=artful\nPin-Priority: 100\n' >> /etc/apt/preferences.d/artful.pref
 +apt-get update
 +apt-get install -t artful linux-image-generic linux-generic linux-headers-generic linux-libc-dev
 </code> </code>
  
Line 80: Line 94:
   * http://apt-blog.net/backup_or_migrate_linux_system_using_tar   * http://apt-blog.net/backup_or_migrate_linux_system_using_tar
   * http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/   * http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
 +  * https://axebase.net/blog/2016/12/27/zesty-kernel-in-yakkety-und-xenial/
linux.txt · Last modified: 2020/05/11 13:15 by felixonmars