Label der Swap-Partition

From: Elke Wilkeit <ewi--_at_t-online.de>
Date: Sat, 15 Mar 2008 14:09:41 +0100

hei liste,

ich m"ochte meiner Swap-Partition auf einem Linux-Rechner (Fedora Core
6) ein Label geben. Da scheint aber etwas nicht in Ordnung zu sein:

[root_at_xavia F7] (1) blkid
[...]
/dev/hda3: TYPE="swap" LABEL=" þ
þ
 þ
þþþ"

Anstelle dieses dreizeiligen Labels aus Gammelzeichen h"att ich da
gern sowas stehen:
 
/dev/hda3: TYPE="swap" LABEL="SWAP"

Kann mir jemand einen Tipp geben, mit welchen Tools man diesem Problem
zu Leibe r"ucken kann?

Meine bisherigen erfolglosen Versuche zur Label-Setzung, Diagnose und
Therapie sehr ihr unten.

Kann ich eine Swap-Partition mit swapoff abkoppeln und dann neu
formatieren? Welches Dateisystem? Ist dieses gut:

mke2fs -c -j /dev/hda3

Herzliche Gr"u"se,
Elke.

------------------ 1
[root_at_xavia F7] (1) swapoff /dev/hda3
[root_at_xavia F7] (1) tune2fs -L SWAP /dev/hda3
  tune2fs: Bad magic number in super-block while trying to open /dev/hda3
  Couldn't find valid filesystem superblock.

------------------ 2
[root_at_xavia F7] (1) fdisk /dev/hda
  Disk /dev/hda: 30.0 GB, 30005821440 bytes
  255 heads, 63 sectors/track, 3648 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot Start End Blocks Id System
  /dev/hda1 * 1 6 48163+ 83 Linux
  /dev/hda2 7 3583 28732252+ 83 Linux
  /dev/hda3 3584 3648 522112+ 82 Linux swap / Solaris

------------------ 3
[root_at_xavia F7] (1) e2fsck /dev/hda3
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/hda3
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

------------------ 4
[root_at_xavia ~] (0) fsck /dev/hda3
fsck 1.39 (29-May-2006)
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/hda3
Received on Sat Mar 15 2008 - 14:09:41 CET

This archive was generated by hypermail 2.2.0 : Sat Mar 15 2008 - 14:14:56 CET