🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3927

Bug#532896: debian-installer: add support for using whole disk device instead of partitioning

#3927
From: Ian Jackson
Date: Mon, 09 Nov 2026 19:50
64 lines
5197 bytes
Felix Zielcke writes ("Re: Bug#532896: debian-installer: add support for using whole disk device instead of partitioning"):
> Am Freitag, den 12.06.2009, 17:17 +0200 schrieb Sascha Silbe:
> > Please add support for using whole disk devices for file systems instead 
> > of having to partition them. This is especially useful on virtual 
> > machines where the underlying disk device can be resized easily.

I just ran into this.  I am trying to install a VM under Xen.  I have
allocated separate LVM volumes in the host for the guest's various
"partitions" but the d-i partitioner won't let me use them.  It wants
to put a partition table on each one.

That's undesirable because then, if I want to resize the volume later,
I have to wrestle a resized partition table.

Whereas, using the whole virtual block device would be fine.

> grub would then use blocklists for the stage2 or core.img like LILO for
> the installed kernels.

In my configuration I'm not using grub at all.  The VM host directly
reads the kernel from the guest filesystem using a program called
"pygrub".

Another common configuration is to have the host provide a copy of
grub, incliuding the whole of the stage2.

In both these cases, there is no need to use any kind of "embedding"
technique.

> And second, you can't rely that the filesystem even leaves enough space
> in the beginning for some bootcode.
> For example XFS stores it's superblock right at the beginning of it.
> The first 4 bytes of an XFS filesystem contain the magic XFSB.

No, no bootcode is needed.  That will work just fine.

I have several existing Xen VMs which are set up this way.  It is much
better than using multiple "partitions" in a single block device.
Partition tables only make sense on a volume that (a) needs to be
booted from directly without assitance from an outside hypervisor and
(b) can't be resized (ie, baremetal or simulations thereof).

For scenarios where bootcode is wanted, I think possibly using a
single virtual volume as a physical volume for LVM within the guest,
would probably work, but I'm no bootloader expert so I'm not sure.

> If that gets implemented there should be a big warning.

So at the very least if the underlying block device is a Xen virtual
block device, this is very normal and readily supported.  It does not
deserve a warniong.

For now I guess I will let d-i have its "partition" and then shut down
the guest and reoeganise the storage from the outside shortly after
the installation, which I can do by copying.  That's easy to do now
before the volumes become too large.

Ian.

-- 
Ian Jackson <ijackson@chiark.greenend.org.uk>   These opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.
Technical Details
Message-ID: <NXDxo-aS5U-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <cMgRW-7sf-27@gated-at.bofh.it> <cMhNN-w5-9@gated-at.bofh.it> <cMgRW-7sf-27@gated-at.bofh.it> <cMhNN-w5-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Ian Jackson <ijackson@chiark.greenend.org.uk>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.boot
Subject: Bug#532896: debian-installer: add support for using whole disk device instead of partitioning
Date: Mon, 09 Nov 2026 20:50:02 +0100
Message-ID: <NXDxo-aS5U-5@gated-at.bofh.it>
References: <cMgRW-7sf-27@gated-at.bofh.it> <cMhNN-w5-9@gated-at.bofh.it> <cMgRW-7sf-27@gated-at.bofh.it> <cMhNN-w5-9@gated-at.bofh.it>
X-Original-To: Felix Zielcke <fzielcke@z-51.de>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov  9 19:47:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Ian Jackson <ijackson@chiark.greenend.org.uk>, 532896@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-boot@lists.debian.org
X-Debian-Pr-Message: followup 532896
X-Debian-Pr-Package: debian-installer
X-Debian-Pr-Source: debian-installer
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: VM 8.2.0b under 27.1 (x86_64-pc-linux-gnu)
Dkim-Signature-Warning: NOTE REGARDING DKIM KEY COMPROMISE https://www.chiark.greenend.org.uk/dkim-rotate/README.txt https://www.chiark.greenend.org.uk/dkim-rotate/90/90f6fb5be3e39f68d97f4610cb7561e6.pem
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001712
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 64
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Sascha Silbe <sascha-debian-bugs-debian-installer-1@silbe.org>,
    532896@bugs.debian.org
X-Original-Date: Mon, 9 Nov 2026 19:45:01 +0000
X-Original-Message-ID: <27378.8893.728253.814620@chiark.greenend.org.uk>
X-Original-References: <20090612151711.GA11935@twin.sascha.silbe.org> <1244820886.3181.12.camel@fz.local> <20090612151711.GA11935@twin.sascha.silbe.org> <1244820886.3181.12.camel@fz.local>