Re: HP elitedesk 705 G1 mt will not boot from dvd

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

 



On Mar 25, 2024, at 13:43, Thomas Cameron <thomas.cameron@xxxxxxxxxxxxxxx> wrote:
> 
> On 3/25/24 11:38, Patrick O'Callaghan wrote:
>>> On Mon, 2024-03-25 at 11:07 -0500, Thomas Cameron wrote:
>>> dmesg > /dev/nvme1n1
>> What's that about?
>> poc
> 
> To further clarify, my system uses NVMe drives (/dev/nvme0n1 and /dev/nvme1n1). So when I do dmesg > /dev/nvme1n1 as root, it overwrites the first few hundred k of the NVMe disk, nuking the partition tables and boot instructions and the like. Then when I reboot, it causes my machine to PXE boot. You can nuke any drive by writing to the first few sectors, so it could have been /dev/sda, /dev/vda, /dev/xvda, or whatever.

On any modern system that uses UEFI, you can just use “efibootmgr -n ####” to temporarily set the next boot target to be the PXE boot entry (which has its own unique entry, replace #### with its number). Probably also worth deleting the existing entry to boot into Fedora at the same time. 

Wiping the partition table doesn’t always guarantee that the next boot will be PXE, which is why I liked to automate it specifically. 

No need to delete or wipe any bootloaders or partition tables, although it probably doesn’t hurt. I had a kickstart that preserved custom stuff like the krb5 keytab between reloads in the kickstart %pre section, so I didn’t want to just nuke the filesystem. 

-- 
Jonathan Billings
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux