Article View: linux.debian.user
Article #660Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
From: Robert Heller
Date: Fri, 27 Nov 2026 21:00
Date: Fri, 27 Nov 2026 21:00
71 lines
4955 bytes
4955 bytes
At Fri, 27 Nov 2026 14:44:43 -0600 debian-user@lists.debian.org wrote: > > 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, > > However, if you partitioned it as GPT, you should create a BIOS Boot > partition. Grub needs this for storing its core.img file. For any disk > in a BIOS booting machine, or any that are not fixed into a machine, > my GPT partitioning looks like (gdisk output): > > GPT fdisk (gdisk) version 1.0.3 > > Partition table scan: > MBR: protective > BSD: not present > APM: not present > GPT: present > > Found valid GPT with protective MBR; using GPT. > Disk /dev/sda: 976773168 sectors, 465.8 GiB > Model: [ รขยยฆ ] > Sector size (logical/physical): 512/512 bytes > Disk identifier (GUID): AAC3C999-73D7-496E-806C-7A526EE09FEB > Partition table holds up to 128 entries > Main partition table begins at sector 2 and ends at sector 33 > First usable sector is 34, last usable sector is 976773134 > Partitions will be aligned on 2048-sector boundaries > Total free space is 2029 sectors (1014.5 KiB) > > Number Start (sector) End (sector) Size Code Name > 1 2048 8191 3.0 MiB EF02 BIOS boot partition > [ รขยยฆ ] > > 3MiB is overprovisioned, but gives good alignment for the following > partition. 1MiB would be ample. > > If the old disk was MBR-partitioned, Grub's core.img, aka Stage 1.5, > would likely have been in the gap between the MBR and the first > partition. Its location is known to Stage 1 of Grub, which is in > the first sector, along with the partition table. > > Cheers, > David. > > > -- 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:
<O4bd0-exAi-13@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.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> <O4b3j-exwe-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.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: Fri, 27 Nov 2026 22:00:02 +0100
Message-ID: <O4bd0-exAi-13@gated-at.bofh.it>
References: <O3PPc-elh5-15@gated-at.bofh.it> <O4b3j-exwe-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org Fri Nov 27 20:55:24 2026
Old-Return-Path: <heller@deepsoft.com>
X-Amavis-Spam-Status: No, score=-1.861 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, PP_MIME_FAKE_ASCII_TEXT=0.238]
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/833080
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261127205509.666AC4C0F01@sharky5.deepsoft.com
Approved: robomod@news.nic.it
Lines: 71
Sender: robomod@news.nic.it
X-Original-Date: Fri, 27 Nov 2026 15:55:09 -0500 (EST)
X-Original-Message-ID: <20261127205509.666AC4C0F01@sharky5.deepsoft.com>
X-Original-References: <20261126220037.383664C16DC@sharky5.deepsoft.com>
<awnruxJWwmGsqSRk@argo.corp>