-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Notebooks
- Notebook Operating System and Recovery
- Re: BCD removed by accident - No bootable device

Create an account on the HP Community to personalize your profile and ask a question
08-15-2024 04:26 AM
@Tk_srq
Hi @Tk_srq,
Thank you so much! Most of what I typed went ok. but when I typed bcdboot g:\windows /s S: there was an error.
I will tell you what I did between your sencentes below, what the result was and I have some questions, ok? 🙂
diskpartselect disk 1 OK
select partition 2 OK
assign letter=g OK
list volume [Check to make sure volume 3 now has letter G] OK
list partition 1 Here I typed select partition 1 - OK
delete partition OK
create partition efi size=549 OK
format quick fs=fat32 Why fat32 and not NTFS? Before formating the type was NTFS. The system drive/partition was/is also an NTFS type. I typed what you wrote: format quick fs=fat32. OK
assign letter=s This partition had letter E before. Why assign letter s? I typed what you wrote: assign letter=s. OK
exit OK
bcdboot g:\windows /s S: After I type this there appears an error: Failure when initializing library system volume
exit
After my former partition mistake the C drive letter was changed into No letter. Is there maybe a reference in the copied (boot files) to a c-drive or is that a dumb assumption?
Thanks again for helping me so much!
Greeting, Charlie
08-15-2024 10:48 PM
An efi partition is also called as a system partition. It "must be formatted using the FAT32 file format."
Source: UEFI/GPT-based hard drive partitions | Microsoft Learn
You deleted E:\Nieuw Volume (partition1 disk1), so letter E no longer exists. You used this space to create an efi partition. You can assign any unused letter to the efi partition. It doesn't have to be 's'. I just used it because it is used as an example in the Microsoft article below which I referenced a lot.
BCDBoot Command-Line Options | Microsoft Learn
Hopefully, I answered your questions. I reread your posts and noticed your notebook's model number ended with #ABH which is Netherlands. Bcdboot requires a Locale parameter if your locale (language-country code) is other than the default en-us (US English). See the aforementioned MS article for more info about a locale.
According to this website, your locale is nl-nl, so you need to add /l nl-nl to the bcdboot command.
Run diskpart, list volume and list partition. If you still see volume G (Windows partition)/partition 2 disk 1 and volume S (efi partition)/partition1 disk 1, command lines you need to run will be like this:
diskpart
list volume
select disk 1
list partition
exit
bcdboot g:\windows /l nl-nl /s S:
exit
08-16-2024 08:06 AM
@Tk_srq
Hi @Tk_srq,
Thank you so much for your information and help!
This is what I did/happened.
A - I typed: bcdboot g:\windows /l nl-nl /s S:
The message that appeared was: Boot files successfully created
B - I started my computer.
There were several black screens with the following messages:
Screen 1
EaseUs Partition Master Boor Operation
The program is being initialized! Please wait...
1 operation of 1
Moving and resizing Partition
Hard disk: 1
File system: NTFS
Drive letter: C:
Start sector: 1161216 ==>1126400
Partition size: 243631 MB ==> 243648
Cluster size: 4 KB
Total: 25% Current Operation: 25% Moving data 14%
Screen 2
EaseUs Partition Master Boor Operation
The batch operations are processed completely!
Wait a second please. Rebooting system...
Screen 3
To skip disk checking, press any key within 7 seconds
Screen 4
Fixing (D:) Stage 1: 13% (39592 of 295168); Total: 4%; ETA: 0:00:39
Screen 5
Fixing (D:) Stage 2: 75% (296147 of 390228); Total: 76%; ETA: 0:00:6
Screen 6
Fixing (D:) Stage 3: 44% (2152 of 4825); Total: 97%; ETA: 0:00:00
Screen 7
To skip disk checking, press any key within 8 seconds
Screen 8
Scanning and repairing drive (E:): 100 complete
Screen 9
Only a black screen.
After starting up the computer again:
Only a black screen.
I wanted to take a look how the structure and drive letters looked like.
C - To check what is on Disk 1 I did the following.
Diskpart select disk 1
Disk 1 is now selected
select partition 2
Partition 2 is now selected
list volume
And this is what he has come up with. The volume letters G and S were gone.
Volume ### Ltr Label Fs Type Size Status Info
Volume 0 C DATA NTFS Partition 917 GB Healthy
Volume 1 D RECOVERY NTFS Partition 13 GB Healthy
Volume 2 FAT32 Partition 549 GB Healthy Hidden
Volume 3 NTFS Partition 237 GB Healthy Hidden
Volume 4 E FAT32 Removable 29 GB Healthy
Volume 5 D NTFS Partition 13 GB Healthy Hidden
D - I assigned the letters G and S again like you taught me.
Letter G was assigned. Letter S not (message like letter S cannot be assigned).
E - I tried to assign letter P then.
Letter P was assigned.
F - After trying to startup the computer again the screen showed me a black screen only. Nothing further happened.
G - When I listed de volume again drive letters G and P were gone.
Greetings and thanks, Charlie
08-16-2024 07:55 PM
It appears that the bcdboot command successfully created the boot manager in the efi partition. When the system restarted, however, the pending disk/partition work kicked in before Windows was loaded. From your description the work involved moving/resizing volume C (Windows) partition in disk 1, but it ended up stripping the drive letter from the Windows partition, leaving it hidden.
My suggestion is to run a diagnostic test for the boot drive and to reinstall Windows using HP Cloud Recovery Tool, if the drive passes the tests.
Turn on the notebook and immediately tap the F2 key and run all three hard drive tests (Smart check and short and long DST tests). If the test generates a failure code, you need to replace the drive.
The cloud recovery tool creates a bootable usb drive that installs Windows, drivers and HP software. You need a 32 GB usb drive. See this link for how to use the recovery tool.
HP Consumer PCs - Using the HP Cloud Recovery Tool in Windows 11 and 10 | undefined
- « Previous
-
- 1
- 2
- Next »