LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-05-2004, 07:32 PM   #1
talkinggoat
Member
 
Registered: Sep 2003
Location: lafayette, la
Distribution: RHL 6.2, FC 3, Ubuntu 14.04, Ubuntu 16.04
Posts: 112

Rep: Reputation: 15
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?
 
Old 07-05-2004, 08:51 PM   #2
arvind_sv
Member
 
Registered: Oct 2002
Location: Bangalore
Distribution: Gentoo Linux
Posts: 96

Rep: Reputation: 16
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.

Arvind
 
Old 07-05-2004, 09:01 PM   #3
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
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.
 
Old 07-05-2004, 09:36 PM   #4
talkinggoat
Member
 
Registered: Sep 2003
Location: lafayette, la
Distribution: RHL 6.2, FC 3, Ubuntu 14.04, Ubuntu 16.04
Posts: 112

Original Poster
Rep: Reputation: 15
LABEL=/1 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hde3 swap swap defaults 0 0
/dev/hdc3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


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?
 
Old 07-05-2004, 09:47 PM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Hmm. okay. What distro is that and how many hard drives to you have... ie do you have an extra IDE controller card?
 
Old 07-05-2004, 10:01 PM   #6
arvind_sv
Member
 
Registered: Oct 2002
Location: Bangalore
Distribution: Gentoo Linux
Posts: 96

Rep: Reputation: 16
The output of these two commands posted here might help:
fdisk -l /dev/hdc
fdisk -l /dev/hde

Arvind
 
  


Reply



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
Hot Swap support problems iflorea Programming 0 12-01-2005 04:40 AM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
problems with swap partition katrin Linux - General 6 02-02-2004 07:54 AM
Swap problems TheShemeta Linux - General 2 10-24-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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