🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #652

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

#652
From: Stefan Monnier
Date: Fri, 27 Nov 2026 04:20
32 lines
3149 bytes
> 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?

IIRC /boot/grub/grub.cfg contains the UUID of the filesystem where /boot
is located (IIRC this is needed only when /boot is not the partition
into which Grub was installed, but it's setup regardless).

[ Similarly the UUID of the root (and swap) partition can also get
  embedded in the /boot/initrd.img files, tho IIUC if you use LVM the
  system will embed LVM names rather than UUIDs.  ]

So if the new drive has "fresh new" filesystems (rather than `dd`
copies, say), those will have new UUIDs and you may get complaints
because of that.

IOW, my crystal ball say that's probably what's going on here:
`update-grub` noticed that the UUID it's been using doesn't exist
any more.

I suspect that running `grub-install` should fix this problem.


=== Stefan
Technical Details
Message-ID: <O3VBf-eoFw-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O3PPc-elh5-15@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: linux.debian.user
Subject: Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
Date: Fri, 27 Nov 2026 05:20:01 +0100
Message-ID: <O3VBf-eoFw-1@gated-at.bofh.it>
References: <O3PPc-elh5-15@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Fri Nov 27 04:13:12 2026
Old-Return-Path: <gldu-debian-user-2@m.gmane-mx.org>
X-Amavis-Spam-Status: No, score=-1.751 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249] autolearn=no autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
X-Injected-Via-Gmane: http://gmane.org/
MIME-Version: 1.0
Content-Type: text/plain
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:7RIU48CSCttPtWI175OIEvfs0eM=
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/833070
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/jwvo6bb3oy6.fsf-monnier+gmane.linux.debian.user@gnu.org
Approved: robomod@news.nic.it
Lines: 32
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 26 Nov 2026 23:12:49 -0500
X-Original-Message-ID: <jwvo6bb3oy6.fsf-monnier+gmane.linux.debian.user@gnu.org>
X-Original-References: <20261126220037.383664C16DC@sharky5.deepsoft.com>