🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #668

Re: Where does Debian13 installer store the disk it installed the??? boot loader (grub) on

#668
From: Robert Heller
Date: Sat, 28 Nov 2026 20:40
112 lines
7455 bytes
At Sat, 28 Nov 2026 11:23:54 -0600 debian-user@lists.debian.org wrote:

>
> On Sat 28 Nov 2026 at 09:44:17 (-0500), Robert Heller wrote:
> > At Fri, 27 Nov 2026 21:36:05 -0600 debian-user@lists.debian.org wrote:
>                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                                      deblis@lionunicorn.co.uk actually.
>
> > > On Fri 27 Nov 2026 at 15:55:09 (-0500), Robert Heller wrote:
> > > > At Fri, 27 Nov 2026 14:44:43 -0600 debian-user@lists.debian.org wrote:
> [ loads of Latin1 representations of upwards arrows ]
> > >                                      deblis@lionunicorn.co.uk actually.
> > >
> > > > > On Thu 26 Nov 2026 at 17:00:37 (-0500), Robert Heller wrote:
> > > > > > I know this might sound strange, but here is what happened:
> > > > > >
> > > > > > I bought an old Laptop on E-Mail. It has an 80g SATA 2.5" rotating rust drive
> > > > > > -- working fine (still working fine), but it is only 80gb... Today I decided
> > > > > > to swap it for a 500G SATA 2.5" SSD.  After moving the files and getting
> > > > > > things to boot off the new driver (a little tricky,,,), I did a apt update and
> > > > > > apt full-upgrade.  When updating grub, it produced a message about the fact
> > > > > > the boot device was different (Duh!) and asked me where the original boot
> > > > > > driver went and where it should install grub.  So, some how the Debian
> > > > > > installer stashed away some identifing information about where in installed
> > > > > > grub originally.  Where is that and what needs to be changed to make apt happy
> > > > > > going forward?
> > > > >
> > > > > I've seen no mention yet in this thread as to whether the new disk is
> > > > > partitioned with MBR or GPT. If the former, what you did should work.
> > > >
> > > > Both disks are small enough for MBR and that is how they are both partitioned,
> > >
> > > Assuming a sector size of 512 bytes, at what sector does the first
> > > partition start on the two disks?
> >
> > Why would any of this mater or have anything to do with the issue.
>
> Modern partitioners like fdisk and gdisk tend to start the first
> partition at 2048 sectors, whereas your old laptop of unknown
> provenance could have a much smaller gap available for Grub due to
> an earlier start (63 used to be popular).
>
> In addition, some disks may contain legacy code in the MBR Gap that
> Grub may have avoided using. Those circumstances can lead to the old
> machine's Grub using its dirty tricks to store its code in unsafe
> locations. (A bootinfoscript report usually starts off with this
> information.) I assume that's not true for your new disk.
>
> > The
> > machine boots juts fine with the new disk.
>
> You wrote above that booting the new disk was "tricky" with no
> indication of what that meant. I also thought you were interested
> in "post- morteming" the old one.

I needed to connect the old disk via a USB <> SATA adaptor and boot it once
that way.  I had previously edited /etc/fstab, so once booted, it mounted
everything from the new disk.   I ran update-grup and grub-install and that
fixed things.

>
> > There was an issue during a
> > software update.
>
> We have no warning or error messages, just that it asked something
> (what?) about the original boot driver (loader?), and a curious
> question about the d-i, which was presumably run a while back on
> the old disk. It wasn't even clear whether the messages were from
> Grub or Apt.

It was not an error message exactly, but the whiptail dialogs put out by
debconf for grup-pc, that I hadn't expected.  The problem was mainly because
whiptail only works usefully with a *color* terminal and I use xterms with
color disabled.  This meant that I could not visibly select anything.  This is
a (in my opinion) serious flaw in whiptail.  I know *everybody* uses color
terminals now and that is the expected norm, but there is at least one user
(me) who does not use a color xterm.

>
> Not much to go on. I thought you wanted to know how the situation
> came about.
>
> If you just want to put this all behind you, then I suggest you
> don't upgrade Grub, but manually (re)run grub-install <device>,
> where device is the new disk, which you presumably want to boot from.
> Hopefully, it will reply with:
>
>   Installing for i386-pc platform.
>   Installation finished. No error reported.
>
> BTW I was very surprised you hadn't GPT formatted the new disk,
> as it's more reliable and robust than MBR. That's why I started
> talking about BIOS Boot partitions out of the blue.
>
> Cheers,
> David.
>
> PS Any idea why your MUA gets its attribution wrong for me but not
> others on this list? It must be picking up my name from either
> the To: or Reply-To: fields, the only places where the erroneous
> attribution string occurs in my submissions (apart from the envelope's
> RCPT TO: obviously).
>
>
>

--
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services
Technical Details
Message-ID: <O4xnb-eJOB-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <O4rUt-eGOe-7@gated-at.bofh.it> <O4rUt-eGOe-9@gated-at.bofh.it> <O4xnb-eJOB-9@gated-at.bofh.it> <O4xnb-eJOB-11@gated-at.bofh.it> <O4rUt-eGOe-5@gated-at.bofh.it> <O4upj-eI9A-17@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Robert Heller <heller@deepsoft.com>
Newsgroups: linux.debian.user
Subject: Re: Where does Debian13 installer store the disk it installed the??? boot loader (grub) on
Date: Sat, 28 Nov 2026 21:40:01 +0100
Message-ID: <O4xnb-eJOB-7@gated-at.bofh.it>
References: <O4rUt-eGOe-7@gated-at.bofh.it> <O4rUt-eGOe-9@gated-at.bofh.it> <O4xnb-eJOB-9@gated-at.bofh.it> <O4xnb-eJOB-11@gated-at.bofh.it> <O4rUt-eGOe-5@gated-at.bofh.it> <O4upj-eI9A-17@gated-at.bofh.it>
X-Original-To: debian-user@lists.debian.org
X-Mailbox-Line: From debian-user-request@lists.debian.org  Sat Nov 28 20:37:38 2026
Old-Return-Path: <heller@deepsoft.com>
X-Amavis-Spam-Status: No, score=-2.099 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, MIME_QP_LONG_LINE=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
MIME-Version: 1.0
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.20)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
              charset="us-ascii"
X-Scanned-By: MIMEDefang 3.3 on 108.161.129.198
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/833091
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261128203721.5C1034C20A4@sharky5.deepsoft.com
Approved: robomod@news.nic.it
Lines: 112
Sender: robomod@news.nic.it
X-Original-Date: Sat, 28 Nov 2026 15:37:21 -0500 (EST)
X-Original-Message-ID: <20261128203721.5C1034C20A4@sharky5.deepsoft.com>
X-Original-References: <20261126220037.383664C16DC@sharky5.deepsoft.com>? 
    <awnruxJWwmGsqSRk@argo.corp>? 
    <20261127205509.666AC4C0F01@sharky5.deepsoft.com>? 
    <awpMJeJWOD9RoE1d@argo.corp>? 
    <20261128144417.AFAC84C01B0@sharky5.deepsoft.com> 
    <awsOKlQ4XAd8_ulH@argo.corp>