Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-07-2003, 10:05 PM   #1
LQ Newbie
Registered: Sep 2003
Location: FallRiver Mass
Posts: 16

Rep: Reputation: 0
Swap Dir.....

I installed RedHat 9 with dual boot of win 98 .... i dident set up a a swap dir when i installed because i wanted the most space i could get out of a 6 gig drive.... but i also had a 1 gig hard dirve that i formated into a swap and a ext3 (500 megs each) but i am not sure that redhat is using it... how can i tell .... and if its not using it how do i set it up with out reinstalling redhat if possable?????....... also how do i load RedHat with out the GUI .. and just command prompt???
Old 10-07-2003, 11:04 PM   #2
Registered: Aug 2002
Posts: 16,499

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
There are several ways to verify that RH is using a swap.

Look at the output of the console command free. If you see a number other then zero for total swap space you are. Or look at the /etc/fstab file. If you see something like
/dev/hdax swap swap defaults 0 0

The swap partition should be enabled.

To add an existing swap partition add the above fstab line to your fstab line. Change /dev/hdax to match the drive / partition ID. The next time you reboot swap will be enabled. To enable swap with out rebooting use this command

swapon /dev/hdax (Again change device to match actual swap partition)

To see which partition is the swap look at the output of the fdisk command. Log in as root

fdisk -l (Thats a small L)
The partition filesystem type will indicate if its a swap.

If it turns out that you don't have a swap partition and you don't want to repartition etc. you can create a swap file.

To boot with out a GUI edit the /etc/inittab file and change the runlevel from 5 to 3.
Old 10-08-2003, 12:32 AM   #3
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
Nice info there michaelk, I learned something new.


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
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 01:57 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM
krecipes and ./configure -with-qt-dir=DIR disco rugby Linux - Software 4 06-13-2004 10:06 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:48 AM.

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