At Thu, 26 Nov 2026 23:12:49 -0500 Stefan Monnier <[email protected]> 
wrote:

>
> > 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.

Already both update-grub and grub-install *before* doing apt.  So no, that is
not the problem.

*Somewhere* there is another config file used by grub's post install script.

>
>
> === Stefan
>
>
>

--
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[email protected]       -- Webhosting Services


Reply via email to