Difference between revisions of "/swap.img"

From wikieduonline
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* <code>[[swapon]]</code>
 
* <code>[[swapon]]</code>
  
 +
 +
  [[swapon -s]]
 +
  Filename Type Size Used Priority
 +
  [[/swap.img]]                              file    2023420 104312 -2
 +
 +
 +
[[/etc/fstab]]
 +
/swap.img none swap [[sw]] 0 0
 +
 +
[[/etc/fstab]]
 +
/swap.img none swap 0 0
  
  
 
  Failed deactivating swap. /swap.img
 
  Failed deactivating swap. /swap.img
  
  [[swapoff -a]]
+
  [[swapoff -a]] (disable all swaps from [[/proc/swaps]])
 
  [[truncate]] -s 500MB /swap.img
 
  [[truncate]] -s 500MB /swap.img
  
Line 12: Line 23:
 
* <code>[[/etc/fstab]]</code>
 
* <code>[[/etc/fstab]]</code>
 
* [[No space left on device]]
 
* [[No space left on device]]
 +
* <code>[[/swapfile]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 15:26, 24 August 2023


 swapon -s
 Filename				Type		Size	Used	Priority
 /swap.img                              file    	2023420	104312	-2


/etc/fstab
/swap.img	none	swap	sw	0	0
/etc/fstab
/swap.img	none	swap	0	0


Failed deactivating swap. /swap.img
swapoff -a (disable all swaps from /proc/swaps)
truncate -s 500MB /swap.img

Related terms[edit]

See also[edit]

Advertising: