LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-05-2003, 05:01 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
Question about Swap Paritions


I have one swap partion - /dev/hda6. It is shared between my other linux partitions. It's located in a bit of an ackward spot..you see I allowed mandrake to make it when I first installed linux. (bad mistake)

Anyways, what I wanted to do was reformat mandrake, shrink it, and then reinstall. The swap is located here:

Utilitypartition--Windows--windows--ext3mandrakeroot--swap--ext3user1mandrake--followed by other linux partitions..

So if I moved the swap, hda6 to someplace else on the hardrive, or changed the name (afterwards editing fstab,) would linux be able to boot it without a problem? Seeing as how it's in a different physical position on the drive?

Also, is a swap detrimental to linux running?

Does distance away from the swap affect speed?

If so, could I have more than 1 swap on the drive, located closer to the other linuxes, and how would I have to edit fstab to accomodate that change?

Sorry for all of the questions
 
Old 10-05-2003, 05:41 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Re: Question about Swap Paritions

you've got a lot of questions there and i don't know the answer to all of them, but for one: yes, you can have more than one swap. just indicate in fstab which partition will be the swap partition for that distro.

swap is not detrimental to running linux. in fact it is necessary in many cases, and recommended at least in most.

i don't think distance away would be likely to affect speed very much, unless you were talking about having the swap on a separate hard disk altogether, in which case speed most likely would increase (depending on IDE configuration, etc.)

based on what i *think* you're saying, it's probably not necessary to move the swap partition. (it would be easier to tell what's going on though if you could post your fstab or disk layout more specifically, and also the size of the drive. )

just changing the name of the partition wouldn't do much good and probably isn't a great idea. you have to create the filesystem type with fdisk, cfdisk, etc. (or with commands after you partition the space (mkswap /dev/hdxx, etc)). then when you've created the new swap, you can tell fstab to recognize it, as i mentioned in the beginning.

as to the question of what to do about rearranging the rest of the disk, that would probably take a bit of work if your root partition is one of the ones you want to move. otoh, it might be quite easy, i just have never done it. if you are going to reformat and reinstall everything anyway, then of course it would pretty easy.

hth
 
Old 10-05-2003, 06:53 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
I agree with the previous post. I don't think location would affect performance much with a typical desktop install. If you end up having a different partition for swap just make sure you change the swap fstab entry for each OS.
 
Old 10-06-2003, 10:23 PM   #4
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
Excellent -- so I only have to edit fstab? IE..say change /dev/hda6 to /dev/hda11 and it will automatically use it?

Awesome.

My swap is in an incredibly inconvenient place. It would probably be easiest to move it. I think I'll just delete it and create a new one.

Also -- is it possible to just rename a partition to any number you want? In diskdrake, it automatically says - once I want to delete a smaller # partition - that it will rename the others to /dev/hda(n-1). This is very inconvient and I'm afraid that I won't be able to boot slackware.

Thanks
 
Old 10-07-2003, 05:09 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
I've never seen anything that would renumber partition IDs. All you need to do is change the fstab file and your bootloader.
 
  


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
Mount question and hot swap question Dr Gutiemouth Linux - Newbie 8 10-20-2004 12:30 PM
Multiple paritions zaicheke Linux - General 1 09-05-2004 01:52 PM
I messed up my paritions. please help zidane2010 Linux - General 3 04-10-2004 11:44 AM
Could not allocate requested paritions smsmith_1975 Linux - Newbie 2 02-11-2004 01:50 PM
RH 8.0 Server Paritions praefex Linux - General 5 12-24-2002 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:01 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