LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-27-2002, 07:20 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Rep: Reputation: 30
Create swap partition?


I don't know how that's happened but after installing Red Hat 7.3 than Red Hat 8.0 I figured that swap partition is not exist.

During the boot up it takes a couple of seconds to enable swap space.

The hardrive looks like this:

[mike@localhost mike]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 9.6G 2.5G 6.6G 28% /
/dev/hda6 50M 14M 34M 28% /boot
none 125M 0 124M 0% /dev/shm

How can I create swap partition? What should I do ?

Thanks
 
Old 11-27-2002, 07:25 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
if you have free space you can create a partition on it and make it type 82 with fdisk

if not make a swapfile

dd if=/dev/zero of=/root/swapfile bs=1k count=512

using your desired parameters



then run mkswap on the partition or file
 
Old 11-27-2002, 07:26 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
once that's done

add it to /etc/fstab

and run

swapon -a
 
Old 11-27-2002, 07:40 PM   #4
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Re: Create swap partition?

Quote:
Originally posted by mikeshn

none 125M 0 124M 0% /dev/shm
If this isn't the swapfile, what is it?
 
Old 11-27-2002, 08:23 PM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
no it's a memory filesystem for shared memory, not a swap partition
 
Old 11-27-2002, 11:23 PM   #6
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
Parted!

Just a thought, but I think parted is nicer to work with, then later you can mke2fs ext3 and mkeswap on the partitions that you made...

-meh

just a thought.
 
Old 11-28-2002, 02:42 AM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
well it ain't gotta be nice, you just need to create the swapfile or partition and mount it...
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to create a swap partition dotancohen Linux - General 4 07-30-2005 12:39 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
Create swap partition AFTER installing slackware? dx0r515t Slackware 4 05-21-2005 11:29 PM
Can't create swap partition tiger99 Linux - Newbie 23 03-15-2004 09:34 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM


All times are GMT -5. The time now is 01:30 AM.

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