All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: util-linux@vger.kernel.org
Subject: losetup on a image file containing (GPT) partition doesn't create partition devices
Date: Fri, 03 Oct 2014 11:44:32 +0200	[thread overview]
Message-ID: <542E7000.3040309@gmail.com> (raw)

Hello,

I have a disk image file which is using GPT and embeds 2 partitions.

I'm setting up a loop device with:

 $ losetup -P -f disk.img

and expect the partition devices (loop0p[12] for example) to be
automatically created.

During the loop setup, udev reposrts:

 $ udevadm monitor
 KERNEL[88697.611649] change   /devices/virtual/block/loop0 (block)
 UDEV  [88697.612488] change   /devices/virtual/block/loop0 (block)
 KERNEL[88698.738369] change   /devices/virtual/block/loop0 (block)
 UDEV  [88698.744727] change   /devices/virtual/block/loop0 (block)

The loop kernel module was loaded with max_part=16

The weird thing is that if I'm setting up the loop device using a blank
image file and create the partitions (using gdisk) on this loop dev, it
works.

I'm not sure if this is an issue to util-linux though and if it's not,
sorry for the noise.

Thanks.

             reply	other threads:[~2014-10-03  9:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03  9:44 Francis Moreau [this message]
2014-10-03 14:29 ` losetup on a image file containing (GPT) partition doesn't create partition devices Dale R. Worley
2014-10-03 19:58   ` Dale R. Worley
2014-10-03 20:26     ` Francis Moreau
2014-10-04 19:35       ` Francis Moreau
2014-10-06 15:47         ` Dale R. Worley
2014-10-06 15:56           ` Francis Moreau
2014-10-27 20:16             ` Mike Frysinger
2014-12-02 19:29               ` Phillip Susi
2014-12-03  8:36                 ` Karel Zak
2014-12-03 14:49                   ` Phillip Susi
2014-12-03 16:10                     ` Karel Zak
2015-02-16  8:52                 ` Mike Frysinger

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=542E7000.3040309@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /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.