From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: guix system reconfigure can not work. Date: Fri, 13 Jan 2017 10:42:01 +0100 Message-ID: <87d1fr70uu.fsf@elephly.net> References: <247a1555.9823.15997036b51.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRyNS-0004NE-JY for guix-devel@gnu.org; Fri, 13 Jan 2017 04:42:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRyNO-000244-Qp for guix-devel@gnu.org; Fri, 13 Jan 2017 04:42:30 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRyNO-00023d-JH for guix-devel@gnu.org; Fri, 13 Jan 2017 04:42:26 -0500 In-reply-to: <247a1555.9823.15997036b51.Coremail.tumashu@163.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: tumashu Cc: guix 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