Re: HP elitedesk 705 G1 mt will not boot from dvd
On Mar 25, 2024, at 13:43, Thomas Cameron 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@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: HP elitedesk 705 G1 mt will not boot from dvd
On 4/1/24 17:10, Samuel Sieb wrote: On 4/1/24 15:03, Thomas Cameron wrote: I've never heard of having to overwrite the end of the drive, but then, I've only been working with Linux professionally since 1995. ¯\_(ツ)_/¯ GPT has a backup copy stored in the last block of the disk. You are absolutely correct. My poor little systems aren't big enough to use GPT volumes (mostly smaller KVM instances), so I didn't think about that. :-D Although I'm relatively certain I've nuked GPT volumes on my hypervisors when I've rebuilt them, and they were not visible as volumes when I reinstalled the OS. I'll dig into that, now you have me curious. -- Thomas -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: HP elitedesk 705 G1 mt will not boot from dvd
On 4/1/24 15:03, Thomas Cameron wrote: I've never heard of having to overwrite the end of the drive, but then, I've only been working with Linux professionally since 1995. ¯\_(ツ)_/¯ GPT has a backup copy stored in the last block of the disk. -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: HP elitedesk 705 G1 mt will not boot from dvd
On 4/1/24 15:57, Barry Scott wrote: I tend to dd of a few MiB of zeros over the front of the disk. A few KiB is often not enough. In some cases you also need to overwrite at the end of the disk I have been told. Barry TMTOWTDI. The dmesg output is generally *plenty* to nuke the boot sector and render the drive unbootable, triggering a PXE boot. Depending on your hardware, the boot sector is either 512 bytes or 4096 bytes (4K), and the output of dmesg is over 40K on my system. So I'm lazy and just do: dmesg > /dev/[device] systemctl reboot I've known folks who do: cat /var/log/messages > /dev/[device] systemctl reboot or dd if=/dev/zero of=/dev/[device] bs=1M count=1 systemctl reboot and that works, too. I've never heard of having to overwrite the end of the drive, but then, I've only been working with Linux professionally since 1995. ¯\_(ツ)_/¯ -- Thomas -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: HP elitedesk 705 G1 mt will not boot from dvd
On 1 Apr 2024, at 18:21, Thomas Cameron wrote: > > On 4/1/24 00:25, Javier Perez wrote: >>When I realize I need to nuke my machine and start over, it's: >>sudo -i >>dmesg > /dev/nvme1n1 >>systemctl reboot >>Choose the right kickstart from the menu. >>Refill coffee. >>Go back to working as if nothing happened. My home directory is there >>and my machine is reset to sane defaults. >>-- Thomas >> Neat! Is there a tutorial somewhere about how to do this? > Not that I know of. I saw it in some article decades ago. Basically, what > you're doing is overwriting the first few k of the disk, which overwrites the > boot instructions and partitions and the like. I tend to dd of a few MiB of zeros over the front of the disk. A few KiB is often not enough. In some cases you also need to overwrite at the end of the disk I have been told. Barry > > Unless you're talking about kickstart or something else? > - > - > Thomas > -- > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > 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@lists.fedoraproject.org > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: shutdown as a simple user
On 4/1/24 02:32, François Patte wrote: Le 2024-04-01 10:40, Samuel Sieb a écrit : On 4/1/24 01:08, François Patte wrote: Up to yesterday, I was allowed to shutdown and hibernate my machine as a simple user. Using the gui or the command line? I use xfce and in the panel there is tab with the user name, using this you can shutdown, hibernate or lock the session. Now shutdown and hibernate are greyed and I can't use them. I have to become root in a terminal and use the command init 0. What happens if you run "shutdown" or "reboot" in the terminal as your user? And if that doesn't work, then what happens if you do that as root? -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: HP elitedesk 705 G1 mt will not boot from dvd
On 4/1/24 00:25, Javier Perez wrote: When I realize I need to nuke my machine and start over, it's: sudo -i dmesg > /dev/nvme1n1 systemctl reboot Choose the right kickstart from the menu. Refill coffee. Go back to working as if nothing happened. My home directory is there and my machine is reset to sane defaults. -- Thomas Neat! Is there a tutorial somewhere about how to do this? Not that I know of. I saw it in some article decades ago. Basically, what you're doing is overwriting the first few k of the disk, which overwrites the boot instructions and partitions and the like. Unless you're talking about kickstart or something else? -- Thomas -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: shutdown as a simple user
On Mon, 2024-04-01 at 11:32 +0200, François Patte wrote: > Le 2024-04-01 10:40, Samuel Sieb a écrit : > > On 4/1/24 01:08, François Patte wrote: > > > Up to yesterday, I was allowed to shutdown and hibernate my > > > machine as > > > a simple user. > > > > Using the gui or the command line? > > I use xfce and in the panel there is tab with the user name, using > this > you can shutdown, hibernate or lock the session. Now shutdown and > hibernate are greyed and I can't use them. > I have to become root in a terminal and use the command init 0. > > > > > > Yesterday a powercut while the machine was up suppressed this > > > feature I don't understand why. > > > > > > How can recover this feature? > > > > How are you trying to do it and what happens? > > I have no idea about the way to recover... That's why I am asking > this > question. Crtl-Alt-Del should give you a selection of options including logout and restart (at least I assume so, though I haven't used XFCE). poc -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: shutdown as a simple user
Le 2024-04-01 10:40, Samuel Sieb a écrit : On 4/1/24 01:08, François Patte wrote: Up to yesterday, I was allowed to shutdown and hibernate my machine as a simple user. Using the gui or the command line? I use xfce and in the panel there is tab with the user name, using this you can shutdown, hibernate or lock the session. Now shutdown and hibernate are greyed and I can't use them. I have to become root in a terminal and use the command init 0. Yesterday a powercut while the machine was up suppressed this feature I don't understand why. How can recover this feature? How are you trying to do it and what happens? I have no idea about the way to recover... That's why I am asking this question. Thank you for helping. -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)6 7892 5822 http://www.math-info.univ-paris5.fr/~patte FSF https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: shutdown as a simple user
On 4/1/24 01:08, François Patte wrote: Up to yesterday, I was allowed to shutdown and hibernate my machine as a simple user. Using the gui or the command line? Yesterday a powercut while the machine was up suppressed this feature I don't understand why. How can recover this feature? How are you trying to do it and what happens? -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
shutdown as a simple user
Bonjour, Up to yesterday, I was allowed to shutdown and hibernate my machine as a simple user. Yesterday a powercut while the machine was up suppressed this feature I don't understand why. How can recover this feature? Thank you -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)6 7892 5822 http://www.math-info.univ-paris5.fr/~patte FSF https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue