Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-09-2005, 11:48 AM   #1
LQ Newbie
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Reduce Swap partition SuSE 9.1


I installed SuSE 9.1 and asigned 9GB for swap space (yeah, I know... didn't know what I was doing). Now I would like to resize that partition to 2GB and use the remaining space in my Windows partition. Is there any way to do that?

Thanks, in advance.
Old 02-09-2005, 12:14 PM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Yes, it is possible.

First, you need to de-activate the swap device. If your RAM is sufficient, you may do this from the running system (swapoff -a). Otherwise, boot from a LiveCD (KNOPPIX) or rescue system (SUSE boot CD).

Now, use your prefered partitioner (I use cfdisk from command-line) to delete and re-create the partition. Take care to shrink from the correct end, so that the free space lies next to the windows partition that you would like to merge it with. Don't forget to assign the correct partition type (linux_swap, type 82).

You need to format the partition as swap, using the command 'mkswap /dev/...'. Enter the devicename that you just created (list them with 'fdisk -l' is unsure). Change the swap-entry in /etc/fstab, if the devicename has changed. Now you should be able to activate swap with 'swapon -a'.

Although I have done that previously, I may have forgotten some details. Use the manpages to be sure what you are doing. Backup your data!

For merging the free space with a Windows partition, ask someone else (I increased the size of my Linux partition )

BTW: 2GB swap seems still too big in my eyes. I have 512MB RAM and 512MB swap on my system. swap gets hardly ever used.

Last edited by abisko00; 02-09-2005 at 12:16 PM.


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
SUSE 9.3 Activating SWAP partition Hangs 1kyle SUSE / openSUSE 0 08-29-2005 09:40 AM
Swap Partition Error Installing SUSE 9.3 mtn Linux - Newbie 4 07-15-2005 06:19 PM
How can I check whether I have a swap partition in Suse Linux 9.2 pro? pujolasdf Linux - Software 10 02-13-2005 05:24 PM
Suse 9.1 Pro not using my swap partition ToBe SUSE / openSUSE 12 12-09-2004 02:05 PM
can I reduce the partition for Suse? Saulo Linux - Distributions 4 06-06-2003 11:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration