🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.user
20 messages
20 total messages Started by Robert Heller Thu, 26 Nov 2026 22:10
Where does Debian13 installer store the disk it installed the boot loader (grub) on
#648
Author: Robert Heller
Date: Thu, 26 Nov 2026 22:10
20 lines
2749 bytes
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?


--
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
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#649
Author: Charles Curley
Date: Thu, 26 Nov 2026 23:50
35 lines
4324 bytes
On Thu, 26 Nov 2026 17:00:37 -0500 (EST)
Robert Heller <heller@deepsoft.com> 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 think what you have is a grub problem, not an apt problem. I suggest
the following.

If you cannot yet boot to the new drive, get the netinst that
corresponds most closely to what is on the SSD (cat /, boot to that, and
then use it as a rescue CD.

Determine which is your boot partition. It may be a separate partition,
e.g. /dev/sda2 (assuming sda1 is your EFI partition). Or it may be
the root partition ("/"). Use that to run grub-install. 

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
#650
Author: Robert Heller
Date: Fri, 27 Nov 2026 01:50
64 lines
4796 bytes
At Thu, 26 Nov 2026 16:40:51 -0700 Charles Curley <charlescurley@charlescurley.com> wrote:

>
> On Thu, 26 Nov 2026 17:00:37 -0500 (EST)
> Robert Heller <heller@deepsoft.com> 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 think what you have is a grub problem, not an apt problem. I suggest
> the following.
>
> If you cannot yet boot to the new drive, get the netinst that
> corresponds most closely to what is on the SSD (cat /, boot to that, and
> then use it as a rescue CD.
>

The machine boots just fine.  That is NOT the problem.  Something in the Grub
post-install (when it update grub) is wonky,


> Determine which is your boot partition. It may be a separate partition,
> e.g. /dev/sda2 (assuming sda1 is your EFI partition). Or it may be
> the root partition ("/"). Use that to run grub-install.
>

This machine to too old for EFI, so there is no EFI partition.  It has an old
legacy BIOS.  Again that is not the problem.

Some additional detail:

The original disk was partitioned with a /boot partition and a LVM volume
group (with contained /, swap and /home volumes.  I made a new /boot partition
on the new disk (giving it a label "boot") and used tar to do a file copy from
the to the new (using a USB <> SATA adaptor).  I then "migrated " the PEs of
the LVM volume group from the old disk to trhe new one.  I installed grub on
the new disk, made it bootable then swapped in in.  At first grup was wonky,
but I pluged in the old visdk via the USB <> SATA adapto and it booted and I
ran update-grub and install-grub, and that cured that.

Then I enlarged the root file system from 10G (it was getting a bit "crowded")
to 32G and ran resize2fs.  Then I did a apt update and apt full-upgrade.  That
was when a got the message the bootloader drive moving or something from the
grub update.

--
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
Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
#651
Author: Charles Curley
Date: Fri, 27 Nov 2026 03:40
38 lines
4539 bytes
On Thu, 26 Nov 2026 20:43:22 -0500 (EST)
Robert Heller <heller@deepsoft.com> wrote:

> Some additional detail:
> 
> The original disk was partitioned with a /boot partition and a LVM
> volume group (with contained /, swap and /home volumes.  I made a new
> /boot partition on the new disk (giving it a label "boot") and used
> tar to do a file copy from the to the new (using a USB <> SATA
> adaptor).  I then "migrated " the PEs of the LVM volume group from
> the old disk to trhe new one.  I installed grub on the new disk, made
> it bootable then swapped in in.  At first grup was wonky, but I
> pluged in the old visdk via the USB <> SATA adapto and it booted and
> I ran update-grub and install-grub, and that cured that.
> 
> Then I enlarged the root file system from 10G (it was getting a bit
> "crowded") to 32G and ran resize2fs.

For future reference, you can enlarge a logical volume and its file
system all at once with something like

lvextend --size +20G  --resizefs /dev/mapper/<lv name>


> Then I did a apt update and apt
> full-upgrade.  That was when a got the message the bootloader drive
> moving or something from the grub update. 

Ah. It might help to have the *exact* error message (as in, copy and
paste).

Have you checked the fstab entry for /boot?

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#652
Author: 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
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#653
Author: Marco Moock
Date: Fri, 27 Nov 2026 07:50
20 lines
2939 bytes
Am 26.11.26 um 23:10 schrieb Robert Heller:
> 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?

If it is a BIOS system, run grub-install /dev/sdX (the entire drive, not 
a partition). Then update-grub. Then check if the message still comes up.

-- 
Gruß
Marco

Spam bitte an abfallentsorgung24@stinkedores.dorfdsl.de
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#654
Author: David Christensen
Date: Fri, 27 Nov 2026 08:20
94 lines
5138 bytes
On 11/26/26 14: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?


On 11/26/26 17:43, Robert Heller wrote:
> The machine boots just fine.
> <snip>
>
> This machine to too old for EFI, so there is no EFI partition.  It has
> an old legacy BIOS.  Again that is not the problem.
> 
> Some additional detail:
> 
> The original disk was partitioned with a /boot partition and a LVM
> volume group (with contained /, swap and /home volumes.  I made a
> new /boot partition on the new disk (giving it a label "boot") and
> used tar to do a file copy from the to the new (using a USB <> SATA
> adaptor).  I then "migrated " the PEs of the LVM volume group from
> the old disk to trhe new one.  I installed grub on the new disk, made
> it bootable then swapped in in.  At first grup was wonky, but I
> pluged in the old visdk via the USB <> SATA adapto and it booted and
> I ran update-grub and install-grub, and that cured that.
> 
> Then I enlarged the root file system from 10G (it was getting a bit 
> "crowded") to 32G and ran resize2fs.  Then I did a apt update and apt 
> full- upgrade.  That was when a got the message the bootloader drive moving
> or something from the grub update.


Assuming you have a second Debian computer that you can use to work on 
the HDD and SSD at the same time:

1.  Connect the HDD and the SSD to the second computer.

2.  Boot the second computer's Debian disk, not the HDD or SSD.

3.  Open a root shell.

4.  Invoke script(1) with a meaningful name for the capture file.

5.  Use /dev/disk/by-id/* paths to the HDD and to the SSD for all 
commands below.

6.  Secure erase the SSD, or fill the SSD with zeros if it does not 
support secure erase.

7.  Use dd(1) to copy the contents of the HDD to the SSD.

8.  Exit the script(1) shell.

9.  Shutdown the second computer.

10. Disconnect the HDD and the SSD from the second computer.

11. Install SSD in the laptop.

12. Boot the laptop.

13. Open a root shell.

14. Invoke script(1) with a meaningful name for the capture file.

15. Add a new partition to the SSD.

16. Create an LVM physical volume in the new SSD partition.

17. Extend the SSD LVM volume group by adding the new physical volume.

18. Extend the SSD LVM root logical volume so that it uses the 
additional space in the volume group.

19. Extend the SSD root filesystem.


If you run into problems, please post the relevant portions of the 
script(1) capture file(s) and/or laptop boot messages.


David


[1] https://www.krenger.ch/blog/linux-lvm-how-to-adding-a-new-partition/
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#655
Author: Robert Heller
Date: Fri, 27 Nov 2026 12:00
51 lines
4106 bytes
At Thu, 26 Nov 2026 23:12:49 -0500 Stefan Monnier <monnier@iro.umontreal.ca> 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
heller@deepsoft.com       -- Webhosting Services
Re: Where does Debian13 installer store the disk it installed the?? boot loader (grub) on
#656
Author: Robert Heller
Date: Fri, 27 Nov 2026 12:00
46 lines
3854 bytes
At Thu, 26 Nov 2026 20:30:43 -0700 Charles Curley <charlescurley@charlescurley.com> wrote:

>
> On Thu, 26 Nov 2026 20:43:22 -0500 (EST)
> Robert Heller <heller@deepsoft.com> wrote:
>
> > Some additional detail:
> >
> > The original disk was partitioned with a /boot partition and a LVM
> > volume group (with contained /, swap and /home volumes.  I made a new
> > /boot partition on the new disk (giving it a label "boot") and used
> > tar to do a file copy from the to the new (using a USB <> SATA
> > adaptor).  I then "migrated " the PEs of the LVM volume group from
> > the old disk to trhe new one.  I installed grub on the new disk, made
> > it bootable then swapped in in.  At first grup was wonky, but I
> > pluged in the old visdk via the USB <> SATA adapto and it booted and
> > I ran update-grub and install-grub, and that cured that.
> >
> > Then I enlarged the root file system from 10G (it was getting a bit
> > "crowded") to 32G and ran resize2fs.
>
> For future reference, you can enlarge a logical volume and its file
> system all at once with something like
>
> lvextend --size +20G  --resizefs /dev/mapper/<lv name>
>
>
> > Then I did a apt update and apt
> > full-upgrade.  That was when a got the message the bootloader drive
> > moving or something from the grub update.
>
> Ah. It might help to have the *exact* error message (as in, copy and
> paste).
>
> Have you checked the fstab entry for /boot?

It is just fine.  I did chnage it to use a LABEL in stead of a UUID.

>

--
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
Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
#657
Author: Robert Heller
Date: Fri, 27 Nov 2026 12:00
55 lines
3831 bytes
At Thu, 26 Nov 2026 23:16:59 -0500 noloader@gmail.com wrote:

>
> On Thu, Nov 26, 2026 at 7:54 PM Robert Heller <heller@deepsoft.com> 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 believe you need to install grub on /dev/sda (the drive), not /dev/sda1
> (a partition).  Can you confirm you performed that action?

Yes.

>
> These commands may help:
>
> # /dev/sda4 indicates the /dev/sda drive
> $ sudo mount | grep "/boot "
> /dev/sda4 on /boot type ext4 (rw,relatime,seclabel)
>
> $ sudo grub2-install /dev/sda
> ...
> Installing for i386-pc platform.
> Installation finished. No error reported.



>
> Jeff
>
>

--
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
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#659
Author: David Wright
Date: Fri, 27 Nov 2026 20:50
55 lines
6142 bytes
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.

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.
Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
#660
Author: Robert Heller
Date: Fri, 27 Nov 2026 21:00
71 lines
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
Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
#661
Author: David Wright
Date: Sat, 28 Nov 2026 03:40
29 lines
5522 bytes
On Fri 27 Nov 2026 at 15:55:09 (-0500), Robert Heller wrote:
> At Fri, 27 Nov 2026 14:44:43 -0600 debian-user@lists.debian.org wrote:
                                     ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
                                     deblis@lionunicorn.co.uk actually.

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

Assuming a sector size of 512 bytes, at what sector does the first
partition start on the two disks?

Cheers,
David.
Re: Where does Debian13 installer store the disk it installed the?? boot loader (grub) on
#663
Author: Robert Heller
Date: Sat, 28 Nov 2026 14:50
47 lines
4505 bytes
At Fri, 27 Nov 2026 21:36:05 -0600 debian-user@lists.debian.org wrote:

>
> On Fri 27 Nov 2026 at 15:55:09 (-0500), Robert Heller wrote:
> > At Fri, 27 Nov 2026 14:44:43 -0600 debian-user@lists.debian.org wrote:
>                                      ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
>                                      deblis@lionunicorn.co.uk actually.
>
> > > 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,
>
> Assuming a sector size of 512 bytes, at what sector does the first
> partition start on the two disks?

Why would any of this mater or have anything to do with the issue.  The
machine boots juts fine with the new disk.  There was an issue during a
software update.

>
> 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
Re: Where does Debian13 installer store the disk it installed the?? boot loader (grub) on
#667
Author: David Wright
Date: Sat, 28 Nov 2026 17:30
84 lines
7984 bytes
On Sat 28 Nov 2026 at 09:44:17 (-0500), Robert Heller wrote:
> At Fri, 27 Nov 2026 21:36:05 -0600 debian-user@lists.debian.org wrote:
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     deblis@lionunicorn.co.uk actually.

> > On Fri 27 Nov 2026 at 15:55:09 (-0500), Robert Heller wrote:
> > > At Fri, 27 Nov 2026 14:44:43 -0600 debian-user@lists.debian.org wrote:
[ loads of Latin1 representations of upwards arrows ]
> >                                      deblis@lionunicorn.co.uk actually.
> >
> > > > 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,
> >
> > Assuming a sector size of 512 bytes, at what sector does the first
> > partition start on the two disks?
> 
> Why would any of this mater or have anything to do with the issue.

Modern partitioners like fdisk and gdisk tend to start the first
partition at 2048 sectors, whereas your old laptop of unknown
provenance could have a much smaller gap available for Grub due to
an earlier start (63 used to be popular).

In addition, some disks may contain legacy code in the MBR Gap that
Grub may have avoided using. Those circumstances can lead to the old
machine's Grub using its dirty tricks to store its code in unsafe
locations. (A bootinfoscript report usually starts off with this
information.) I assume that's not true for your new disk.

> The
> machine boots juts fine with the new disk.

You wrote above that booting the new disk was "tricky" with no
indication of what that meant. I also thought you were interested
in "post- morteming" the old one.

> There was an issue during a
> software update.

We have no warning or error messages, just that it asked something
(what?) about the original boot driver (loader?), and a curious
question about the d-i, which was presumably run a while back on
the old disk. It wasn't even clear whether the messages were from
Grub or Apt.

Not much to go on. I thought you wanted to know how the situation
came about.

If you just want to put this all behind you, then I suggest you
don't upgrade Grub, but manually (re)run grub-install <device>,
where device is the new disk, which you presumably want to boot from.
Hopefully, it will reply with:

  Installing for i386-pc platform.
  Installation finished. No error reported.

BTW I was very surprised you hadn't GPT formatted the new disk,
as it's more reliable and robust than MBR. That's why I started
talking about BIOS Boot partitions out of the blue.

Cheers,
David.

PS Any idea why your MUA gets its attribution wrong for me but not
others on this list? It must be picking up my name from either
the To: or Reply-To: fields, the only places where the erroneous
attribution string occurs in my submissions (apart from the envelope's
RCPT TO: obviously).
Re: Where does Debian13 installer store the disk it installed the??? boot loader (grub) on
#668
Author: Robert Heller
Date: Sat, 28 Nov 2026 20:40
112 lines
7455 bytes
At Sat, 28 Nov 2026 11:23:54 -0600 debian-user@lists.debian.org wrote:

>
> On Sat 28 Nov 2026 at 09:44:17 (-0500), Robert Heller wrote:
> > At Fri, 27 Nov 2026 21:36:05 -0600 debian-user@lists.debian.org wrote:
>                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                                      deblis@lionunicorn.co.uk actually.
>
> > > On Fri 27 Nov 2026 at 15:55:09 (-0500), Robert Heller wrote:
> > > > At Fri, 27 Nov 2026 14:44:43 -0600 debian-user@lists.debian.org wrote:
> [ loads of Latin1 representations of upwards arrows ]
> > >                                      deblis@lionunicorn.co.uk actually.
> > >
> > > > > 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,
> > >
> > > Assuming a sector size of 512 bytes, at what sector does the first
> > > partition start on the two disks?
> >
> > Why would any of this mater or have anything to do with the issue.
>
> Modern partitioners like fdisk and gdisk tend to start the first
> partition at 2048 sectors, whereas your old laptop of unknown
> provenance could have a much smaller gap available for Grub due to
> an earlier start (63 used to be popular).
>
> In addition, some disks may contain legacy code in the MBR Gap that
> Grub may have avoided using. Those circumstances can lead to the old
> machine's Grub using its dirty tricks to store its code in unsafe
> locations. (A bootinfoscript report usually starts off with this
> information.) I assume that's not true for your new disk.
>
> > The
> > machine boots juts fine with the new disk.
>
> You wrote above that booting the new disk was "tricky" with no
> indication of what that meant. I also thought you were interested
> in "post- morteming" the old one.

I needed to connect the old disk via a USB <> SATA adaptor and boot it once
that way.  I had previously edited /etc/fstab, so once booted, it mounted
everything from the new disk.   I ran update-grup and grub-install and that
fixed things.

>
> > There was an issue during a
> > software update.
>
> We have no warning or error messages, just that it asked something
> (what?) about the original boot driver (loader?), and a curious
> question about the d-i, which was presumably run a while back on
> the old disk. It wasn't even clear whether the messages were from
> Grub or Apt.

It was not an error message exactly, but the whiptail dialogs put out by
debconf for grup-pc, that I hadn't expected.  The problem was mainly because
whiptail only works usefully with a *color* terminal and I use xterms with
color disabled.  This meant that I could not visibly select anything.  This is
a (in my opinion) serious flaw in whiptail.  I know *everybody* uses color
terminals now and that is the expected norm, but there is at least one user
(me) who does not use a color xterm.

>
> Not much to go on. I thought you wanted to know how the situation
> came about.
>
> If you just want to put this all behind you, then I suggest you
> don't upgrade Grub, but manually (re)run grub-install <device>,
> where device is the new disk, which you presumably want to boot from.
> Hopefully, it will reply with:
>
>   Installing for i386-pc platform.
>   Installation finished. No error reported.
>
> BTW I was very surprised you hadn't GPT formatted the new disk,
> as it's more reliable and robust than MBR. That's why I started
> talking about BIOS Boot partitions out of the blue.
>
> Cheers,
> David.
>
> PS Any idea why your MUA gets its attribution wrong for me but not
> others on this list? It must be picking up my name from either
> the To: or Reply-To: fields, the only places where the erroneous
> attribution string occurs in my submissions (apart from the envelope's
> RCPT TO: obviously).
>
>
>

--
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
Re: Where does Debian13 installer store the disk it installed the??? boot loader (grub) on
#669
Author: Robert Heller
Date: Sat, 28 Nov 2026 20:40
48 lines
3942 bytes
At Sat, 28 Nov 2026 13:07:53 -0500 noloader@gmail.com wrote:

>
> On Sat, Nov 28, 2026 at 12:14 PM Robert Heller <heller@deepsoft.com> wrote:
>
> > At Fri, 27 Nov 2026 21:36:05 -0600 debian-user@lists.debian.org wrote:
> > > > >  [...]
> > > > > 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,
> > >
> > > Assuming a sector size of 512 bytes, at what sector does the first
> > > partition start on the two disks?
> >
> > Why would any of this mater or have anything to do with the issue.  The
> > machine boots juts fine with the new disk.  There was an issue during a
> > software update.
>
>
> You're right.
>
> You probably have a bad or failing disk.  I used to encounter a lot of
> unexplained Apt update errors on IoT devices that used SDcards when the
> SDcards were starting to fail due to too many writes.

No, the disk is not bad or failing....

>
> If you can, run a SMART test on the drive.  But the old iron may not be
> SMART capable.
>
> Replace the old hard disk.  The writing is on the wall.

Not really an old disk.  I is a only slightly used SSD.

>
> Jeff
>
>

--
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
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#670
Author: Stefan Monnier
Date: Sat, 28 Nov 2026 20:40
10 lines
2286 bytes
>> 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.

I think my crystal ball would need to see the actual error
message/question you saw before it can provide further ideas.


=== Stefan
Re: Where does Debian13 installer store the disk it installed the boot loader (grub) on
#691
Author: Antonio Russo
Date: Tue, 01 Dec 2026 12:40
29 lines
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
Re: Where does Debian13 installer store the disk it installed the? boot loader (grub) on
#692
Author: Robert Heller
Date: Tue, 01 Dec 2026 13:20
44 lines
4044 bytes
At Tue, 1 Dec 2026 05:15:23 -0700 Antonio Russo <aerusso@aerusso.net> wrote:

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

Yes, this is helpful.

> Best,
> Antonio
>
>
>

--
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads