Thread with 31 posts

jump to expanded post

‪startup repair didn't fix it, i guess it was too cursed. i'm instead installing windows 8.1 with some product key i found online (my burned windows 10 dvd has rotted but my windows 8.1 one is still good), since i know that'll create a usable gpt windows bootloader setup‬

Open thread at this post

hello from the last good version of windows. i missed this so goddamn much. windows 8.1 was a strange creature but it had the prettiest desktop theme and windows 10 just threw it away ;_;

(only installed it to unfuck the boot setup, won't be actually using it except for funsies)

Open thread at this post

and hello again from windows 10! i did need to do a little manual fixing up from the windows 8.1 side; with its bootlader installed, i could go into the windows 8.1 recovery command prompt and do bootrec /rebuildbcd to make it find and add windows 10 to the boot list ^^

Open thread at this post
Brian "bex" Exelbierd , @bexelbie@toot.io
(open profile)

@hikari So true. I think what annoys about first-line support is that, because they’ve been trained and not had practical experience, they all use the same sorting algorithm, regardless of the situation. I think this explains Greenspun's tenth rule … we all eventually hit, “well in lisp what I’d do is …”

This may even explain my friends who I think are brilliant. They have better sorting algorithms and a few extra tactics :).

Open remote post (opens in a new window)
Jernej Simončič � , @jernej__s@infosec.exchange
(open profile)

@hikari You'll have to recreate the Windows bootloader if you used gdisk (Windows has a tool that can convert MBR to GPT which also automatically writes the new bootloader – it's called mbr2gpt, and you can run it from install media).

What you need to do:

  • first make an EFI system partition (ESP) and format it to FAT32, it should be 100-300 MB in size; then boot any recent Windows install medium, and once it's booted press Shift+F10 – this will give you a command prompt.
  • run diskpart, type lis dis (which will list all disks in your machine), then sel dis X (replace X with your NVMe drive number); lis par (shows partitions), sel par X (replace X with ESP number), assign (assigns a drive letter to ESP, since it doesn't have it by default); lis vol (lists drive letters, you should now see which drive letter is your Windows partition, and which drive letter is ESP); exit (return to cmd.exe)
  • verify Windows partition drive letter with dir Y:
  • finally write the Windows bootloader with bcdboot Y:\windows /s Z: /f UEFI (Y: is your Windows partition, Z: is your ESP)
  • reboot with wpeutil reboot, and Windows should now boot
Open remote post (opens in a new window)
geraldew , @geraldew@fosstodon.org
(open profile)

@hikari this is where I wish I'd kept notes of things I've done. I have a vague memory of doing an MBR to GPT conversion years ago. It would have been using the Windows tooling though.

The context was a HP laptop that after a firmware upgrade could then support UEFI/GPT and had a little-used Windows 7 on it. The internal drive size wasn't a factor.

I was already running Linux from USB anyway, but only as MBR, so that let me start testing UEFI methods - ergo
dev.to/geraldew/ubuntu-linux-i

Open remote post (opens in a new window)
Jernej Simončič � , @jernej__s@infosec.exchange
(open profile)

@hikari Use gptfdisk (gdisk) to convert MBR to GPT.

With Linux my preferred way to clone to a new drive is to create the partitions anew anyway, and then rsync the data; this also lets you format the NVMe drive to 4k sectors if it supports them (check with smartctl -c /dev/nvme0, if there's 4096 listed under Supported LBA Sizes, you can reformat with nvme format -l1 /dev/nvme0n1; technically this will also let you use MBR with drives up to 16 TB, though I wouldn't recommend it).

Open remote post (opens in a new window)