LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-05-2004, 04:46 PM   #1
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Rep: Reputation: 15
How do I resize my linux swap partition?


I started out by making my linux swap partition 1 gb, but now I am finding I dont need that much(I already have 512 mb ram). I am trying to figure out how to shrink this partition to 512 mb, but I cant figure it out. Thanks in advance.
 
Old 12-05-2004, 05:04 PM   #2
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
in a console as root type in"fdisk /dev/hda" if it says that fdisk can't be found then type in "/sbin/fdisk /dev/hda" that will open fdisk and the /dev/hda partition table...hit "p" to figure out your partitions and to figure out which one is the swap...then I forget what the key is to resize a partition...should be able to hit "m" to get a list of all the commands...if it's not in the first list hit "x" to get to an advanced fdisk, then hit "m" to get the advanced help list...just search through there for a way to resize a partition.
 
Old 12-05-2004, 05:24 PM   #3
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Original Poster
Rep: Reputation: 15
I couldn't find the command to resize. The linux swap is hda3, linux is hda2, and winxp is hda1.
 
Old 12-05-2004, 05:45 PM   #4
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
try downloading "Ultimate Boot CD" there are sevral partition managers on it...inluding "Partition Resizer" ....ya think that might help?
 
Old 12-05-2004, 06:39 PM   #5
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Original Poster
Rep: Reputation: 15
I will try that later, but I am low on CD's and I dont have any cd-rw's so I would like to avoid that if possible.
 
Old 12-06-2004, 01:04 PM   #6
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
ok, then try running "/sbin/fdisk /dev/hda" again and delete the swap partition...but before you do that...hit "l" (L) key to list all the usable file systems...I forget what you have to do to make a swap partion...but before you do delete the swap partition make sure you know how you make another swap partition.
 
  


Reply



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 file & Boot Partition Resize surfer2k3 Linux - Newbie 4 07-17-2008 07:50 PM
how to resize linux partition gry-HuhuY5 Linux - General 6 08-13-2005 07:07 PM
Is it possible to resize the swap partition after installation is completed? Akhran Linux - Newbie 5 08-07-2005 02:58 PM
resize linux partition ConfusedMonkey Linux - Newbie 9 07-31-2005 02:22 PM
Should I resize swap partition? snatale1 Linux - Newbie 9 12-27-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:59 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
Open Source Consulting | Domain Registration