LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-20-2003, 12:21 AM   #1
Cap'n Ahab
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Swap partition


Hi everyone,


I have a question about swap partitioning. When I installed RH 9.0 I was, for some reason, unable to create a swap partition. Now that I've got it installed though, I really would like to have one.

I have an existing 1500MB swap partition, that I use for Windows; am I able to use this for a Linux swap also? I had to change some virtual memory settings under XP to get it to write to the correct drive, and I guess I'm wondering if RedHat has the same sort of thing.

If that's not possible, then does anyone have any info on if I can still create one after installation? That's all folks.

Thanks.
 
Old 07-20-2003, 12:28 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You can use it for Linux, sure, but I'm not sure if it would confuse Windows. Because I think you'd have to 'mkswap' and then 'swapon' and then add it to your fstab. But then, whether Windows would use it as normal, I don't know.

1 and a half gigs? Yikes. That's a lotta swap.

- Oh, and to the second question, if you've got free space, use it. If not, you'd have to look into parted and resizing yourself some swap space.
 
Old 07-20-2003, 12:31 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What format is the partition? If it's linux swap filesystem, then sure, you can use it

You'll need to use something like fdisk or mkswap to change the type of partition it is though if it's not a linux swap (use:
/sbin/fdisk -l to find out, as root of course ).

After you make it a linux swap you'll wanna add it to your fstab, something like:
/dev/hdx swap swap defaults (or sw depending on the documentation you find) 0 0

You'll then need to "swapon" which means just type that into a terminal, again, as root. This turns the swap on. Then enjoy.

Cool

<see edit reason>

Last edited by MasterC; 07-20-2003 at 12:37 AM.
 
  


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
Swap partition Mojojo Linux - Hardware 10 01-20-2005 06:12 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM
Should I be using a SWAP partition? Gene126 Linux - General 3 08-14-2002 10:03 PM
swap.partition anoop_chandran Linux - General 3 12-28-2001 10:48 AM
Swap partition Thomas_Delrue Linux - Newbie 3 07-12-2001 09:35 PM

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

All times are GMT -5. The time now is 12:21 PM.

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
Open Source Consulting | Domain Registration