From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Micoud Subject: Re: ERROR: In procedure swapon: "/dev/sda1": Invalid argument Date: Mon, 18 Apr 2016 23:20:21 +0100 Message-ID: References: <87vb3f8hu8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c12308a28f7e70530c9c463 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asSvE-0007IA-7R for help-guix@gnu.org; Tue, 19 Apr 2016 06:30:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asSv9-00014K-4d for help-guix@gnu.org; Tue, 19 Apr 2016 06:30:20 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asSv9-00014G-0v for help-guix@gnu.org; Tue, 19 Apr 2016 06:30:15 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:49196 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1asSv8-0005mw-1X for help-guix@gnu.org; Tue, 19 Apr 2016 06:30:14 -0400 Resent-To: help-guix@gnu.org Resent-Message-ID: <87r3e17ux7.fsf@gnu.org> In-Reply-To: <87vb3f8hu8.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= --94eb2c12308a28f7e70530c9c463 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 18 Apr 2016 09:03, "Ludovic Court=C3=A8s" wrote: > > Thierry Micoud 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 =3D 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=E2=80=99. That was exactly it. Being a fresh install I completely forgot to mkswap the partition during the install. Thanks very much for taking time to reply. I'm still finding my way round this distro, but enjoying very much the learning curve. Thierry --94eb2c12308a28f7e70530c9c463 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 18 Apr 2016 09:03, "Ludovic Court=C3=A8s" <ludo@gnu.org> wrote:
>
> Thierry Micoud <thierrym= icoud@gmail.com> skribis:
>
> > ERROR: In procedure swapon: "/dev/sda1": Invalid argume= nt
>
> [...]
>
> > and this is the relevent output of fdisk -l
> >
> >=C2=A0 =C2=A0 =C2=A0Disk /dev/sda: 232.9 GiB, 250000000000 bytes, = 488281250 sectors
> >=C2=A0 =C2=A0 =C2=A0Units: sectors of 1 * 512 =3D 512 bytes
> >=C2=A0 =C2=A0 =C2=A0Sector size (logical/physical): 512 bytes / 51= 2 bytes
> >=C2=A0 =C2=A0 =C2=A0I/O size (minimum/optimal): 512 bytes / 512 by= tes
> >=C2=A0 =C2=A0 =C2=A0Disklabel type: dos
> >=C2=A0 =C2=A0 =C2=A0Disk identifier: 0x659d198e
> >
> >=C2=A0 =C2=A0 =C2=A0Device=C2=A0 =C2=A0 =C2=A0Boot=C2=A0 =C2=A0 = =C2=A0Start=C2=A0 =C2=A0 =C2=A0 =C2=A0End=C2=A0 =C2=A0Sectors=C2=A0 Size Id= Type
> >=C2=A0 =C2=A0 =C2=A0/dev/sda1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 2048=C2=A0 =C2=A08390655=C2=A0 =C2=A08388608=C2=A0 =C2=A0 4G 82 Linu= x 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:
>
> =C2=A0 mkswap /dev/sda1
> =C2=A0 herd start swap-/dev/sda1
>
> HTH!
>
> Ludo=E2=80=99.

That was exactly it.
Being a fresh install I completely forgot to mkswap the partition during th= e install.

Thanks very much for taking time to reply.
I'm still finding my way round this distro, but enjoying very much the = learning curve.

Thierry

--94eb2c12308a28f7e70530c9c463--