On 2026-11-26 15:00, 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?
TLDR: Run `dpkg-reconfigure grub-pc` (as root, obviously).
I remember being frustrated by this, too. Most people have EFI now, and the logic
for selecting the install device is different there (the logic is in postinst scripts,
see /var/lib/dpkg/info/grub-*.postinst ). If you
apt install debconf-utils
debconf-get-selections |grep '^grub-pc'
you should see the old device in `grub-pc/install_devices`, and you should be able to
able to change those values with `dpkg-reconfigure grub-pc`. This will run more
logic (i.e., it will actually run the grub-install with the new values), so don't be
surprised. Also, it should pre-populate fields with your previous selections.
Best,
Antonio