From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Raghav Gururajan" Subject: Help with auto-mounting a specific file-system. Date: Mon, 20 Apr 2020 06:37:23 +0000 Message-ID: <2638304b56ed648dd780625b49e3bb76@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38068 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQQ3d-0006mN-0d for help-guix@gnu.org; Mon, 20 Apr 2020 02:37:29 -0400 Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQQ3c-0007kG-Bt for help-guix@gnu.org; Mon, 20 Apr 2020 02:37:28 -0400 Received: from knopi.disroot.org ([178.21.23.139]:44720) by eggs1p.gnu.org with esmtps (TLS1.2:DHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1jQQ3b-0007cT-KZ for help-guix@gnu.org; Mon, 20 Apr 2020 02:37:28 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DBBD425274 for ; Mon, 20 Apr 2020 08:37:24 +0200 (CEST) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aMsHKo5RWW6V for ; Mon, 20 Apr 2020 08:37:23 +0200 (CEST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hello Guix!=0A=0AI wanted to make use of my memory card slot in my X200-T= and decided to use it to store cloned git repos. I have placed a 32GB ca= rd, with formatted btrfs file-system, with label "repo". I wanted to auto= -mount this file-system at ~/repo. So I used the following in 'file-syste= ms' section of my config.scm.=0A=0A (file-systems (append=0A = (list (file-system=0A (device (uuid "1234-AB= CD"))=0A (mount-point "/")=0A = (type "btrfs")=0A (needed-for-boot? #t)=0A = (dependencies mapped-devices))=0A = (file-system=0A (device (file-system-label = "repo"))=0A (mount-point "/home/user/repo")=0A = (type "btrfs")=0A (needed-f= or-boot? #f)))=0A %base-file-systems))=0A=0ANow, the setu= p work and the file-system 'repo' gets auto-mounted at ~/repo. But I am f= acing two issues:=0A=0A[1] ~/repo becomes 'root protected' and stays like= that.=0A[2] Despite declaring `(needed-for-boot? #f)`, system does not b= oot when the memory card is absent/unplugged.=0A=0AHow do I overcome thes= e issues?=0A=0AThank you!=0A=0ARegards,=0ARG.