[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help: disk swap



On 7/27/2022 1:51 PM, Erik Mathis wrote:
> I would look at the UEFI vs BIOS boot options in the "backup" server and compare it to the "broken" server and make sure they are the same. Also check for BIOS updates and such.
>
>
> -Erik-
>
>
> On Wed, Jul 27, 2022 at 7:59 AM tony <lists@vanderhoff.org> wrote:
>
>     Hi,
>
>     I turned on my main home server after a few weeks absence,  and got
>     smoke from its power supply. Fortunately, I have a backup system, which
>     does work; both are running Debian 10, so I swapped use to that machine.
>     and am able to work with that, but some of the files and settings are a
>     bit out of date.
>
>     I decided to move the disk from the broken machine to the backup, but on
>     booting I'm dropped into a grub screen saying disk id <blablabla> not
>     found. Not entirely surprising perhaps.
>
>     So, how do I get it to recognize, and boot from the old disK.
>
>     Cheers, Tony
>

I have used the following procedure to fix booting from a disk that
causes the system to drop to the grub shell instead of booting normally:

When in the grub shell, type ls, and you will see a list of the available
disks and partitions. You will see items like (hd0,gpt1) which would be
the first gpt partition on the first disk. Then you can list the files in that
partition using 'ls (hd0,gpt1)/'. You should then look for the partition with
the boot/grub/grub.cfg file, and then use the configfile command from
the grub shell to load the grub configuration on the disk from the broken
machine which should allow you to boot the Debian system that is on that
disk. For example, if the grub.cfg file is on (hd0,gpt1), then you do:

grub> configfile (hd0,gpt1)/boot/grub/grub.cfg

Hopefully you will see the normal grub menu giving you the option to
select on OS to boot, and hopefully you will be able to boot the Debian
that is on the disk from the broken machine.

If you can get the Debian system on the disk from the broken machine running,
then you will need to reinstall grub to update your grub so it can boot using the
disk from the broken machine without dropping to the grub shell. For example,
If you use efi, you will need to reinstall grub-efi-amd64-bin or maybe
grub-efi-amd64-bin-signed for secure boot, and after that it should boot the
disk from the broken machine without dropping to the grub shell.

Chuck


Reply to: