LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2008, 12:02 AM   #1
hakeem
LQ Newbie
 
Registered: Nov 2002
Location: Colombo, Sri-Lanka.
Distribution: Redhat version(s)
Posts: 11

Rep: Reputation: 0
Want to create the SWAP now, but FC6 Installation done without


Hello, I am trying Linux after 2003 & still a newbie. [searched for similar threads but available ones
are not on FC6 & bit confusing, hence post this new]

1. I just installed Fed. Core6 to a 21GB partition named 'SDA12'. In this process, I had to skip the SWAP as I didnt know how to create one.[I have WinXP as my primary OS]
Can I create it now?

2. What should be the correct procedure to create one when installing FC6? When I tried to create the SWAP in '/' it didnot allow me saying not enough space!

Plz. advise. /Tks n regds.

Last edited by hakeem; 01-16-2008 at 12:07 AM.
 
Old 01-16-2008, 04:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
swap would be created by default, there is no special way to do it. swap is conventionally it's own partition, it's not created in / or anything, it's in a different primary or logical partition completely. if you don't have spare unallocated disk space i'd say that it's too late at your level to create a partition, but you can create a swap *file* instead...

dd if=/dev/urandom of=/swapfile bs=1024 count=512
mkswap /swapfile

this will create a 512mb file and then convert it to swap space.

this will create a file as you seemed to be expecting, but is less desirable due to the overhead of going through a parent filesystem. but it'll work. once that's done just add a line to /etc/fstab...

/swapfile swap swap 0 0

and on reboot it should load. you can also directly load it with...

swapon /swapfile

without the reboot
 
Old 01-17-2008, 05:43 AM   #3
hakeem
LQ Newbie
 
Registered: Nov 2002
Location: Colombo, Sri-Lanka.
Distribution: Redhat version(s)
Posts: 11

Original Poster
Rep: Reputation: 0
Dear Chris,

On which file I apply your command instructions..? Honestly,
I do not know when/where to try this.. Is it a script that I have to edit in vim first & save & run??

FC6 boots & works fine, so shall I use it like that or do I really need to create
a swap file due to any special reasons??

Tks in adv. for your valuable time./Regds.
 
Old 01-17-2008, 06:12 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
if things are ok, no you don't *need* to at all. you would just run the dd and mkswap commands as root exactly as is.
 
  


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
oracle 10g client on fedora core 6 installation, how to create swap area kaushikgm Linux - Newbie 1 08-11-2007 04:22 AM
FC6 Raid 1 on /, /boot, and swap sephiro499 Fedora 4 12-23-2006 04:37 AM
Sharing swap between FC6 and Ubuntu Regulus Ubuntu 4 11-04-2006 08:08 AM
How doe I create a swap file in SUSE 10 after the installation? promo3000 SUSE / openSUSE 4 08-15-2006 12:20 AM


All times are GMT -5. The time now is 12:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration