unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument
@ 2018-11-28  7:24 znavko
  2018-11-28  7:30 ` znavko
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: znavko @ 2018-11-28  7:24 UTC (permalink / raw)
  To: 33537

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]

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 'swap-/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")
  (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (target "/dev/sda")))
  (file-systems (cons (file-system
                        (device "/dev/sda1") (mount-point "/") (type "ext4"))
                      %base-file-systems))
  (swap-devices '("/dev/sda2"))

  (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=1c6c0ad067b558fcbebd87e8cb51d342d808163e#n6878 <https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi?id=1c6c0ad067b558fcbebd87e8cb51d342d808163e#n6878>


# free -m
              total        used        free      shared  buff/cache   available
Mem:           1880        1187          44         181         649         701
Swap:             0           0           0


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

[-- Attachment #2: Type: text/html, Size: 2944 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument
  2018-11-28  7:24 bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument znavko
@ 2018-11-28  7:30 ` znavko
       [not found] ` <handler.33537.B.154339029831885.ack@debbugs.gnu.org>
  2018-11-28 13:27 ` bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument Ludovic Courtès
  2 siblings, 0 replies; 7+ messages in thread
From: znavko @ 2018-11-28  7:30 UTC (permalink / raw)
  To: 33537

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

# fdisk -l
...
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 230000000 229997953 109.7G 83 Linux
/dev/sda2       230000640 234441647   4441008   2.1G 82 Linux swap / Solaris

[-- Attachment #2: Type: text/html, Size: 571 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#33537: Acknowledgement (guix system error: In procedure swapon: "/dev/sda2": Invalid argument)
       [not found] ` <handler.33537.B.154339029831885.ack@debbugs.gnu.org>
@ 2018-11-28  7:34   ` znavko
  2018-11-28  8:01     ` Julien Lepiller
  0 siblings, 1 reply; 7+ messages in thread
From: znavko @ 2018-11-28  7:34 UTC (permalink / raw)
  To: 33537

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]



-- 
 Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: 
 https://tutanota.com


Nov 28, 2018, 10:32 AM by help-debbugs@gnu.org:

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  > bug-guix@gnu.org <mailto:bug-guix@gnu.org>
>
> If you wish to submit further information on this problem, please
> send it to > 33537@debbugs.gnu.org <mailto:33537@debbugs.gnu.org>> .
>
> Please do not send mail to > help-debbugs@gnu.org <mailto:help-debbugs@gnu.org>>  unless you wish
> to report a problem with the Bug-tracking system.
>
> -- 
> 33537: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33537 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33537>
> GNU Bug Tracking System
> Contact > help-debbugs@gnu.org <mailto:help-debbugs@gnu.org>>  with problems
>

[-- Attachment #2: Type: text/html, Size: 2025 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#33537: Acknowledgement (guix system error: In procedure swapon: "/dev/sda2": Invalid argument)
  2018-11-28  7:34   ` bug#33537: Acknowledgement (guix system error: In procedure swapon: "/dev/sda2": Invalid argument) znavko
@ 2018-11-28  8:01     ` Julien Lepiller
  2018-11-28  9:27       ` znavko
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Lepiller @ 2018-11-28  8:01 UTC (permalink / raw)
  To: znavko, 33537

Just to be sure, could you run "mkswap /dev/sda2"?

Le 28 novembre 2018 08:34:33 GMT+01:00, znavko@tutanota.com a écrit :
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#33537: Acknowledgement (guix system error: In procedure swapon: "/dev/sda2": Invalid argument)
  2018-11-28  8:01     ` Julien Lepiller
@ 2018-11-28  9:27       ` znavko
  2018-11-28 13:28         ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: znavko @ 2018-11-28  9:27 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 33537

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

Thank you, Julien Lepiller! That exactly was what I need! 


Nov 28, 2018, 11:01 AM by julien@lepiller.eu:

> Just to be sure, could you run "mkswap /dev/sda2"?
>
> Le 28 novembre 2018 08:34:33 GMT+01:00, > znavko@tutanota.com <mailto:znavko@tutanota.com>>  a écrit :
>
>>
>>


[-- Attachment #2: Type: text/html, Size: 740 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument
  2018-11-28  7:24 bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument znavko
  2018-11-28  7:30 ` znavko
       [not found] ` <handler.33537.B.154339029831885.ack@debbugs.gnu.org>
@ 2018-11-28 13:27 ` Ludovic Courtès
  2 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2018-11-28 13:27 UTC (permalink / raw)
  To: znavko; +Cc: 33537

Hi,

<znavko@tutanota.com> skribis:

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

According to swapon(2), there are 3 conditions that can lead to this
error:

       EINVAL The file path exists, but refers neither to a regular  file  nor  to  a
              block device;

       EINVAL (swapon())  The  indicated path does not contain a valid swap signature
              or resides on an in-memory filesystem such as tmpfs(5).

       EINVAL (since Linux 3.4)
              (swapon()) An invalid flag value was specified in flags.

Did you run “mkswap /dev/sda2” beforehand?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#33537: Acknowledgement (guix system error: In procedure swapon: "/dev/sda2": Invalid argument)
  2018-11-28  9:27       ` znavko
@ 2018-11-28 13:28         ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2018-11-28 13:28 UTC (permalink / raw)
  To: znavko; +Cc: 33537

<znavko@tutanota.com> skribis:

> Thank you, Julien Lepiller! That exactly was what I need! 

Ah, good.  :-)

Closing!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-28 13:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28  7:24 bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument znavko
2018-11-28  7:30 ` znavko
     [not found] ` <handler.33537.B.154339029831885.ack@debbugs.gnu.org>
2018-11-28  7:34   ` bug#33537: Acknowledgement (guix system error: In procedure swapon: "/dev/sda2": Invalid argument) znavko
2018-11-28  8:01     ` Julien Lepiller
2018-11-28  9:27       ` znavko
2018-11-28 13:28         ` Ludovic Courtès
2018-11-28 13:27 ` bug#33537: guix system error: In procedure swapon: "/dev/sda2": Invalid argument Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).