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


Groups > linux.debian.user > #274229

Re: Best practice for fresh install on UEFI with multiple disks?

Path csiph.com!tncsrv06.tnetconsulting.net!newsfeed.endofthelinebbs.com!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Boyan Penkov <boyan.penkov@gmail.com>
Newsgroups linux.debian.user
Subject Re: Best practice for fresh install on UEFI with multiple disks?
Date Fri, 01 Nov 2024 01:10:01 +0100
Message-ID <JDNoJ-5LXP-3@gated-at.bofh.it> (permalink)
References <Joddv-dh03-1@gated-at.bofh.it> <JoeCB-dhHg-5@gated-at.bofh.it> <JomgN-dn5R-3@gated-at.bofh.it> <JoBzb-dwfB-3@gated-at.bofh.it> <JoGyR-dzhm-1@gated-at.bofh.it> <JoIU1-dAQo-3@gated-at.bofh.it> <JoJn3-dAZR-1@gated-at.bofh.it> <JoQox-dFm7-1@gated-at.bofh.it> <JsppL-fW7e-1@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Fri Nov 1 00:02:06 2024
Old-Return-Path <boyan.penkov@gmail.com>
X-Amavis-Spam-Status No, score=-7.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOJu0YymJ9oXjPopCXvqy6QMuh0YqH83k8QsRxnlf50PAxzxdUMcj7xp iW68rmFzqlPY78HBDmSfWTBOcGuHIgD766ukCWUqSr4T0JQXh3FZH2pqeyN2wXAWjFzkUaUkY5j RZMKCU/zi8U2CzFp4dKRzP8mQsU+wkg==
X-Google-SMTP-Source AGHT+IGOL2+SKgRPrBftlr49Uo2LoVKYId07evYFfEP1Kw2rumBW3JgnGT07cJhoHOxBcZ5D/R1PifWw9mFA9e1jYH0=
X-Received by 2002:a17:907:97cc:b0:a9a:1575:23e3 with SMTP id a640c23a62f3a-a9e55aa8f36mr394409266b.19.1730419303965; Thu, 31 Oct 2024 17:01:43 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-user@lists.debian.org> archive/latest/816490
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/CAGa5aXK_GRHNpyoNLBhb=CDN=QzPpevDaU3sDwEKpBptrr2XNw@mail.gmail.com
Approved robomod@news.nic.it
Lines 109
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 31 Oct 2024 20:01:32 -0400
X-Original-Message-ID <CAGa5aXK_GRHNpyoNLBhb=CDN=QzPpevDaU3sDwEKpBptrr2XNw@mail.gmail.com>
X-Original-References <CAGa5aXJfPTjGtqMX3wKker8h9=yntXr9FMUQjpN5oOU2Q-seMA@mail.gmail.com> <ZuuDT0c2OfpU71HQ@mail.bitfolk.com> <87cyl0hs6t.fsf@host0.frougon.net> <c7237489-d3b5-1c9d-ef6c-85300ab150cb@woodall.me.uk> <87v7yqkbwh.fsf@host0.frougon.net> <dc2b40e2-49a8-4348-e50f-ce3503af5fb9@woodall.me.uk> <87v7yqip6a.fsf@host0.frougon.net> <43096535-b5bc-5f03-ab32-00de60ee6242@woodall.me.uk> <CAGa5aXJWAd5GqRZ1nsbcBUCfNOw0MBJZ4X-UFrQCnRpSiUvi+Q@mail.gmail.com>
Xref csiph.com linux.debian.user:274229

Show key headers only | View raw


Hello folks,

Just to follow up on this thread, here's how it played out:

-- I gave up on EFI, and use just BIOS boot
-- each drive has three partitions: a space for grub-install, am mdadm
md0 /boot and a btrfs raid1c3 root partition
-- grub-install on each dev manually, and I probably need an apt grub hook here

This setup was tested almost immediately, since one of the nvmes died
very soon after the install, and I was able to boot off each of the
three remaining devices.

About the only thing that I think could be different (besides the grub
apt hook) is I could probably lose the RAID /boot and do that directly
on the btrfs.

Either way, thanks to all the wiki contributors over the years, and cheers!

On Mon, Sep 30, 2024 at 10:14 AM Boyan Penkov <boyan.penkov@gmail.com> wrote:
>
> Hello folks,
>
> Thanks kindly -- and my apologies for picking this up after a while;
> fell sick here...
>
> A few questions:
>
> -- If I have multiple drives, do I modify the script to have multiple
> efi2, efi3, ..., efiX ?
>
> -- it seems that the script above privileges /boot/efi over /boot/efi2
> -- in this case, if /boot/efi becomes corrupted, won't this just copy
> the errors to /boot/efi2 and thus destroy it as well, on the next run?
>
> Cheers!
>
> On Fri, Sep 20, 2024 at 2:12 PM Tim Woodall <debianuser@woodall.me.uk> wrote:
> >
> > On Fri, 20 Sep 2024, Florent Rougon wrote:
> >
> > > Le 20/09/2024, Tim Woodall <debianuser@woodall.me.uk> a écrit:
> > >
> > >> Because the script will abort after the mount fails.
> > >>
> > >> root@dirac:~# cat test.sh
> > >> #!/bin/bash
> > >>
> > >> set -e
> > >>
> > >> mount /boot/efi2
> > >>
> > >> echo "do important stuff"
> > >>
> > >> root@dirac:~# ./test.sh
> > >> mount: /boot/efi2: /dev/sda2 already mounted on /boot/efi2.
> > >>        dmesg(1) may have more information after failed mount system call.
> > >>
> > >>
> > >> Note that do important stuff is never reached.
> > >
> > > That's interesting because my system doesn't behave the same. I had of
> > > course checked, before writing my first message, that 'mount /boot/efi2'
> > > returns exit status 0 even when /boot/efi2 is already mounted. With your
> > > script (called foo.sh here), here is what I get:
> > >
> > > # mount | grep efi2
> > > /dev/sda1 on /boot/efi2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
> > > # /tmp/foo.sh
> > > do important stuff
> > > # mount | grep efi2
> > > /dev/sda1 on /boot/efi2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
> > > /dev/sda1 on /boot/efi2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
> > > #
> > >
> > > Every invocation adds a new, duplicate entry in the output of 'mount'.
> > >
> > > This is Debian sid amd64; /usr/bin/mount is from 'mount' package version
> > > 2.40.2-8.
> > >
> >
> > That's very interesting and looks like it's probably a kernel change.
> >
> > Tim.
>
>
>
> --
> Boyan Penkov



-- 
Boyan Penkov

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


Thread

Best practice for fresh install on UEFI with multiple disks? Boyan Penkov <boyan.penkov@gmail.com> - 2024-09-19 02:30 +0200
  Re: Best practice for fresh install on UEFI with multiple disks? Andy Smith <andy@strugglers.net> - 2024-09-19 04:00 +0200
    Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-19 12:10 +0200
      Re: Best practice for fresh install on UEFI with multiple disks? Tim Woodall <debianuser@woodall.me.uk> - 2024-09-20 04:30 +0200
        Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-20 09:50 +0200
          Re: Best practice for fresh install on UEFI with multiple disks? Tim Woodall <debianuser@woodall.me.uk> - 2024-09-20 12:20 +0200
            Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-20 12:50 +0200
              Re: Best practice for fresh install on UEFI with multiple disks? Tim Woodall <debianuser@woodall.me.uk> - 2024-09-20 20:20 +0200
                Re: Best practice for fresh install on UEFI with multiple disks? Boyan Penkov <boyan.penkov@gmail.com> - 2024-09-30 16:20 +0200
                Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-30 18:30 +0200
                Re: Best practice for fresh install on UEFI with multiple disks? Boyan Penkov <boyan.penkov@gmail.com> - 2024-11-01 01:10 +0100

csiph-web