guix-devel
[Top][All Lists]
Advanced

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

Re: guix system reconfigure can not work.


From: Ricardo Wurmus
Subject: Re: guix system reconfigure can not work.
Date: Fri, 13 Jan 2017 10:42:01 +0100
User-agent: mu4e 0.9.18; emacs 25.1.1

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 via email to

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