Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two hard drives in my computer - one is 4 GB, the other is 2 GB. When I installed Red Hat, I had 48 MB of RAM in my computer. Red Hat gave me a swap partition of 180 MB on the 4 GB hard drive.
I added another 128 of RAM yesterday, and have read that i should have swap space of twice the amount of RAM. My 4 GB hard drive has no space left for partitions. But my 2 GB hard drive is almost all free.
So my question is this - should i delete the old swap partition from the 4 GB drive and create one new swap partition on the 2 GB drive that is twice the size of my total amount of RAM? In this case, what do I do with the space left from the old swap partition? Is there an easy way to add it to one of my other partitions, or will it just be wasted?
Or, should I create a separate swap partition on the 2 GB hard drive (and not delete the old swap partition) so that both partitions together add up to twice the size of the RAM?
Is it bad (or impossible) to have swap partitions spread out over two hard drives?
no, your swap is fine as it is, indeed it'll be used less now than before. that stupid rule about being 2xram is just a daft archiac old rule from when you had a remortage your house for a stick of ram. many people still keep blindly reciting it tho. it does have a certain application as far as high end servers go, but gerneally it's irrelevant.
Swap is garbage on a computer with 128MB+ RAM. BTW, swap could slow things down cuz disk is slower than RAM. Remove it from vi /etc/fstab and run lilo.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.