Re: swap partition missing?

From: Hongwei Li (hongwei_at_wustl.edu)
Date: 03/22/05

  • Next message: Christopher J. Bottaro: "Dell 2005FPW runs at 1680x1050 but looks much lower...?"
    Date: Tue, 22 Mar 2005 10:10:20 -0600 (CST)
    To: "For users of Fedora Core releases" <fedora-list@redhat.com>
    
    

    > Hongwei Li wrote:
    >>>Hongwei Li wrote:
    >>
    >>
    >>>>Yes, it works. Thank you very much! Now, I have questions:
    >>>>
    >>>>1. What's the use of mkswap -L SWAP-hda7 /dev/hda7? I don't see any
    >>>>effect?
    >>>
    >>>It *should* be setting the "filesystem label" of the partition to
    >>>"SWAP-hda7" so that mkswap can find it by name rather than being needed
    >>>to be told where exactly the swap partition is.
    >>>
    >>>
    >>>>2. When I put the original entry back to /etc/fstab as:
    >>>>LABEL=SWAP-hda7 swap swap defaults 0 0
    >>>>
    >>>>it does not work again. I have to put /dev/hda7 in it. How to let the
    >>>>original entry work -- the above mkswap ... does not have effect?
    >>>
    >>>Was your system swapping to that partition at the time you did the
    >>> mkswap?
    >>>
    >>> > Why do we need those LABEL=... in fstab?
    >>>
    >>>The idea is that labels should be less of a moving target than device
    >>>names. For example, lots of people found that their SATA drives moved
    >>>from being /dev/hdX to /dev/sdX fairly recently. Labelling filesystems
    >>>means that the OS can find them no matter what the device name is. This
    >>>isn't without its problems (e.g. when moving disks between machines,
    >>>resulting in multiple partitions with the same labels), but that's why
    >>>they're there.
    >>>
    >>>Labels for swap partitions are discussed at:
    >>>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=127892
    >>>
    >>>Paul.
    >>>
    >>>--
    >>
    >>
    >> Here is what I did in the order:
    >>
    >> # swapoff -a
    >>
    >> # mkswap -L SWAP-hda7 /dev/hda7
    >> Setting up swapspace version 1, size = 2097410 kB
    >>
    >> # vi /etc/fstab
    >> (set:
    >> LABEL=SWAP-hda7 swap swap defaults 0 0
    >> )
    >>
    >> # swapon -a
    >> swapon: cannot find the device for LABEL=SWAP-hda7
    >
    > I just tried this on my own FC3 box and it worked. Is this the only swap
    > partition in use on your machine?
    >
    > Paul.
    >
    > --

    Yes, it is.

    Hongwei

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Christopher J. Bottaro: "Dell 2005FPW runs at 1680x1050 but looks much lower...?"

    Relevant Pages

    • Re: swap partition missing?
      ... Hongwei Li wrote: ... >>I just tried this on my own FC3 box and it worked. ... Is this the only swap ... >>partition in use on your machine? ...
      (Fedora)
    • Re: sharing fc3 swap space with Centos
      ... > I have FC3 installed on a machine.Now I want to dual boot fc3 with ... > Centos on that machine,how do I share the swap space of fc3 with Centos ... to contain the partition you use for swap, ...
      (Fedora)
    • Re: squirrelmail does not send mail out in fc3?
      ... > Hongwei Li said: ... I installed squirrelmail, sendmail, etc (all packages) ... from fc3 cd during the installation of fc3. ...
      (Fedora)
    • Re: folder lost+found missing?
      ... > Hongwei Li wrote: ... What is the usage of ... > | lost+found folder? ... > partition in your case? ...
      (Fedora)
    • Re: swap partition missing?
      ... Hongwei Li wrote: ... > The system log does not show anything related to this problem. ... have heard that one of them may remove the label from swap partitions. ... you might want to relabel the ...
      (Fedora)