Red Hat Enterprise Linux Server release 5.5 (Tikanga) - swap
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Red Hat Enterprise Linux Server release 5.5 (Tikanga) - swap
We have installed "Red hat Enterprise Linux 5.5" and while installation we have choosen "create custom layout" partition and created the blow partition:
It looks as if your /swap partition is formatted as ext3 rather than swap.
For example, from my /etc/fstab
Code:
/dev/sdc2 swap swap defaults 0 0
So, I think you want to take that swap partition, and reformat it as swap. (You should be able to use gparted for that without taking the machine offline).
As, judging from your post, you seem a bit unfamiliar with partitioning, I would recommend you install gparted. Using that, you can then select partition /sda2 and choose to reformat it as swap. After that, I think it should work. To be honest, I haven't done this in awhile, so there may be additional steps that I'm overlooking. (Also, I'm not really familiar with the GUI tools--I just recommend them because they should be easier for you.)
After doing that, you might want to run
mkswap /dev/sda2
swapon /dev/sda2
Just be very sure that you haven't accidentally put anything in /dev/sda2 because this will wipe out anything in it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.