Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. ### CONTENUTO /ETC/FSTAB :
  2.  
  3. LABEL=writable / ext4 defaults 0 0
  4. LABEL=system-boot /boot/firmware vfat defaults 0 1
  5. /dev/sda1 /media/usb ext4 defaults 0 0 ## monta l'usb all'avvio
  6. $SWAP none swap defaults 0 0 ## dovrebbe montare la swap all'avvio
  7.  
  8. -----------------------------------------
  9.  
  10. #### LA SWAP E' STATA CREATA COSI
  11.  
  12. SWAP=/media/usb/swap
  13. swapoff -a
  14. fallocate -l 6000M "$SWAP"
  15. mkswap "$SWAP"
  16. chmod 0600 "$SWAP"
  17. swapon "$SWAP"
  18.  
  19. echo "$SWAP none swap defaults 0 0" >> /etc/fstab ###montaggio al riavvio
  20. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement