Activating swap... failed.
Greetings,
Sometime during boot, i get the message "Activating swap... failed."
('failed' is in red)
The only place in /var/log (that i thought would make sense to search
in) i can find a reference to swap is:
$ cat /var/log/kern.log.0 |grep swap
Mar 21 12:28:37 deb64 kernel: [ 12.194854] Adding 1951856k swap on
/dev/sda5. Priority:-1 extents:1 across:1951856k
Swap is defined:
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda2 / ext3 defaults,errors=remount-ro 0 1
/dev/sda4 /home ext3 defaults 0 2
/dev/sda5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
# fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd2c8d2c8
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS
/dev/sda2 1959 4997 24410767+ 83 Linux
/dev/sda3 4998 5240 1951897+ 5 Extended
/dev/sda4 5241 19457 114198052+ 83 Linux
/dev/sda5 4998 5240 1951866 82 Linux swap / Solaris
But not active indeed:
$ free -m
total used free shared buffers cached
Mem: 3934 552 3382 0 11 195
-/+ buffers/cache: 345 3589
Swap: 0 0 0
$ df -ha
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 23G 6.0G 16G 28% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
procbususb 0 0 0 - /proc/bus/usb
udev 10M 148K 9.9M 2% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
devpts 0 0 0 - /dev/pts
/dev/sda4 108G 76G 26G 75% /home
I barely ever use more than 1GB of RAM, but i guess linux uses swap
for other purposes. Or can i deactivate it entirely?
I've read i could mkswap but... it worked for ages, why get borked
now?! I've been having issues with the system time (it's one hour off
into the future and i haven't had time to work on your suggestions),
could that be realted? Unfortunately most results i found were in
italian...
TIA,
Nuno Magalhães
--
() ascii ribbon campaign - against html e-mail
/\ ascii-rubanda kampajno - kontraŭ html-a retpoŝto
Reply to: