1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
|
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-03-29 09:53+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "SWAPON"
msgstr ""
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "2022-05-11"
msgstr ""
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "util-linux 2.38.1"
msgstr ""
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "System Administration"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "NAME"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"swapon, swapoff - enable/disable devices and files for paging and swapping"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "SYNOPSIS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<swapon> [options] [I<specialfile>...]"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<swapoff> [B<-va>] [I<specialfile>...]"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "DESCRIPTION"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<swapon> is used to specify devices on which paging and swapping are to "
"take place."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The device or file used is given by the I<specialfile> parameter. It may be "
"of the form B<-L> I<label> or B<-U> I<uuid> to indicate a device by label or "
"uuid."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Calls to B<swapon> normally occur in the system boot scripts making all swap "
"devices available, so that the paging and swapping activity is interleaved "
"across several devices and files."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<swapoff> disables swapping on the specified devices and files. When the B<-"
"a> flag is given, swapping is disabled on all known swap devices and files "
"(as found in I</proc/swaps> or I</etc/fstab>)."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "OPTIONS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-a>, B<--all>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"All devices marked as \"swap\" in I</etc/fstab> are made available, except "
"for those with the \"noauto\" option. Devices that are already being used as "
"swap are silently skipped."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-d>, B<--discard>[B<=>I<policy>]"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Enable swap discards, if the swap backing device supports the discard or "
"trim operation. This may improve performance on some Solid State Devices, "
"but often it does not. The option allows one to select between two available "
"swap discard policies:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--discard=once>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"to perform a single-time discard operation for the whole swap area at "
"swapon; or"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--discard=pages>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"to asynchronously discard freed swap pages before they are available for "
"reuse."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If no policy is selected, the default behavior is to enable both discard "
"types. The I</etc/fstab> mount options B<discard>, B<discard=once>, or "
"B<discard=pages> may also be used to enable discard flags."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-e>, B<--ifexists>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Silently skip devices that do not exist. The I</etc/fstab> mount option "
"B<nofail> may also be used to skip non-existing device."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-f>, B<--fixpgsz>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Reinitialize (exec mkswap) the swap space if its page size does not match "
"that of the current running kernel. B<mkswap>(8) initializes the whole "
"device and does not check for bad blocks."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-L> I<label>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Use the partition that has the specified I<label>. (For this, access to I</"
"proc/partitions> is needed.)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-o>, B<--options> I<opts>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Specify swap options by an I<fstab>-compatible comma-separated string. For "
"example:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<swapon -o pri=1,discard=pages,nofail /dev/sda2>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The I<opts> string is evaluated last and overrides all other command line "
"options."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-p>, B<--priority> I<priority>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Specify the priority of the swap device. I<priority> is a value between -1 "
"and 32767. Higher numbers indicate higher priority. See B<swapon>(2) for a "
"full description of swap priorities. Add B<pri=>I<value> to the option field "
"of I</etc/fstab> for use with B<swapon -a>. When no priority is defined, it "
"defaults to -1."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-s>, B<--summary>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Display swap usage summary by device. Equivalent to B<cat /proc/swaps>. This "
"output format is DEPRECATED in favour of B<--show> that provides better "
"control on output data."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--show>[B<=>I<column>...]"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Display a definable table of swap areas. See the B<--help> output for a list "
"of available columns."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--output-all>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Output all available columns."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--noheadings>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Do not print headings when displaying B<--show> output."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--raw>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Display B<--show> output without aligning table columns."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--bytes>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Display swap size in bytes in B<--show> output instead of in user-friendly "
"units."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-U> I<uuid>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Use the partition that has the specified I<uuid>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-v>, B<--verbose>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Be verbose."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-h>, B<--help>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Display help text and exit."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-V>, B<--version>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Print version and exit."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "EXIT STATUS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<swapoff> has the following exit status values since v2.36:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<0>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "success"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<2>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "system has insufficient memory to stop swapping (OOM)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<4>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<swapoff>(2) syscall failed for another reason"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<8>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "non-B<swapoff>(2) syscall system error (out of memory, ...)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<16>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "usage or syntax error"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<32>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "all swapoff failed on B<--all>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<64>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "some swapoff succeeded on B<--all>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The command B<swapoff --all> returns 0 (all succeeded), 32 (all failed), or "
"64 (some failed, some succeeded)."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"+ The old versions before v2.36 has no documented exit status, 0 means "
"success in all versions."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "ENVIRONMENT"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<LIBMOUNT_DEBUG>=all"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "enables B<libmount> debug output."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<LIBBLKID_DEBUG>=all"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "enables B<libblkid> debug output."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "FILES"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "I</dev/sd??>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "standard paging devices"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "I</etc/fstab>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "ascii filesystem description table"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "NOTES"
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Files with holes"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The swap file implementation in the kernel expects to be able to write to "
"the file directly, without the assistance of the filesystem. This is a "
"problem on files with holes or on copy-on-write files on filesystems like "
"Btrfs."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Commands like B<cp>(1) or B<truncate>(1) create files with holes. These "
"files will be rejected by B<swapon>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Preallocated files created by B<fallocate>(1) may be interpreted as files "
"with holes too depending of the filesystem. Preallocated swap files are "
"supported on XFS since Linux 4.18."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The most portable solution to create a swap file is to use B<dd>(1) and I</"
"dev/zero>."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Btrfs"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Swap files on Btrfs are supported since Linux 5.0 on files with B<nocow> "
"attribute. See the B<btrfs>(5) manual page for more details."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "NFS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Swap over B<NFS> may not work."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Suspend"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<swapon> automatically detects and rewrites a swap space signature with old "
"software suspend data (e.g., B<S1SUSPEND>, B<S2SUSPEND>, ...). The problem "
"is that if we don\\(cqt do it, then we get data corruption the next time an "
"attempt at unsuspending is made."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "HISTORY"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "The B<swapon> command appeared in 4.0BSD."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "SEE ALSO"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<swapoff>(2), B<swapon>(2), B<fstab>(5), B<init>(8), B<fallocate>(1), "
"B<mkswap>(8), B<mount>(8), B<rc>(8)"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "REPORTING BUGS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "For bug reports, use the issue tracker at"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "AVAILABILITY"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The B<swapon> command is part of the util-linux package which can be "
"downloaded from"
msgstr ""
|