You are not logged in.

#1 2007-11-02 13:22:52

nst
Member
From: Czech Republic
Registered: 2007-04-02
Posts: 25

.:[solved]:.swap activation problem

hey, my swap doesnt activate at boot, plus i cant start it via swapon, im getting

swapon: /dev/sda2: Invalid argument

when i use swapon /dev/sda2 or swapon -a

/dev/sda2 swap swap defaults 0 0

line from my fstab, plus i use crypto root and home, two separate partitions using Luks, thanks for help!

Last edited by nst (2007-11-02 14:02:40)

Offline

#2 2007-11-02 13:37:09

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: .:[solved]:.swap activation problem

Hi nst,
post the output of this command (run it as root):

 fdisk -l /dev/sda

Offline

#3 2007-11-02 13:50:15

nst
Member
From: Czech Republic
Registered: 2007-04-02
Posts: 25

Re: .:[solved]:.swap activation problem

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x77777777

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           5       40162   83  Linux
/dev/sda2               6          71      530145   82  Linux swap / Solaris
/dev/sda3              72        1091     8193150   83  Linux
/dev/sda4            1092       14593   108454815   83  Linux

Offline

#4 2007-11-02 13:54:23

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: .:[solved]:.swap activation problem

Use this command to reinitialize the swap partition (as root):

mkswap /dev/sda2

and then:

swapon /dev/sda2

Offline

#5 2007-11-02 14:02:17

nst
Member
From: Czech Republic
Registered: 2007-04-02
Posts: 25

Re: .:[solved]:.swap activation problem

thanks smile)

Offline

Board footer

Powered by FluxBB