Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th April 2012, 03:43 PM
eaglelinux's Avatar
eaglelinux Offline
Registered User
 
Join Date: Jun 2011
Posts: 158
linuxchrome
Swap space after Fedora installation !

Hello !

How to create " Swap Space " after Fedora installation, any suggestion ?

Thanks !
Reply With Quote
  #2  
Old 26th April 2012, 03:52 PM
William Haller Offline
Registered User
 
Join Date: Jul 2005
Age: 52
Posts: 1,013
linuxchrome
Re: Swap space after Fedora installation !

man mkswap

You can either use a partition or create a file with the suitable amount of swap space you want to add and add the entry into /etc/fstab. See the notes at the end of the man page for creating a swap area from a file.

Also see swapon and swapoff.
Reply With Quote
  #3  
Old 26th April 2012, 04:41 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,716
linuxfirefox
Re: Swap space after Fedora installation !

You can create a swap file (as detailed in the mkswap manual page), but beware that swap files come with caveats – in particular hibernate will not work without some serious messing around.

It is generally considered much better to have one or more dedicated swap partitions. You can create them with the fdisk implementation of your choice, or GParted if you prefer a graphical method. This does require free (unpartitioned) space on the disk though. If you have multiple disks, creating a swap partition on each is a good idea, as the kernel can spread the load between them which is potentially faster.

If you want hibernate to work (which is really the main purpose of swap in these days of massive RAM), you need at least as much swap as RAM – the traditional recommendation is 2 x RAM.

Once you've created the swap partition, you need to add it to /etc/fstab. Do the following for each swap partition:

1) Create a partition to use. For a partition, use GParted unless you're comfortable with something more technical, or using LVM. GParted will format the partition for you, but other tools generally won't so you need to do that on the command line. Open a terminal and run:
Code:
sudo mkswap /dev/sdxn
where /dev/sdxn is your newly created swap partition.

2) Enable the swap partition now (so you don't need to reboot to use it):
Code:
sudo swapon /dev/sdxn
3) Get the partition's UUID:
Code:
blkid /dev/sdxn
This should output a line including 'UUID="blahblahblah"'

4) Add the swap partition to the end of /etc/fstab so future boots remember it:
Code:
UUID=blahblahblah    swap    swap    defaults    0    0
Reply With Quote
  #4  
Old 1st May 2012, 01:01 PM
eaglelinux's Avatar
eaglelinux Offline
Registered User
 
Join Date: Jun 2011
Posts: 158
linuxchrome
Re: Swap space after Fedora installation !

Thank you for your help !

My problem now is solved !

Bye !
Reply With Quote
  #5  
Old 14th May 2013, 10:06 PM
slawe Offline
Registered User
 
Join Date: Feb 2013
Location: Doboj
Posts: 2
linuxfirefox
Re: Swap space after Fedora installation !

thanks from me
Reply With Quote
Reply

Tags
fedora, installation, space, swap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
why fedora uses swap space??? Nyan Using Fedora 2 9th December 2009 02:04 PM
crashing swap space or swap command ? mnisay Servers & Networking 2 18th January 2006 04:01 PM
Swap space help sebkg Installation and Live Media 3 26th August 2005 02:18 AM
Fedora Core 3 bootup stops after "Enabling Swap Space" kwarrior Using Fedora 11 28th April 2005 10:33 AM


Current GMT-time: 03:22 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat