unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: tumashu <tumashu@163.com>
Cc: guix <guix-devel@gnu.org>
Subject: Re: guix system reconfigure can not work.
Date: Fri, 13 Jan 2017 10:42:01 +0100	[thread overview]
Message-ID: <87d1fr70uu.fsf@elephly.net> (raw)
In-Reply-To: <247a1555.9823.15997036b51.Coremail.tumashu@163.com>

tumashu 你好!

> guix system: loading new services: file-system-/mnt/backup1 file-system-/mnt/backup2...
> shepherd: Evaluating user expression (register-services (primitive-load "/gn...") #).
>
> ****looooooooooooooooooooooong time and I have to C-c C-c it.*****

Did it actually mount the file systems at this point?

[…]

>  ;; 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")))
>
>  (swap-devices '("/dev/sda5"))
>
>  (file-systems (cons* (file-system
>                        (device "/dev/sda1")
>                        (title 'device)
>                        (mount-point "/")
>                        (type "ext4"))
>                       (file-system
>                        (device "/dev/sda7")
>                        (title 'device)
>                        (mount-point "/home")
>                        (type "ext4"))
>                       (file-system
>                        (device "/dev/sda8")
>                        (title 'device)
>                        (mount-point "/mnt/backup1")
>                        (type "ext4"))
>                       (file-system
>                        (device "/dev/sda6")
>                        (title 'device)
>                        (mount-point "/mnt/backup2")
>                        (type "ext4"))
>                       %base-file-systems))

I suggest not to use these arbitrary device nodes.  Use labels or uuids,
because unlike device nodes they are stable.

You will also have to make sure that the devices already contain file
systems.  Guix is not going to format the disks for you.

-- 
Ricardo / 吴珂多

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-01-13  9:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13  8:48 guix system reconfigure can not work tumashu
2017-01-13  9:42 ` Ricardo Wurmus [this message]
2017-01-13 11:04   ` tumashu
2017-01-13 11:06 ` John Darrington
2017-01-13 11:19   ` tumashu
2017-01-13 17:28 ` Ludovic Courtès
2017-01-13 18:23   ` tumashu
2017-01-14 13:42     ` Ludovic Courtès
2017-01-14 13:52       ` tumashu
2017-01-14 17:26         ` Ludovic Courtès
2017-01-13 18:33   ` tumashu

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=87d1fr70uu.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=tumashu@163.com \
    /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.
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).