Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #201536

Re: Won't boot if /, home, swap are encrypted

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Won't boot if /, home, swap are encrypted
Date 2018-10-23 04:30 +0200
Message-ID <wLUCd-8X-5@gated-at.bofh.it> (permalink)
References (3 earlier) <wLvXc-2hm-3@gated-at.bofh.it> <wLzxL-4fr-5@gated-at.bofh.it> <wLHOF-OM-5@gated-at.bofh.it> <wLKMx-2x6-3@gated-at.bofh.it> <wLMuZ-3Ao-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 22 Oct 2018 at 19:41:09 (+0200), Pascal Hambourg wrote:
> Le 22/10/2018 à 17:49, David Wright a écrit :
> > On Mon 22 Oct 2018 at 14:42:09 (+0200), Pascal Hambourg wrote:
> > > Le 22/10/2018 à 05:50, David Wright a écrit :
> > > > 
> > > > Noted above. This is to give you partition alignment of 1MiB for
> > > > efficiency. For GPT disks like this, I also add a 3MiB partition
> > > > (giving me 4MiB alignment) set to "BIOS boot" which, like it says,
> > > > allows it to be booted in legacy mode if ever required.
> > > 
> > > Why do you need 4 MiB alignment ?
> > 
> > As you probably know, I don't.
> 
> No, I didn't know, so I was curious. You may use an SSD with an
> uncommon 4 MiB erase block size. Less than one hour after I posted the
> question, I read a post from someone who considered converting
> partitions into LVM logical volumes without moving data and was
> fortunate they used 4 MiB alignment, as LVM uses 4 MiB blocks
> (extents) by default.

Sorry to make the assumption. For me, disks are spinning rust and SSDs
are something for the future. Perhaps. If I'm fortunate.

> > Is there any harm in always rounding up?
> 
> It wastes space.
> 
> > I'm just generous to Grub and its ilk.
> 
> GRUB does not even need a MiB BIOS boot partition. AFAICS, the biggest
> generated core image embedding all required drivers fits into 128 KiB.
> 
> > When you read posts about
> > partitioning, you realise there are some really stingy people out
> > there. They would probably be calculating a size that squeezes it into
> > the space before 1MiB.
> 
> This is what I do when converting a disk from DOS/MBR to GPT. There is
> plenty of space for a BIOS boot partition between the GPT partition
> table and 1 MiB, and the BIOS boot partition does not need to be
> aligned (no write performance issue).

The ones I've converted were old/relatively small (≤2TB) and had the
first partition starting at the traditional 63, so I'm repartitioning
from scratch anyway. But I can't get worked up over the odd MB. I've
seen big disks where the first partition starts at 2048 which is 8MiB
for 4K sector size.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Won't boot if /, home, swap are encrypted D&P Dimov <lddimov@yahoo.com> - 2018-10-21 15:30 +0200
  Re: Won't boot if /, home, swap are encrypted Matthew Crews <mailinglists@mattcrews.com> - 2018-10-21 15:40 +0200
  Re: Won't boot if /, home, swap are encrypted Roberto C. Sánchez <roberto@debian.org> - 2018-10-21 19:40 +0200
    Re: Won't boot if /, home, swap are encrypted D&P Dimov <lddimov@yahoo.com> - 2018-10-21 19:50 +0200
    Re: Won't boot if /, home, swap are encrypted Matthew Crews <mailinglists@mattcrews.com> - 2018-10-22 02:10 +0200
      Re: Won't boot if /, home, swap are encrypted D&P Dimov <lddimov@yahoo.com> - 2018-10-22 04:20 +0200
        Re: Won't boot if /, home, swap are encrypted David Wright <deblis@lionunicorn.co.uk> - 2018-10-22 07:10 +0200
      Re: Won't boot if /, home, swap are encrypted David Wright <deblis@lionunicorn.co.uk> - 2018-10-22 06:00 +0200
        Re: Won't boot if /, home, swap are encrypted Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-10-22 14:50 +0200
          Re: Won't boot if /, home, swap are encrypted David Wright <deblis@lionunicorn.co.uk> - 2018-10-22 18:00 +0200
            Re: Won't boot if /, home, swap are encrypted Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-10-22 19:50 +0200
              Re: Won't boot if /, home, swap are encrypted Joe <joe@jretrading.com> - 2018-10-22 19:50 +0200
                Re: Won't boot if /, home, swap are encrypted Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-10-22 20:10 +0200
              Re: Won't boot if /, home, swap are encrypted David Wright <deblis@lionunicorn.co.uk> - 2018-10-23 04:30 +0200

csiph-web