LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-13-2017, 02:08 PM   #1
dwburt
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu
Posts: 15

Rep: Reputation: Disabled
Change swap partition


I want to experiment with VMware Workstation Player and it is asking that I increase swap area. I suppose I delete the existing swap partition and create a new one with gparted. Am I on the right track? Any warnings I should be aware of?
Thx

Last edited by dwburt; 04-13-2017 at 02:09 PM. Reason: misspelled subject line
 
Old 04-13-2017, 03:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Just to be clear, is the host or the client asking this?

Either way the tasks are basically similar.

You can move partitions around from a live media maybe.

You can delete partition and make file or files or more partitions. The trick is getting the distro to mount and find and use the swap area(s) before or possibly after you boot.

https://help.ubuntu.com/community/SwapFaq
 
Old 04-13-2017, 05:51 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
No need to delete anything - simply create a new partition/swapfile and use swapon. Add it to fstab when happy. Linux is fine with multiple swap extents.
 
Old 04-13-2017, 08:35 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by syg00 View Post
No need to delete anything - simply create a new partition/swapfile and use swapon. Add it to fstab when happy. Linux is fine with multiple swap extents.
[additional $0.02 USD worth] Actually, generally swap runs slightly more efficiently if you have two or more swap partitions. It tends to use them round-robin and spread out the I/O better. This has even better effect if they are on different physical devices, but helps some even if they are on the same physical device.

That said, while the difference is measurable I have not been able to detect enough difference for the average user to notice.
 
1 members found this post helpful.
Old 04-15-2017, 01:22 AM   #5
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
I think your best bet would be to use a swap file
here is how to set one up
https://www.linux.com/news/all-about-linux-swap-space
your not tacking a chance with your permanent O/S
and you can delete it if your done with it
 
Old 04-15-2017, 01:31 AM   #6
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
the OP hasn't been back for 2 days
I wonder did he trash his system
he dose have kind of a low post count
 
Old 04-16-2017, 09:16 PM   #7
dwburt
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: Disabled
For me the important fact was that Linux can use multiple swap spaces. I had enough unallocated disk space to create a second, larger swap partition. Added a line to /fstab. Now VMware Player runs with satisfactory performance. Thanks everybody for all information.

Last edited by dwburt; 04-16-2017 at 09:18 PM.
 
Old 04-17-2017, 06:35 AM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by dwburt View Post
For me the important fact was that Linux can use multiple swap spaces. I had enough unallocated disk space to create a second, larger swap partition. Added a line to /fstab. Now VMware Player runs with satisfactory performance. Thanks everybody for all information.
Yay! Another win! Congratulations! -)
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Users unable to change password using SWAT on Slackware64 14.0 stureedy Slackware 1 10-07-2013 01:29 PM
[SOLVED] How can I change file permissions in windows ntfs partition.Even root can't change it e3399 Linux - Newbie 3 03-02-2011 10:54 PM
LVM - what if disk partition change causes the PV device file to change? catkin Linux - General 9 12-19-2008 06:43 PM
Samba (via Webmin or SWAT) unable to change pre-encrypted password requirement booberandpuzz Linux - Newbie 18 05-08-2008 09:26 PM
Change Partition Number, does UUID change? aragon127 Linux - Software 1 11-24-2006 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:02 PM.

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