help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERROR: In procedure swapon: "/dev/sda1": Invalid argument


From: Ludovic Courtès
Subject: Re: ERROR: In procedure swapon: "/dev/sda1": Invalid argument
Date: Mon, 18 Apr 2016 10:02:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Thierry Micoud <address@hidden> skribis:

> ERROR: In procedure swapon: "/dev/sda1": Invalid argument

[...]

> and this is the relevent output of fdisk -l
>
>     Disk /dev/sda: 232.9 GiB, 250000000000 bytes, 488281250 sectors
>     Units: sectors of 1 * 512 = 512 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disklabel type: dos
>     Disk identifier: 0x659d198e
>
>     Device     Boot     Start       End   Sectors  Size Id Type
>     /dev/sda1            2048   8390655   8388608    4G 82 Linux swap / 
> Solaris

According to swapon(2), this most likely means that /dev/sda1 does not
contain a valid swap signature.

If that is the case, it can be fixed with:

  mkswap /dev/sda1
  herd start swap-/dev/sda1

HTH!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]