[PLUG] no more /dev/hda6

Derek Loree drl at drloree.com
Thu Sep 4 14:33:02 UTC 2003


On Thu, 2003-09-04 at 13:58, Mike De La Mater wrote:
> I've got a remote server that I visited today. It was running very badly
> and I couldn't figure it out. After an hour, I went for a reboot.
> 
> On reboot, I discovered that it did not think it still had a /dev/hda6
> swap partition. dmseg shows:
> 
> Partition check:
>  hda: hda1 hda2 < hda5 >
>  hdb: [PTBL] [1247/255/63] hdb1 hdb2 < hdb5 hdb6 hdb7 hdb8 hdb9 >
> 
> and
> 
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> 
> 
> 
> The system has been up for a year or so, maybe two. I ran:
> # fsck /dev/hda6
> fsck 1.26 (3-Feb-2002)
> fsck: fsck.swap: not found
> fsck: Error 2 while executing fsck.swap for /dev/hda6
> 
> What do I do next? I have current backups, but I don't want to trash the
> partition table. 

fsck is a file system checking utility, not a partition checking
utility.  Use fdisk /dev/hda to find out how the partition table is set
(don't worry, it won't write to the partition table unless you tell it
to).  This drive is probably starting to go bad, and should be
thoroughly tested with the manufacturer's utilities.
> 
> I'm looking to see how to find fsck.swap, it seems to be missing
> somehow...

No need for such a tool:

swapoff /dev/hda6
mkswap /dev/hda6
swapon /dev/hda6

will reset a swap file system, but only if /dev/hda6 can be found.

HTH

Derek Loree





More information about the PLUG mailing list