LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-12-2005, 11:41 PM   #1
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
FC4 and garbaged swap partitions


I've had a search for threads relating to this - and find that the information is scattered through a dozen or so with unhelpful titles etc. So here is the dope:

On clean installs of FC4 (also had this with FC2 and seen it reported with FC3, just not as frequently) we find that there is sometimes trouble mounting the swap partition. Even if the swap partition is mounted, on examining /etc/fstab we find a load of absolute Francis Ford (which is to say: Crappola) as the swap partition label.

This is an issue known to Bugzilla.
Quote:
Comment #16 From Chris Lumens on 2005-06-22 10:06 EST
What's happening here is that for some reason, mkswap does not appear to be
clearing out the section of the swap partition header that holds the label.
Then later we see that there's still something in the label section and decide
we don't need to assign it a new label. Unfortunately, there's only garbage in
the label section.

Comment #17 From CE YI on 2005-07-07 03:37 EST
I got this problem too from a fresh install. But swap is mounted. You can check
that with 'top' command or simply use system monitor. if not or you want a new
label for swap, you could do this:
Code:
su
/sbin/swapoff /dev/hd?    !only needed if your swap is on
/sbin/mkswap -L swap /dev/hd?
/sbin/swapon /dev/hd?
this will give you an output like:
LABEL=swap, UUID=e074f449-5f5e-4b97-a2ae-07e82ef96664

then you can go back to fstab to get rid of the garbage:
LABEL=swap swap swap defaults 0 0

or you can use the UUID
Chances are there is no problem for you. With a great deal of RAM, there is a valid argument for not using a swap partition at all! (It would speed up your system for a start.)

But if you seem to have intermittent hanging issues associated with mounting the swap partition then this is probably the cause.

The above also explains why there is a LABEL= entry in there at all ... though .dev/hdx works just as well.

Cheers
 
  


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
2 swap partitions librano Linux - Newbie 6 08-25-2004 01:55 PM
/ and swap partitions (but want more) How to? acummings Slackware 3 07-17-2004 12:33 AM
Swap partitions 2k. Linux - General 7 03-01-2004 05:59 PM
Do I need 2 swap partitions? CloudBuilder Linux - Newbie 2 11-14-2003 03:09 PM
swap partitions chappy011 Linux - Newbie 2 03-18-2002 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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