You are not logged in.
Hello everybody
I noticed when I was powering on my system that I had a red label "FAILED" next to 'Activating Swap'.
i looked at :
https://wiki.archlinux.org/index.php/Swap
https://wiki.archlinux.org/index.php/Pe … ice_naming
https://bbs.archlinux.org/viewtopic.php?id=103997
https://bbs.archlinux.org/viewtopic.php?id=122962
https://bbs.archlinux.org/viewtopic.php?id=132309
# swapon -s
Filename Type Size Used Priority# free -m
total used free shared buffers cached
Mem: 2761 2642 118 0 124 1312
-/+ buffers/cache: 1206 1555
Swap: 0 0 0# blkid
/dev/sda1: LABEL="boot" UUID="5C187AF40E0AEC1C" TYPE="ntfs"
/dev/sda5: LABEL="arch" UUID="74bb0a35-feac-468a-a58f-f842c7fd5340" TYPE="ext4"
/dev/sda9: LABEL="disk" UUID="0ACFB85358B278B7" TYPE="ntfs"
/dev/sda10: UUID="62c63c59-8dc0-4b84-8752-0801a0ae9657" TYPE="swap" # cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
LABEL=arch / ext4 defaults 0 1
#LABEL=swap swap swap defaults 0 0
/dev/sda10 swap swap defaults 0 0
LABEL=disk /media/disk ntfs defaults 0 0here i tried to label the /dev/sda10 : swap =>
http://linux.about.com/od/ptn_howto/a/hwtptn07t00.htm
# e2label /dev/sda10 swap
e2label: Bad magic number in super-block while trying to open /dev/sda10
Couldn't find valid filesystem superblock.# tune2fs -L swap /dev/sda10
tune2fs 1.41.14 (22-Dec-2010)
tune2fs: Bad magic number in super-block while trying to open /dev/sda10
Couldn't find valid filesystem superblock.# mke2fs swap /dev/sda10
mke2fs 1.41.14 (22-Dec-2010)
mke2fs: invalid blocks count '/dev/sda10' on device 'swap'then i tried
# swapon /dev/sda10# free -m
total used free shared buffers cached
Mem: 2761 2608 153 0 157 1290
-/+ buffers/cache: 1161 1600
Swap: 2998 0 2998i dont understand why i got always "FAILED" next to 'Activating Swap' while booting.... !!
Last edited by hael (2012-01-01 11:18:07)
Offline
See in /var/log/boot if it's really "activating swap", not a neighbouring entry, that's failing (someone on the forum made this mistake; your post seems to indicate you're booting without swap indeed).
rc.sysinit (booting script) runs simply "swapon -a", so see if "swapoff -a; swapon -a" works. As the wiki says, you can use mkswap to set a label on swap - running mkswap might solve your problem anyhow, although "swapon /dev/sda10" wouldn't really work if the partition wasn't formatted as swap already.
Do you hibernate?
Offline
See if my post here is any help: http://forum.mandriva.com/en/viewtopic.php?t=91474
Offline