Re: Mount labels in fstab?



Frank Elsner wrote:

I think I had a problem labelling the swap partition.
Is this necessary?
And if so, can it be done with swap on?

Not with "swapon" but with "mkswap".

From "man mkswap":

| -L label
| Specify a label, to allow swapon by label. (Only for new
| style swap areas.)

That is in fact what I did.
But was it necessary?

You slightly misunderstood what I meant.
I ran swapoff before mkswap -
I don't know if that was necessary, but it seemed sensible.

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

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



Relevant Pages

  • Re: [opensuse] /dev/disk/by-uuid ?
    ... Use "swapoff" to take it out of service before recreating it then ... sda1, use mkswap to recreate it with a label, then revert the process ... kernel might not see the label till next reboot. ... not running - unless the live founds swap space and uses it. ...
    (SuSE)
  • Re: How to set label on swap partition
    ... so it is no longer recognized by Fedora as a swap. ... > doesn't want to set label since it is not a ext2/ext3 partition. ...
    (Fedora)
  • Re: LABEL for swap partition.
    ... I have it ready to go and want to include it in my fstab. ... I can't find how to label a swap disk/space. ... You can label it with the mkswap command: ...
    (comp.os.linux.setup)
  • Re: Sata controller order
    ... This has the effect of juggling the drives so mount does not work. ... solution posted is to mount by label rather than by drive. ... This is possible for EXT2/EXT3 but it is not possile AFAIKS for swap. ... Ron Johnson, Jr. ...
    (Debian-User)
  • RE: Swap memory
    ... The swap label ... somehow got created with a "space" character inside the label. ... The command was put into the rc.local ... Subject: Swap memory ...
    (Fedora)