Hp Boot From Usb Windows 10

0 views
Skip to first unread message

Taneka Tarring

unread,
Aug 3, 2024, 5:58:56 PM8/3/24
to popermire

This topic covers how to manually create a Windows installation flash drive from Windows installation ISO disc image file or DVD, and is intended for manufacturers looking into creating media that they can use to manufacture Windows devices.

The steps described on this page assume you have Windows installation media and access to a Windows technician PC. If you're looking for an easy, automated way to create a bootable Windows installation flash drive, see:

What is the proper way (using grub2) to change the boot order in the boot menu?
I currently have Fedora 37 installed in a dual boot configuration with Windows 11.
Fedora is the default option, and I want to have Windows 11 as the default option.
Thank you!

The other entries (I expect including Windows 11) are in /boot/grub2/grub.cfg as menuentry items (each multi-line in what should be obvious overall syntax). You can change the order of those menuentry items relative to each other and relative to the whole group of automatic items, by changing the relative order within /boot/grub2/grub.cfg

Most documented changes that go into those are documented as changes to other files which end up modifying the way the above file and directory are automatically modified. Doing things indirectly is harder to figure out, but better documented and stable across things like kernel updates. But, so far as I know, there is no such indirect method of getting the change you want.

I just tested it on my dual boot desktop and it always boots to the last OS/kernel selected from the grub menu (windows included) until the user selects a different one to boot. It works perfectly to remember and always boot the same kernel/OS even after a kernel upgrade has been done. The only exception I have seen is that if one has selected the newest kernel in the grub menu, then a kernel update will still give you the newest kernel to boot (the one just installed as first in the menu)

If you first wanted to save a copy of the disk, then an image file would give you that. But you would still have the original disk either way. Cloning saves a step by going directly from old disk to new.

You should have at least 3 partitions in the clone, or at least as many as are on the original C: drive. If not, they somehow got deselected during the clone job setup. On a similar note, this also applies when making images. Make sure you are selecting all needed partitions on the source drive when imaging or cloning.

yep, I have the same number of partitions on the clone, and they are the correct sizes. The only difference is that the two that are not the primary partition do not have the windows symbol on them anymore as they did on the original disk. I am creating a disk image right now so I am going to try that method next and see if I have any better luck.

To minimise the size of the image file, the page and hibernation files are always excluded. These contain data discarded when Windows reboots, and consequently are not useful to restore a system to a bootable state.

Filesystems allocate storage blocks as files are created and appended and deallocate blocks when a file is deleted. Intelligent sector copy mode only reads active blocks. This speeds up the backup process and reduces the size of the backup. For all normal purposes, this is the correct option and will enable a system to be restored from scratch.

The alternative mode, Forensic Copy, will include every storage block in the backup (excluding the data discussed above). This potentially enables the recovery of deleted files as deallocated data is also included in the backup. For SSD based storage, this option has no utility and will only have the effect of slowing down the backup process.

A storage block is the minimum allocation unit of a filesystem. For NTFS, it is called a cluster. It is made up of a contiguous block of sectors. A sector is the minimum addressable unit of data on a disk, and typically represents 512 or 4096 bytes.

I'm facing a challenge with installing Windows 11 on my system, which currently does not support Secure Boot and lacks TPM 2.0. I understand that these features are generally required for the installation of Windows 11, but I've heard that there might be workarounds or alternative methods to install Windows 11 without secure boot and tpm 2.0.

My primary concern is ensuring a stable and functional setup without compromising the overall security and performance of the operating system. I'm seeking advice, tips, or detailed guidance from anyone who has successfully navigated this issue. Any insights into the steps involved, potential risks, or necessary preparations would be greatly appreciated. Thank you in advance for your help!

Alright, diving into the Windows 11 installation without Secure Boot and TPM 2.0 can be a bit tricky, but it's doable. You're right that these features are usually required by Windows 11, but there are ways around it. However, a heads-up: bypassing these requirements might affect your system's security and stability, so it's important to weigh the pros and cons.

Step1 . Create a Windows 11 Installation Media: First, you need the Windows 11 installation file. You can download it from the official Microsoft website and create a bootable USB drive.

Step 2. Modify the Installation Media: This is where you get around the TPM and Secure Boot requirements. Here I recommend using WinBootMate tool to bypass Winows 11's TPM and Secure boot. There are guides online that can walk you through this process. It involves downloading the file that bypasses the check and replacing the existing one on your USB.

Step 3. Select Windows 11 ISO file and your USB drive, then select "Bypass Windows 11's Secure Boot, TPM and CPU". Click "Burn", It will start to create a Windows bootable USB installer.

Step 4. Install Windows 11: With the modified installation media, you can proceed to install Windows 11 as you normally would. The setup should now skip the TPM and Secure Boot check.

I tried the Registry hacks found on the web. But it didn't work on in-place upgrade from Windows 10. It still went through the Windows Update hardware check. I finally stumbled upon a solution. The easiest way (perhaps the least known way) is to run the Windows 11 Setup.exe with the switch "/product server". It bypasses all the hardware checks. You can add that switch to the exe's run property or run it on command line.

@Parshiwal Not true. First you download Windows 11 Pro installation iso from Microsoft.com. Then mount it and run setup.exe with the switch. It will install nothing but Pro. Take it from someone who have done it successfully.

@Alexy2k Excellent! >Setup.exe /product server worked for me on an old Dell XPS 8500 desktop running Windows 10. It has no TPM and can't enable Secure Boot and is set to Legacy boot instead of UEFI. Now it's running Windows 11 Pro - no problems so far :)

Why is the systemd-boot loader menu being skipped (and going straight to Windows)?
Have I done done something incorrectly, or missed something obvious? Or perhaps I have a bad UEFI implementation.
Is there some diagnostics I could do to solve this?

I know this may seem like it's too simple a fix but this does sound like what the issue is. Has the boot flag been set on the ESP? The systemd install requires that it is but I haven't seen that documented nor have I seen it report any error when it isn't set.

You seem to be able to boot from UEFI directly but not via systemd. I take it that the encryption isn't posing a probem. I'd set the boot flag, which will also set the ESP flag if it isn't already. You may or may not have to reinstall bootctl. It seems to me that you will have to but try it without doing that first.

Warning: keep a copy of the original EFI/Microsoft/Boot/bootmgfw.efi to somewhere like your home directory or directly under /boot, since with this trick you might completely lose it by running bootctl install again or so.

Not sure. Haven't been doing it myself. Your way is certainly less nasty than mine. I am very doubtful about your WU concern tho. Windows might revert your changes to the BCD casually but I don't think it wouls keep reinstalling bootmgfw.efi to the ESP. Also I don't see how it can break WU either coz that's nothing like fast startup or whatsoever.

Plus I couldn't find a way to set boot flags with gdisk (i.e. GPT fdisk). FWIW I used gdisk to initially setup the partitions prior to the Arch install.
Also a Tip: I read fdisk shouldn't be used on GPT partitions, and gdisk shouldn't be used on MBR partitions.

What's behind the scene on GPT is partition type GUID. If you use fdisk to create a partition on a GPT you can see them listed when you pick the type. "EF00" is the gdisk translation of the partition type GUID. "EFI System" is often set as a partition label, which is arbitrary.

Partition type (code on MBR PT / GUID on GPT) rarely matters to a UEFI. I have yet to see an implementation that actually care about it. In any case, your UEFI is obviously aware of your ESP so it's either the type is correct or it simply doesn't care.

P.S. the esp flag is most likely the parted translation for the ESP partition type GUID. I am unsure about the boot flag though, it seem to have different meaning on different types of partition table. But meh, parted is silly, if not awful...

c80f0f1006
Reply all
Reply to author
Forward
0 new messages