LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-30-2006, 04:49 PM   #1
baphomet11
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Fedora core 5, partitioning


I need a command to partition swap space On a Fedora core 5 install

The unpartitioned space is already available.
Does fedora 5 use swap partitions in the same way as redhats earlier distros.

And finally about how much swap is optimal w/ 220 mgs of ram.

Thanks
 
Old 05-30-2006, 05:21 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Hi, yes you will need swap, roughly 2.5 x your ram (550Mb) is widely considered to be right.
Use the Installer's partition manager (the 4th option in the drop down list), add swap space, then add a / (root) partition (use all remaining free space) for a sound basic installation.
If windows is installed, take care not to accidentally format or delete it.

edit: there is a dedicated forum for fedora, your post would get more replys there (probably)

edit: allow me to be the first to say "Welcome to LQ"

Last edited by Tuttle; 05-30-2006 at 05:25 PM.
 
Old 05-30-2006, 06:00 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,739

Rep: Reputation: 298Reputation: 298Reputation: 298
How much swap depends on two things: how much ram do you have to work with, and what kind of work are you doing that might max out the ram.

The more ram you have (1, 2, or more gig of ram), the less likely you will ever see swap in use unless you are doing something ram intensive, such as editing bit-mapped graphics or sound files.

The less ram you have (512 meg or less), the more likely you will need swap.

General rule of thumb: If ram is less than 1 gig, make your swap equal to or greater than the amount of ram (up to twice the size of ram, or more if working with sound or bit-mapped graphics).

If Fedora is already installed, and you need to format free space for swap, try cfdisk. It's text-based ala dos. It will show you partitions and free space. Use the arrow keys to move up or down the list. Select free space. Use the tab key to move among the options at the bottom of the screen to select format. You will have options of what to format it for. Select swap. Select Write and press enter to write the new partition table. Then Exit.

It would be a good idea to reboot before anything else to commit the changes, otherwise, you may end up with overlapping partitions. Reason: the partition table in use is the one you booted up with. The new table isn't recognized until you reboot, or something to that effect. I remade some partitions once without the reboot, and really screwed things up. Took quite a bit of research to learn my error. And quite a bit more work (including a reinstall and restoration of a backup) to correct my error.
 
Old 05-30-2006, 07:12 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,692
Blog Entries: 1

Rep: Reputation: 217Reputation: 217Reputation: 217
If you have a free partition with FC5 already installed, from the terminal logged in as root, enter:

mkswap /dev/hdXn (Xn is the partition to use for swap)
swapon

If you don't have a free partition, but you have free raw formatted space, from the terminal logged in as root, enter:

fdisk /dev/hdXn
n (to create new partition, then answer the questions)
w (to commit the changes)
mkswap /dev/hdXn
swapon

You'll also need to edit /etc/fstab to have the swap space mounted during boot. Add a line such as:

/dev/hdXn none swap sw 0 0

Unless, of course, you want to swapon every time you boot.
 
  


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
Upgrade Fedora Core 4 (FC4) to Fedora Core 5 (FC5) hangs vogelap Fedora - Installation 10 05-22-2006 09:00 AM
can fedora core 4 be upgraded to fedora core 5 without a full reinstall lcornea Linux - Software 2 05-10-2006 07:58 AM
Problem Installing Fedora Core 2 (Partitioning Issue) trickflip Linux - Software 11 09-04-2004 12:03 AM
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration