Article View: linux.debian.user
Article #691Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
From: Antonio Russo
Date: Tue, 01 Dec 2026 12:40
Date: Tue, 01 Dec 2026 12:40
29 lines
3316 bytes
3316 bytes
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
Technical Details
Message-ID:
<O5vjj-fkzg-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<O3PPc-elh5-15@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Antonio Russo <aerusso@aerusso.net> Newsgroups: linux.debian.user Subject: Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on Date: Tue, 01 Dec 2026 13:40:01 +0100 Message-ID: <O5vjj-fkzg-7@gated-at.bofh.it> References: <O3PPc-elh5-15@gated-at.bofh.it> X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Tue Dec 1 12:39:20 2026 Old-Return-Path: <aerusso@aerusso.net> X-Amavis-Spam-Status: No, score=-2.1 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] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 446 seconds by postgrey-1.37 at bendel; Tue, 01 Dec 2026 12:23:23 UTC MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailing-List: <debian-user@lists.debian.org> archive/latest/833114 List-ID: <debian-user.lists.debian.org> List-URL: <https://lists.debian.org/debian-user/> List-Archive: https://lists.debian.org/msgid-search/27bb6aac-2fcc-4ca0-b96f-e1ae8e8ecb8b@aerusso.net Approved: robomod@news.nic.it Lines: 29 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 1 Dec 2026 05:15:23 -0700 X-Original-Message-ID: <27bb6aac-2fcc-4ca0-b96f-e1ae8e8ecb8b@aerusso.net> X-Original-References: <20261126220037.383664C16DC@sharky5.deepsoft.com>