swapon read swap header failed

Bug #569031 reported by Basil Gello
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: util-linux

my test system can not mount swap at startup. Doing a swapon -a gives an error "read swap header failed: invalid argument"

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mount 2.17.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-18.27-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-18-generic x86_64
Architecture: amd64
Date: Fri Apr 23 17:37:39 2010
ProcEnviron:
 LANG=uk_UA.UTF-8
 SHELL=/bin/bash
SourcePackage: util-linux

Revision history for this message
Basil Gello (vasek-gello) wrote :
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Could you run "sudo blkid" and attach the output, along with your /etc/fstab

Changed in util-linux (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Basil Gello (vasek-gello) wrote :

sudo blkid:

/dev/sdb1: LABEL="LINUX" UUID="D016-535B" TYPE="vfat"
/dev/sdb2: UUID="2602492c-8753-48d3-abd4-ef6cb726b15e" TYPE="ext3"
/dev/sdb3: UUID="fe49e8f7-29b6-40ff-8997-23ef430e8116" TYPE="swap"
/dev/sdb5: LABEL="SWAP" UUID="96B8349FB8347FB3" TYPE="ntfs"

/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb2 during installation
UUID=2602492c-8753-48d3-abd4-ef6cb726b15e / ext3 errors=remount-ro 0 1
/dev/sdb3 none swap sw 0 0

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Curious, that finds the header just fine - I guess your swap has been corrupted by a bad hibernation or something.

Could you try:

sudo mkswap /dev/sdb3

And then reboot - does the error go away?

Revision history for this message
Basil Gello (vasek-gello) wrote :

Scott,

two days ago I have got an update of mountall package from a repo and everything worked fine! Thank you for reply, the bug is closed!

Changed in util-linux (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.