All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] help mounting partitions in an encrypted disk after first reboot
Date: Sun, 18 Jun 2017 20:03:24 +0200	[thread overview]
Message-ID: <20170618180324.GA12330@tansi.org> (raw)
In-Reply-To: <15cbc39b494.105b4f071169524.5476164598177432600@metempsy.com>

On Sun, Jun 18, 2017 at 19:21:57 CEST, Julio Gago wrote:
>  ---- On Sun, 18 Jun 2017 17:40:54 +0200 Arno Wagner <arno@wagner.name> wrote ---- 
>  > Hi Julio, 
>  >  
>  > the partitions do not show up on reboot as the kernel cannot 
>  > see them. The partition table it would need to scan is 
>  > in the encrypted LUKS container and as that is still 
>  > closed on boot, hence the kernel has no chance to look at it. 
>  >  
>  > A fix might be to just call "partprobe" after opening the 
>  > LUKS container. That scans all reachable devices for 
>  > partition tables. It also works directly after repartitioning, 
>  > i.e. without a reboot. 
>  >  
>  > partptobe is part of the parted package (at least on Debian). 
> 
> Thanks Arno!!!!
> 
> That fixed it!!!!
> 
> I was so close to finding this :).  I can see in my history that I tried
> with "partx" (it does the same, in theory, or something similar in the
> realm of my understanding) and that I did "man partprobe", probably saw it
> in the "see also".
> 
> I am wondering if we should add a section about this in the FAQ.  Or maybe
> this is not frequent enough?
> 
> I volunteer myself to do the update to the FAQ if you guys want.
> 
> Julio

You are welcome.

I think I will do an  FAQ item on "Partitioning a LUKS container", 
that would also describe this effect and the need for partprobe or 
something like it.

And yes, this is rare. I believe this is the first time somebody
had this problem. Most people will use unpartitioned LUKS
containers or use LVM.

Regards,
Arno

-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier

  reply	other threads:[~2017-06-18 18:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-18  6:49 [dm-crypt] help mounting partitions in an encrypted disk after first reboot Julio Gago
2017-06-18  7:25 ` Michael Kjörling
2017-06-18  8:30   ` Julio Gago
2017-06-18 15:25   ` Carl-Daniel Hailfinger
2017-06-18 15:51     ` Arno Wagner
2017-06-18 22:26       ` Carl-Daniel Hailfinger
2017-06-18 23:01         ` Arno Wagner
2017-06-19 19:02           ` Carl-Daniel Hailfinger
2017-06-19 21:34             ` Arno Wagner
2017-06-18 15:40 ` Arno Wagner
2017-06-18 17:21   ` Julio Gago
2017-06-18 18:03     ` Arno Wagner [this message]
2017-06-18 19:13       ` Julio Gago
2017-06-18 20:07         ` Arno Wagner
2017-06-18 18:45   ` Michael Kjörling
2017-06-18 19:03     ` Arno Wagner
2017-06-19 22:04   ` Sven Eschenberg
2017-06-19 22:48     ` Arno Wagner

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170618180324.GA12330@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.