From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54516C433C1 for ; Tue, 23 Mar 2021 22:46:43 +0000 (UTC) Received: from mail.server123.net (mail.server123.net [78.46.64.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CEA1E619DD for ; Tue, 23 Mar 2021 22:46:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CEA1E619DD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-crypt-bounces@saout.de X-Virus-Scanned: amavisd-new at saout.de Authentication-Results: mail.server123.net (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::72f; helo=mail-qk1-x72f.google.com; envelope-from=svartchimpans@gmail.com; receiver= Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 23 Mar 2021 23:43:34 +0100 (CET) Received: by mail-qk1-x72f.google.com with SMTP id c3so16204044qkc.5 for ; Tue, 23 Mar 2021 15:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2jCwJSC6NtaYVEjDyrBeGaWNUVD9SQEMEXf5lxhI9rY=; b=dVWcYYo1LOHux286WQjggfHCvAd9GYD+SIVFV06hro+4QRyJPXlPSq7BlynwQ5/PPr NioMCNAaffYWXmKa2t0YURB5UK+S5743SsgR+WTGA0BXPMaHNszDh7ID9SAbx8jpDqaY emU2hb/671ucVQ+TYGfRDMsF7yloJvSOCDuKUT4MR4LslWhmrIzYs4uNCgab/whdsWTV hfodtHZ96MgD8Gl44o2GA2KvGO9twt+MlISjMNNdMyus40A847QsONmDfrFrkuIbMOfk s8oOAjGyORw76vrXs86LaHpt64wvT5JiwSiWt6tMm6I05mhXUfHOz6ROpjLI0MpJvox4 R1FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2jCwJSC6NtaYVEjDyrBeGaWNUVD9SQEMEXf5lxhI9rY=; b=Fu+IX8HNH0VjUUY7pL6jwAbnTplYbXMZCefEU7/zFWLQdI0pZl/fOliz5xJ6xGOof7 hC0njnc/u+hzGx2wBNc4YqR5QfsmqLoLxQM2MhjTfIswCo6/gIZSRcZLU286iDoKytUT mksc4fIc9uc/oN8rSLKD3BtHba5xtemmsHLaCaDkrPBX/yFoUEDjdAmiVzp79kqk7BOY 4g7uGHI+pFjTDOpjhDKWQKO3IXSeMDvbiDsYptIGnPngGcCxFzvGseosEnkldt5mw0NU ena+T7KG5GFjQjmqgYfR4q504uzcQM5UB8ALDu5x0JrbghaFFwqEWK8OBtyyHZAV6AQH KHXw== X-Gm-Message-State: AOAM531i5QFnEi/bSPjTT6mug0hFd8Ga6ywymS/Yu5PLBGCyRB6xJwUU I9Hxg6znxyF8u6hAmIT/CCDWPpQNRLaDG5bGIS4= X-Google-Smtp-Source: ABdhPJyGGV6GLQQz2STBmL86sNzuQRroRpi8Ci2OvybVfuczTQPEarZ9S7Pav91Lnr2auAgr7ztv1qag4xVk5A3QtUQ= X-Received: by 2002:a05:620a:410f:: with SMTP id j15mr351148qko.424.1616539412765; Tue, 23 Mar 2021 15:43:32 -0700 (PDT) MIME-Version: 1.0 References: <643D0D27-E48A-4684-88B8-C0EE72B0DE7D@mousecar.com> <09a3e2ea-e1f6-3313-ae93-af89c489fafc@slint.fr> In-Reply-To: <09a3e2ea-e1f6-3313-ae93-af89c489fafc@slint.fr> From: Johnny Dahlberg Date: Tue, 23 Mar 2021 23:43:21 +0100 Message-ID: To: Didier Spaier Message-ID-Hash: STJDIFELBAKLMI337ZRMCJ7W55L467BK X-Message-ID-Hash: STJDIFELBAKLMI337ZRMCJ7W55L467BK X-MailFrom: svartchimpans@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dm-crypt.saout.de-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: dm-crypt mail list X-Mailman-Version: 3.3.2 Precedence: list Subject: [dm-crypt] Re: Using dm-crypt: whole disk encryption List-Id: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============2365535175859740299==" --===============2365535175859740299== Content-Type: multipart/alternative; boundary="000000000000769e6e05be3be935" --000000000000769e6e05be3be935 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 23 Mar 2021 at 00:59, Didier Spaier wrote: > Le 22/03/2021 =C3=A0 17:43, Johnny Dahlberg a =C3=A9crit : > > On Sun, 21 Mar 2021 at 17:20, ken > > wrote: > > > > A new laptop is on the way and I'm considering using dm-crypt 2 > > secure the whole SSD. I have some basic questions though. > > > > Is it possible to encrypt the entire Drive, including all the syste= m > > files? > > > Yes, you can do this extremely easily in distributions that support it. > > What does "it" mean? Well, simply: Placing the kernel and bootloader on > > an EFI /boot/efi partition and using that as a bootstrap to decrypt the > > main partition. And auto-updating it every time the main system kernel > > is updated. > > I highly recommend my favorite Linux distro, which handles all of that > > automatically and asks if you want Full Disk Encryption during install: > > https://pop.system76.com/ > > Well Slint can do that as well in 'Auto' mode, with a simpler layout: > Ah. The layout you describe is basically the same thing as Pop!_OS full disk encryption. But Pop requires LVM on top of LUKS. I wish it didn't require LVM. But at least it's nice since LVM lets you "repartition" inside the encrypted disk easily by just adding more LVM volumes. I think all distros that support FDE do basically the layout you described. Because EFI/BIOS don't support encrypted bootloaders. So the boot partition must always be unencrypted. And then the bootloader needs something to decrypt the disk, and the easiest way to do that is initrd/initramfs with a whole kernel on the unencrypted boot partition. Which decrypts the disk and passes control over to the main system kernel (via chroot and stuff like that). This process is universal. You mention using grub and BIOS boot though. I've heard that it's painfully slow to boot LUKS systems via grub? I haven't tried grub in years, but I use UEFI systemd-boot and it's instant (the decryption unlock screen shows up in ~3 seconds, and the desktop is booted in another ~5 seconds). It's really fast. > > As an aside, instead of a swap partition a small swap file is set up, > as well as a swap space in zram with a higher priority. > > That's nice. I don't use swap at all (I have 64GB RAM) but I've been reading about zram which does in-ram compression, that's a nice thing. Thank you for reminding me to do that. > Out of curiosity I installed pop-os in a Qemu VM. I think it would be > fair to mention on the website that it's based on Ubuntu. I don't > like GNOME, but that's just a personal taste ;) > > True. They have a few small mentions about Ubuntu on the website though, but they definitely don't brag about it. It's a good thing though since it means the users can search the vast amounts of Ubuntu information online to find answers. As for GNOME, you can replace the desktop environment with one command. You just run the command for the environment you want, and it will appear on your login screen with a little down-arrow to log in using that particular environment, and you can have multiple at the same time. Here's a list of environments and how to install each: https://support.system76.com/articles/desktop-environment/ That Slint distro is news to me. It gives the impression that it's very niche (it has existed for over a decade but was added to Distrowatch last year :O). Can be nice to find cozy, unique distros like that, but it's hard to find documentation for problems or proper maintenance by the developers on such small distros. My choices for systems that "just work" would be Manjaro (Arch) and Pop (Ubuntu/Debian). Both are really, really polished. > Slint's website: https://slint.fr > Main server: http://slackware.uk/slint/x86_64/slint-14.2.1/ > > Best Regards, Johnny --000000000000769e6e05be3be935 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, 23 Mar 2021 at 00:59, Didier = Spaier <didier@slint.fr> wrote= :
Le 22/03/2021 = =C3=A0 17:43, Johnny Dahlberg a =C3=A9crit=C2=A0:
> On Sun, 21 Mar 2021 at 17:20, ken <gebser@mousecar.com
> <mailto:ge= bser@mousecar.com>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0A new laptop is on the way and I'm considering = using dm-crypt 2
>=C2=A0 =C2=A0 =C2=A0secure the whole SSD. I have some basic questions t= hough.
>
>=C2=A0 =C2=A0 =C2=A0Is it possible to encrypt the entire Drive, includi= ng all the system
>=C2=A0 =C2=A0 =C2=A0files?

> Yes, you can do this extremely easily in distributions that support it= .
> What does "it" mean? Well, simply: Placing the kernel and bo= otloader on
> an EFI /boot/efi partition and using that as a bootstrap to decrypt th= e
> main partition. And auto-updating it every time the main system kernel=
> is updated.
> I highly recommend my favorite Linux distro, which handles all of that=
> automatically and asks if you want Full Disk Encryption during install= :
> https://pop.system76.com/

Well Slint can do that as well in 'Auto' mode, with a simpler layou= t:

Ah. The layout you describe is basically t= he same thing as Pop!_OS full disk encryption. But Pop requires LVM on top = of LUKS. I wish it didn't require LVM. But at least it's nice since= LVM lets you "repartition" inside the encrypted disk easily by j= ust adding more LVM volumes.

I think all distros that support FDE do= basically the layout you described. Because EFI/BIOS don't support enc= rypted bootloaders. So the boot partition must always be unencrypted. And t= hen the bootloader needs something to decrypt the disk, and the easiest way= to do that is initrd/initramfs with a whole kernel on the unencrypted boot= partition. Which decrypts the disk and passes control over to the main sys= tem kernel (via chroot and stuff like that). This process is universal.
=
You mention using grub and BIOS boot though. I've heard that it'= ;s painfully slow to boot LUKS systems via grub? I haven't tried grub i= n years, but I use UEFI systemd-boot and it's instant (the decryption u= nlock screen shows up in ~3 seconds, and the desktop is booted in another ~= 5 seconds). It's really fast.
=C2=A0

As an aside, instead of a swap partition a small swap file is set up,
as well as a swap space in zram with a higher priority.


That's nice. I don't use swap at all (I h= ave 64GB RAM) but I've been reading about zram which does in-ram compre= ssion, that's a nice thing. Thank you for reminding me to do that.
= =C2=A0
Out of curiosity I installed pop-os in a Qemu VM. I think it would be
fair to mention on the website that it's based on Ubuntu. I don't like GNOME, but that's just a personal taste ;)


True. They have a few small mentions about Ubuntu= on the website though, but they definitely don't brag about it. It'= ;s a good thing though since it means the users can search the vast amounts= of Ubuntu information online to find answers.

As = for GNOME, you can replace the desktop environment with one command. You ju= st run the command for the environment you want, and it will appear on your= login screen with a little down-arrow to log in using that particular envi= ronment, and you can have multiple at the same time. Here's a list of e= nvironments and how to install each:

https://support.system76.com/articl= es/desktop-environment/

That Slint distro is news to me. = It gives the impression that it's very niche (it has existed for over a= decade but was added to Distrowatch last year :O). Can be nice to find coz= y, unique distros like that, but it's hard to find documentation for pr= oblems or proper maintenance by the developers on such small distros.
My choices for systems that "just work" would be Manjaro (Arch)= and Pop (Ubuntu/Debian). Both are really, really polished.
=C2=A0
=
Slint's website: https://slint.fr
Main server: http://slackware.uk/slint/x86_64/slint-14= .2.1/


Best Regards,

Johnny=C2= =A0
--000000000000769e6e05be3be935-- --===============2365535175859740299== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dm-crypt mailing list -- dm-crypt@saout.de To unsubscribe send an email to dm-crypt-leave@saout.de --===============2365535175859740299==--