LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-12-2013, 03:23 AM   #1
asklinux
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
Can swapoff -a be reverted ?


Hello,

I accidently executed the "swapoff -a" command in my Ubuntu server.

Is there a way to revert this command ?

Server restart was not performed yet after the command.

Thanks
 
Old 08-12-2013, 03:26 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Counterpart would be: swapon

Code:
swapon -a
 
1 members found this post helpful.
Old 08-12-2013, 03:29 AM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
man swapoff, man swapon

Code:
swapoff -a
inverse...

Code:
swapon -a
 
1 members found this post helpful.
Old 08-12-2013, 03:33 AM   #4
asklinux
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you all
 
Old 08-12-2013, 03:41 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You're welcome.

BTW: Can you put up the [SOLVED] tag (upper right corner or the Thread Tools link).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] XFCE reverted to default desktop without my having changed it... the_penguinator Slackware 7 11-28-2012 09:18 PM
[SOLVED] Files disappear & are reverted to original lpallard Slackware 3 10-20-2010 11:44 AM
[SOLVED] Reverted to 13 stable from -current and got a problem with locales Affromen Slackware 23 03-11-2010 06:39 PM
Have rudimentary knowledge of Linux. Reverted to Windows. Would like to try again. SonOfOrbo Linux - Newbie 6 10-01-2009 08:30 AM
clock is reverted to old time after reboot on FC6 powah Linux - General 1 02-28-2008 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration