Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 150668 - Swap is not enabled
Swap is not enabled
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Depends On:
  Show dependency treegraph
Reported: 2005-03-09 09:32 EST by Alfred Glanzer
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-04 09:17:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
As requested : fstab (789 bytes, text/plain)
2005-03-09 13:01 EST, Alfred Glanzer
no flags Details

  None (edit)
Description Alfred Glanzer 2005-03-09 09:32:38 EST
Description of problem:
Swap-space on separate partition is not working. I am not sure if this
is related to initscripts or that the naming of the swap-space in
fstab is causing this.

Manually enabling swap with swapon /dev/hd?? is working without any
problems. The command swapon -a -e does nothing !!!

Version-Release number of selected component (if applicable):

Additional info:

These problems are on a clean FC4 install (through http) with a FC3
boot-disk (the FC4 boot disk does not work).
Comment 1 Bill Nottingham 2005-03-09 12:18:02 EST
Please attach your /etc/fstab.
Comment 2 Alfred Glanzer 2005-03-09 13:01:02 EST
Created attachment 111817 [details]
As requested : fstab

This fstab is not touched at all: original from install !
Comment 3 Bill Nottingham 2005-03-09 13:13:30 EST

swapon -L SWAP-hda2

Comment 4 Alfred Glanzer 2005-03-09 16:30:04 EST
server /etc> swapon -L SWAP-hda2
swapon: cannot find the device for SWAP-hda2
server /etc> 

Sorry, it does not (yet) work !
Comment 5 Elliot Lee 2005-03-09 17:36:07 EST
Have you run mkswap since the install?
Comment 6 Alfred Glanzer 2005-03-10 04:45:40 EST
Yes, I did run mkswap, but on a file, because I needed some swap-space.

The disk-swap-space on my system can easily be enabled by swapon
/dev/hda2 ! I did not run mkswap on hda2.

ps: it would be very nice if, during setup, a swap-file can be choosen
as swap, and not only a separate partition !!
Comment 7 Karel Zak 2005-03-18 08:00:48 EST
You have in /etc/fstab as device identicication "LABEL=SWAP-hda2". It means the
'swapon' does exactly same work as:

     swapon -L SWAP-hda2

The conversion from LABEL to path to device (=/dev/hda2) is possible only if
there is label in swap header block. You have to run:

     mkswap -L SWAP-hda2 /dev/hda2

before "swapon -a" or "swapon -L SWAP-hda2".

Note You need to log in before you can comment on or make changes to this bug.