Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 just installed redhat 7.2 on my 1.2gb hd. The iso images that I used were on a primary slave hd which had both linux and windoz on it. My problem is, during the installation, it wanted to delete any info on my swap file on this slave hd (hdb5). I said ok, and the installation seemed to go ok. After I removed the hd with the iso images on it from the computer and started my new linux box, during boot it says "Activating swap partitions: swapon: /dev/hdb5: no such device or address". It then goes on to say [fail] instead of [ok].
I assume what happened was that it used the swap file from the hd that already had a linux install on it (the same on that had the iso images - hdb).
My questions is, how do I fix this problem? The 1.2gb hd, had no files on it, and I let the linux install disk delete all partitons, and let it create its own.
well you cn make a new swap partition using mkswap, but it seems your parition doesn't exist at all, rather than being recognised wrongly or such. what does 'fdisk -l' give you? there's meant to be a reference to hdb5 as linux swap (82) if the swap partition has somehow changed it's number, then you should be able to just edit the /etc/fstab file and chagen the address accordingly.
I did as you suggested, and edited the /etc/fstab file. It had two references to a swap file. One was hda3, and the other hdb5. I removed the reference to hdb5, and now it starts up no problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.