From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument Date: Wed, 28 Nov 2018 08:24:21 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_129509_1570434398.1543389861836" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRuKM-0004GI-D1 for bug-guix@gnu.org; Wed, 28 Nov 2018 02:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRuKI-0003bt-E3 for bug-guix@gnu.org; Wed, 28 Nov 2018 02:32:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRuKI-0003bb-4o for bug-guix@gnu.org; Wed, 28 Nov 2018 02:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gRuKI-0008Iq-0x for bug-guix@gnu.org; Wed, 28 Nov 2018 02:32:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRuJh-0004BE-CD for bug-guix@gnu.org; Wed, 28 Nov 2018 02:31:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRuJd-0001Qs-DY for bug-guix@gnu.org; Wed, 28 Nov 2018 02:31:25 -0500 Received: from w1.tutanota.de ([81.3.6.162]:60354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRuJc-0001L9-Pi for bug-guix@gnu.org; Wed, 28 Nov 2018 02:31:21 -0500 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id CDBBEFA0D20 for ; Wed, 28 Nov 2018 07:24:21 +0000 (UTC) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 33537@debbugs.gnu.org ------=_Part_129509_1570434398.1543389861836 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Guix is not possible to start swap device/dev/sda2. I noticed this: # guix system reconfigure /etc/config.scm ... guix system: error: exception caught while executing 'start' on service 'sw= ap-/dev/sda2': In procedure swapon: "/dev/sda2": Invalid argument... # cat /etc/config.scm ... (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale= "en_US.utf8") =C2=A0 (bootloader (bootloader-configuration =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (bootloader grub-bootloader) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (target "/dev/sda"))) =C2=A0 (file-systems (cons (file-system =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (device "/d= ev/sda1") (mount-point "/") (type "ext4")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %base-file-systems)) =C2=A0 (swap-devices '("/dev/sda2")) =C2=A0 (users (cons* (user-account (name "bob") (group "users")...... I've read manual and I do not know what is wrong: https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi?id=3D1c6c0ad0= 67b558fcbebd87e8cb51d342d808163e#n6878 # free -m =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 total=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 used=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 free=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 shared=C2=A0 bu= ff/cache=C2=A0=C2=A0 available Mem:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1880=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1187=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 44=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 18= 1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 649=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 701 Swap:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 Swap really did not worked ever in my Guix installation. Let me know what o= ught to be done? ------=_Part_129509_1570434398.1543389861836 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Guix is not possible to start swap device/dev/sda2. I noticed this:

# guix system reconfigure /etc/config.scm
...
guix system: error: exception caught whil= e executing 'start' on service 'swap-/dev/sda2':
In procedure swapon: = "/dev/sda2": Invalid argument
...

# cat /etc/config.scm
...
(oper= ating-system (host-name "antelope") (timezone "Europe/Moscow= ") (locale "en_US.utf8")
  (bootloader (bootloader= -configuration
         &= nbsp;      (bootloader grub-bootloader)
 = ;            &n= bsp;  (target "/dev/sda")))
  (file-systems (cons = (file-system
         &nb= sp;            =   (device "/dev/sda1") (mount-point "/") (type &qu= ot;ext4"))
         =              %b= ase-file-systems))
  (swap-devices '("/dev/sda2"))

  (users (cons* (user-account (name "bob") (group &qu= ot;users")...
...

I've read= manual and I do not know what is wrong:


# free -m
 &nb= sp;            total=         used    &nbs= p;   free      shared  buff/cache&n= bsp;  available
Mem:       &nb= sp;   1880        1187 &n= bsp;        44    &n= bsp;    181         = 649         701
Swap: &nb= sp;           0 &nbs= p;         0    = ;       0

Swap really did not worked ever in my Guix installation. Let= me know what ought to be done?
------=_Part_129509_1570434398.1543389861836--