LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 05-10-2005, 11:19 PM   #1
xbill311x
Member
 
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Rep: Reputation: 15
Can someone please tell me what this means... :)


I'm trying to figure out if I have set up a swap partition. Can someone take a look below and tell me if I indeed do? I have a sneaking suspision that I either, A. Didn't create one upon install, or, B. Created one, but made the size 0MB.

[bill@localhost bill]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 56G 2.8G 50G 6% /
none 121M 0 121M 0% /dev/shm

[bill@localhost bill]$ free
total used free shared buffers cached
Mem: 247228 170736 76492 0 10436 80384
-/+ buffers/cache: 79916 167312
Swap: 0 0 0
[bill@localhost bill]$


If I don't have swap space set up, can someone tell me how to do this? If it is any help, here is the meminfo file from my /proc dir. BTW, I'm using RH9.


total: used: free: shared: buffers: cached:
Mem: 253161472 190472192 62689280 0 12062720 89899008
Swap: 0 0 0
MemTotal: 247228 kB
MemFree: 61220 kB
MemShared: 0 kB
Buffers: 11780 kB
Cached: 87792 kB
SwapCached: 0 kB
Active: 168304 kB
ActiveAnon: 70828 kB
ActiveCache: 97476 kB
Inact_dirty: 892 kB
Inact_laundry: 4 kB
Inact_clean: 1200 kB
Inact_target: 34080 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 247228 kB
LowFree: 61220 kB
SwapTotal: 0 kB
SwapFree: 0 kB


Thanks again

Bill
 
Old 05-10-2005, 11:37 PM   #2
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Rep: Reputation: 15
1. man mkswap

2. use fdisk or cfdisk to create a swap partition then append it to /etc/ftab


In detail I'm not sure u must do the rest in detail
 
Old 05-10-2005, 11:42 PM   #3
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Rep: Reputation: 15
Oh.. Sorry
I'm read it at glance.

You didn't have space to make it.

Sorry again I can't help u.

But Tux be with u. Goodluck
 
Old 05-11-2005, 02:35 AM   #4
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
It is quite unclear to me.
Could you please post your fstab here ?
let's see if you have a line like /dev/hda## swap swap defaults 0 0

Last edited by Tanc; 05-11-2005 at 02:36 AM.
 
Old 05-11-2005, 03:04 AM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
could you please post your fstab and fdisk -l
 
Old 05-11-2005, 03:41 AM   #6
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
First, create a swap file (count is size in megabytes)
Code:
dd if=/dev/zero of=/.swap bs=1M count=512
mkswap /.swap
Then activate it
Code:
swapon /.swap
Add the above command to your init scripts (/etc/rc.d/rc.local in most distros) so you don't need to run it manually after each reboot.

Note: if you are running 2.4 kernel, swap files are slower than swap partitions. With 2.6 kernel, there is no such disadvantage.
 
Old 05-11-2005, 06:32 AM   #7
xbill311x
Member
 
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Original Poster
Rep: Reputation: 15
Hi all.

Thanks for your responses. Here is my fstab:

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0

and here is the output for fdisk -l:

[root@localhost bill]# /sbin/fdisk -l

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7297 58613121 83 Linux
[root@localhost bill]#


Thanks again. Does this help?

Bill
 
Old 05-11-2005, 06:37 AM   #8
xbill311x
Member
 
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Original Poster
Rep: Reputation: 15
Hi Harmaa,

That's to create a swap file, not a swap partition, right? That's what I may have to do if I didn't create a swap partition upon install of Red Hat. Lol, I knew nothing about Linux when I installed it, and I can't remember now if I was smart enough to create one. But I will save this in case I need to make a swap file.

Thanks

Bill
 
  


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
Does anyone know what this means? mrchaos Slackware 8 04-23-2005 01:32 PM
Help what does it means.. jhar Linux - Newbie 1 02-16-2005 01:44 AM
does anyone know what this means? macewan Linux - Hardware 4 02-10-2004 10:35 AM
does anyone know what this means ? Infinite_Pizza Linux - General 8 10-14-2003 05:15 AM
Could someone please tell me what this means!!!!! brianm Programming 1 03-27-2001 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 AM.

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