also @ TechSpot: Fair Labor Association begins inspections of Foxconn at Apple's request
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Collaborate in the cloud with Office, Exchange, SharePoint, and Lync

Linux Swap partition

Thread Tools Search this Thread
  #1  
Old 09-08-2003
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
Linux Swap partition

Hey guys, i realized today after class that during my install i NEVER formatted my Swap parition.

My teacher said that this means im running with out one now, even though i have the partition made.

Is there a way with out having to reinstall to format this swap to make it functional?

Thanks.
  #2  
Old 09-08-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
you created a swap partition but never formatted it?

try issuing this command:

free

you should see memory useage stats... if you don't see any mention of Swap: then you have no swap file running.

[root@fishbone root]# free
total used free shared buffers cached
Mem: 127440 120876 6564 0 54492 10912
-/+ buffers/cache: 55472 71968
Swap: 1052248 43084 1009164


If this is so, post back and we will tell you how format it.
  #3  
Old 09-08-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
oh, is the partition mentioned in /etc/fstab??

ie:

[root@fishbone root]# more /etc/fstab
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/html /html ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
  #4  
Old 09-08-2003
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
total used free shared buffers cached
Mem: 515612 201592 314020 0 16652 100200
-/+ buffers/cache: 84740 430872
Swap: 0 0 0

it mentions it...but its all 0's
  #5  
Old 09-08-2003
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
infy@inferno-linux:~$ more /etc/fstab
/dev/hdb1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
  #6  
Old 09-08-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
Here is the Red Hat Guide on How to Install a Swap partition properly, by creating it, etc:

http://www.redhat.com/docs/manuals/l...ap-adding.html

That tells you everything I think you will need to know.
  #7  
Old 09-08-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
...and yes, it looks like you have not got an initialised swap partition.

This probably doesn't matter too much if you have like 1 GB or so of RAM, but I would add one just anyway. Linux kernel is very good about not using swap file or partition unless it has to, unlike Windows which can be garbage in that regard.
  #8  
Old 09-08-2003
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
infy@inferno-linux:~$ free
total used free shared buffers cached
Mem: 515612 168112 347500 0 14712 80716
-/+ buffers/cache: 72684 442928
Swap: 2097136 0 2097136


Ive got swap now.

Thanks again.
  #9  
Old 09-09-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
SCORE!
Closed Thread

Similar Topics
Topic Replies Forum
Linux Swap Partition 1 The Alternative OS
cant install linux onto a partition 6 The Alternative OS
If I have two gig memory should I still move swap files from c to another partition 8 Storage and Networking
merging XP and linux partition 3 Other Hardware
Can Anyone Explain the Linux Filesystems? (ext2, ext3, swap) 4 Storage and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 11:47 PM.