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.
Distribution: RHL 6.2, FC 3, Ubuntu 14.04, Ubuntu 16.04
Posts: 112
Rep:
swap problems
over the last couple of months, i seem to have lost my swap partition. during bootup, it tells me that swapon has failed and the hd partition does not exist. where do i need to start to fix this problem?
Go to /etc/fstab and search for lines with "swap" in the second column. These are the partitions that will become swap. Use "fdisk -l" and see if they're actually swap partitions.
If they're not, then, setup /etc/fstab with the correct swap partition. BE CAREFUL! If you give one of your data partitions as a swap partition in fstab, you lose all data there (almost certainly).
If you don't have any, you might have to use a partition manager to make a swap partition. Google around to see how to do that.
Have you repartitioned your drive lately and used the swap partition for something else? Can we see a copy of your
/etc/fstab
file, that would be a help. If the swap partition is still available it may be able to be fixed. If it is gone or used for something else then you can always remove it from the fstab and create a swap file in your root directory to replace it - assuming you have room in / or you can create a new partition somewhere. It really depends on how your drive is set up.
keep in mind that the os creates a swap partition for me when the original fails on boot.
i have not modified the fstab or the partition tables in any way. it just went out one day. i have no idea what i did. i am sure it was something small, but i know that i didn't do anything deliberately.
what is the log that it creates when it boots up? perhaps that may shine some light on the situation?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.