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: Tue, 20 Jun 2017 00:48:30 +0200	[thread overview]
Message-ID: <20170619224830.GA3205@tansi.org> (raw)
In-Reply-To: <b32aa6da-111b-dd7b-f274-4aea58f24944@eschenberg.eu>

Hi Sven,

On Tue, Jun 20, 2017 at 00:04:36 CEST, Sven Eschenberg wrote:
> Hi Arno,
> 
> as an addition, kpartx (not partx) should be able to do that aswell.  It
> will however not tell the kernel about partitions on a device, but rather
> setup dm mappings for each partition.

Interesting. That may be useful in some scenarios, exspecially
for experiments and temporary mounts. Seems also to be used
by some (most?) life-CDs for the disks found.

> Just wanted to add this in.  And I am somehwat surprised that partprobe
> actually works this way.  That makes me wonder, why the kernel does detect
> partitions on physical disks, but not on other block devices (be it the
> current case, or NBDs, iSCSI BDs or whatever)?  Does the kernel simply
> decide to only scan 'real' block devices by itself.  Because it does so
> even after boot, when a disk comes up by hotplugging etc.  .

I think the kernel does not do any partition detection except
on boot. When you hotplug a disk, udev may be what actually 
does the partition detection on it, probably using a similar
mechanism as partprobe or kpartx.

I may be off here, but so far partprobe has worked well for me,
due care stipulated (i.e. do not start to change mounted or
mapped partitions and the like).

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-19 22:48 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
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 [this message]

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=20170619224830.GA3205@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.