From: Thierry Micoud <thierrymicoud@gmail.com>
To: help-guix@gnu.org
Subject: ERROR: In procedure swapon: "/dev/sda1": Invalid argument
Date: Sun, 17 Apr 2016 21:18:49 +0100 [thread overview]
Message-ID: <CANS=vQfV7m1Tqg5MXLwXXGi3VyQyi35XVHXB2s6vGui4cFKYfw@mail.gmail.com> (raw)
Hi,
Ive been trying to use a swap partition but as the subject title
indicates i get the following error
ERROR: In procedure swapon: "/dev/sda1": Invalid argument
when i do
#sudo guix system reconfigure /etc/config.scm
this is the config.scm file
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop networking ssh)
(use-package-modules certs rsync zsh suckless emacs vim tmux wm admin)
;; For those that want to use the zsh shell
(define zsh-location
#~(string-append #$zsh "/bin/zsh"))
(operating-system
(host-name "yuhata")
(hosts-file (local-file (string-append "/etc/hosts-file")))
(timezone "Europe/London")
(locale "en_GB.UTF-8")
;; Assuming /dev/sdX is the target hard disk, and "my-root"
;; is the label of the target root file system.
(bootloader (grub-configuration (device "/dev/sda")))
(file-systems (cons* (file-system
(device "root")
(title 'label)
(mount-point "/")
(type "ext4"))
(file-system
(device "/dev/sda3")
;(title 'label)
(mount-point "/home")
(type "ext4"))
%base-file-systems))
(swap-devices '("/dev/sda1"))
(users (cons (user-account
(name "tmx")
(group "users")
(shell zsh-location)
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/tmx"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
dwm tmux emacs vim dmenu i3-wm htop
rsync
%base-packages))
(services (cons* (lsh-service)
(console-keymap-service "uk")
%desktop-services))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
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
/dev/sda2 8390656 385878015 377487360 180G 83 Linux
/dev/sda3 385878016 488281249 102403234 48.8G 83 Linux
I cant see what im doing wrong
any help, sugestions will be greatly apreciated
Many thnaks
thierry
next reply other threads:[~2016-04-17 20:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 20:18 Thierry Micoud [this message]
2016-04-18 8:02 ` ERROR: In procedure swapon: "/dev/sda1": Invalid argument Ludovic Courtès
2016-04-18 22:20 ` Thierry Micoud
2016-04-19 10:42 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANS=vQfV7m1Tqg5MXLwXXGi3VyQyi35XVHXB2s6vGui4cFKYfw@mail.gmail.com' \
--to=thierrymicoud@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).