LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 01-12-2004, 04:53 AM   #1
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Move swap partition


Hi all

I have a question about moving the swap partition to another physical hd

how do i go about doing this ??

Currently the swap partition resides on the same physical hd that mandrake 9.2 is installed upon. (hdd)
what i want to do is move the swap to another hd altogether.(hdb)

On hdb the partition looks like so

hdb1 85% formatted fat32 Not bootable
15% unused space

So do i format this extra space as a new primary partition or as a logical partition?

ie: hdb2 15% linux swap
or: hdb5 15% linux swap

I know then that i have to make the partition into linux swap (82)

Ok so once that is sorted out i have to edit fstab to say :

none /dev/hdb(2 OR 5) swap swap default 0 0

are there any other files to edit after this?
is what im doing correct ?

Thanx
Still a noob and diggin this os!!
 
Old 01-12-2004, 06:43 AM   #2
TheBlackUnicorn
Member
 
Registered: Jan 2004
Distribution: Debian and Gentoo
Posts: 39

Rep: Reputation: 15
You're getting very close. It doesn't really matter whether you create the extra partition as primary or logical. I'd suggest primary for simplicity's sake.

After you've created the partition (as type 82 like you said) you should first format it. Do this by running mkswap /dev/hdb2.

Then you need to edit /etc/fstab, also like you said. You have me a little confused about the format (I'm working on windows so can't really check).
I thought it should be something like this :

/dev/hdb2 none swap sw 0 0
 
Old 01-12-2004, 06:59 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,968

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
To activate the swap partition after you format it:
swapon /dev/hdbx where x wherever you decide 2 or 5
To deactivate original swap
swapoff /dev/hdxy

Someone correct me if I am wrong. Max swap partition size is 2gb. For the average user 512mb is sufficient. If you need additional swap space you can have up to 8 swap partitions.
 
  


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
move folder to new partition blizunt7 Fedora 11 10-13-2005 07:16 AM
Move OS to another partition giuseppe82 Linux - Software 2 09-06-2005 11:44 AM
How do I move /home to a new partition? glenn69 Linux - Newbie 2 01-05-2005 10:15 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 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 12:38 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