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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-27-2002, 08:20 PM
|
#1
|
Member
Registered: Feb 2002
Posts: 586
Rep:
|
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
|
|
|
11-27-2002, 08:25 PM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
|
|
|
11-27-2002, 08:26 PM
|
#3
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
once that's done
add it to /etc/fstab
and run
swapon -a
|
|
|
11-27-2002, 08:40 PM
|
#4
|
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:
|
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?
|
|
|
11-27-2002, 09:23 PM
|
#5
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
no it's a memory filesystem for shared memory, not a swap partition
|
|
|
11-28-2002, 12:23 AM
|
#6
|
Member
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341
Rep:
|
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.
|
|
|
11-28-2002, 03:42 AM
|
#7
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
well it ain't gotta be nice, you just need to create the swapfile or partition and mount it...
|
|
|
All times are GMT -5. The time now is 10:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|