Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #244148 > unrolled thread
| Started by | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| First post | 2022-01-17 23:50 +0100 |
| Last post | 2022-01-18 16:30 +0100 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.debian.user
changed laptop disk -> PXE-E61 & PXE-M0F errors / BootDevice Not Found Vincent Lefevre <vincent@vinc17.net> - 2022-01-17 23:50 +0100
Re: changed laptop disk -> PXE-E61 & PXE-M0F errors / BootDevice Not Found "Alexander V. Makartsev" <avbetev@gmail.com> - 2022-01-18 00:20 +0100
Re: changed laptop disk -> PXE-E61 & PXE-M0F errors / BootDevice Not Found Vincent Lefevre <vincent@vinc17.net> - 2022-01-18 01:20 +0100
Re: changed laptop disk -> PXE-E61 & PXE-M0F errors / BootDevice Not Found Vincent Lefevre <vincent@vinc17.net> - 2022-01-18 16:30 +0100
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2022-01-17 23:50 +0100 |
| Subject | changed laptop disk -> PXE-E61 & PXE-M0F errors / BootDevice Not Found |
| Message-ID | <DGIZ4-6Qf-7@gated-at.bofh.it> |
I tried to change my laptop disk following the instructions found at
https://askubuntu.com/questions/260777/how-to-migrate-an-encrypted-lvm-install-to-a-new-disk
I'm not sure I did everything right as there are some mistakes and
not everything is clear.
In particular, with cfdisk, I initially chose the gpt label type
because this was the default, so that I thought that this was OK.
But "grub-install /dev/sdb" complained ("this GPT partition label
contains no BIOS Boot Partition; embedding won't be possible.
[...]"). So I changed it to MBR with gdisk as explained on
https://unix.stackexchange.com/questions/61142/remove-gpt-default-back-to-mbr
Note: /dev/sdb corresponds to the new disk connected via a SATA-USB
adapter for the transfer.
Then "cfdisk /dev/sdb" showed:
Disk: /dev/sdb
Size: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Label: dos, identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1050623 1048576 512M 83 Linux
/dev/sdb2 1050624 1953525134 1952474511 931G 8e Linux LVM
This ended up with the following:
# grub-install /dev/sdb
Installing for i386-pc platform.
Installation finished. No error reported.
# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.15.0-2-amd64
Found initrd image: /boot/initrd.img-5.15.0-2-amd64
Found linux image: /boot/vmlinuz-5.15.0-1-amd64
Found initrd image: /boot/initrd.img-5.15.0-1-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Then I unmounted everything related to /dev/sdb.
But after changing the disk and booted, instead of getting GRUB,
I got PXE-E61 and PXE-M0F errors, and also
────────────────────────────────────────────────────────────────────────
BootDevice Not Found
Please install an operating system on your hard disk.
Hard Disk - (3F0)
F2 System Diagnostics
For more information, please visit: www.hp.com\go\techcenter\startup
────────────────────────────────────────────────────────────────────────
Note that the disk itself is recognized since the system allowed me
to do a quick check on it (no errors).
So, what could be wrong?
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
[toc] | [next] | [standalone]
| From | "Alexander V. Makartsev" <avbetev@gmail.com> |
|---|---|
| Date | 2022-01-18 00:20 +0100 |
| Message-ID | <DGJs5-7hu-1@gated-at.bofh.it> |
| In reply to | #244148 |
On 18.01.2022 03:44, Vincent Lefevre wrote:
> I tried to change my laptop disk following the instructions found at
> https://askubuntu.com/questions/260777/how-to-migrate-an-encrypted-lvm-install-to-a-new-disk
>
> I'm not sure I did everything right as there are some mistakes and
> not everything is clear.
>
> In particular, with cfdisk, I initially chose the gpt label type
> because this was the default, so that I thought that this was OK.
> But "grub-install /dev/sdb" complained ("this GPT partition label
> contains no BIOS Boot Partition; embedding won't be possible.
> [...]"). So I changed it to MBR with gdisk as explained on
> https://unix.stackexchange.com/questions/61142/remove-gpt-default-back-to-mbr
>
> Note: /dev/sdb corresponds to the new disk connected via a SATA-USB
> adapter for the transfer.
>
> Then "cfdisk /dev/sdb" showed:
>
> Disk: /dev/sdb
> Size: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
> Label: dos, identifier: 0x00000000
>
> Device Boot Start End Sectors Size Id Type
> /dev/sdb1 2048 1050623 1048576 512M 83 Linux
> /dev/sdb2 1050624 1953525134 1952474511 931G 8e Linux LVM
>
> This ended up with the following:
>
> # grub-install /dev/sdb
> Installing for i386-pc platform.
> Installation finished. No error reported.
>
> # update-grub
> Generating grub configuration file ...
> Found background image: /usr/share/images/desktop-base/desktop-grub.png
> Found linux image: /boot/vmlinuz-5.15.0-2-amd64
> Found initrd image: /boot/initrd.img-5.15.0-2-amd64
> Found linux image: /boot/vmlinuz-5.15.0-1-amd64
> Found initrd image: /boot/initrd.img-5.15.0-1-amd64
> Warning: os-prober will not be executed to detect other bootable partitions.
> Systems on them will not be added to the GRUB boot configuration.
> Check GRUB_DISABLE_OS_PROBER documentation entry.
> done
>
> Then I unmounted everything related to /dev/sdb.
>
> But after changing the disk and booted, instead of getting GRUB,
> I got PXE-E61 and PXE-M0F errors, and also
>
> ────────────────────────────────────────────────────────────────────────
> BootDevice Not Found
>
> Please install an operating system on your hard disk.
>
> Hard Disk - (3F0)
>
> F2 System Diagnostics
>
> For more information, please visit: www.hp.com\go\techcenter\startup
> ────────────────────────────────────────────────────────────────────────
>
> Note that the disk itself is recognized since the system allowed me
> to do a quick check on it (no errors).
>
> So, what could be wrong?
>
It looks like you've forgot to mark boot partition (/dev/sdb1 ?) as
'Active'.
It is necessary to do for DOS\MBR-style partition table, so stage-2
bootloader could be found during boot process.
You've got PXE-* errors because BIOS tried to boot from network using
PXE\BOOTP and failed.
--
With kindest regards, Alexander.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2022-01-18 01:20 +0100 |
| Message-ID | <DGKoa-7UD-3@gated-at.bofh.it> |
| In reply to | #244154 |
On 2022-01-18 04:15:14 +0500, Alexander V. Makartsev wrote: > It looks like you've forgot to mark boot partition (/dev/sdb1 ?) as > 'Active'. I wondered about that just after posting, as cfdisk showed that /dev/sdb1 didn't have the boot flag (contrary to the current disk /dev/sda1). But I forgot to check /dev/sdb1 *after* running grub-install, so I'm not sure. I thought that grub-install should have done that automatically based on the given information. I don't have the new disk here with me (I put the current disk back into the laptop), but I'll check tomorrow. Thanks. -- Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
[toc] | [prev] | [next] | [standalone]
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2022-01-18 16:30 +0100 |
| Message-ID | <DGYAN-o7-3@gated-at.bofh.it> |
| In reply to | #244154 |
On 2022-01-18 04:15:14 +0500, Alexander V. Makartsev wrote: > On 18.01.2022 03:44, Vincent Lefevre wrote: > > I tried to change my laptop disk following the instructions found at > > https://askubuntu.com/questions/260777/how-to-migrate-an-encrypted-lvm-install-to-a-new-disk [...] [...] > > But after changing the disk and booted, instead of getting GRUB, > > I got PXE-E61 and PXE-M0F errors, and also > > > > ──────────────────────────────────────────────────────────────────────── > > BootDevice Not Found > > > > Please install an operating system on your hard disk. > > > > Hard Disk - (3F0) > > > > F2 System Diagnostics > > > > For more information, please visit: www.hp.com\go\techcenter\startup > > ──────────────────────────────────────────────────────────────────────── > > > > Note that the disk itself is recognized since the system allowed me > > to do a quick check on it (no errors). > > > > So, what could be wrong? > > > It looks like you've forgot to mark boot partition (/dev/sdb1 ?) as > 'Active'. > It is necessary to do for DOS\MBR-style partition table, so stage-2 > bootloader could be found during boot process. Yes, this was the issue (among other issues I needed to solve... in particular, the --exclude rsync options did not behave as intended since they exclude *all* files and directories with the given name, not just the ones in the root directory). -- Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web