Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, October 26, 2018 5:04 AM
For boot failure this Microsoft link displays:
To do this, type the following commands at the Windows RE command prompt:
- bcdedit /export C:\BCD_Backup
- c:
- cd boot
- attrib bcd -s -h -r
- ren c:\boot\bcd bcd.old
- bootrec /RebuildBcd
How do you troubleshoot failure of the above commands?
For example:
C:\cd boot
C:\boot>attrib bcd -s -h -r
File not found - bcd
C:\attrib c:\bcd\boot -h -r -s
Path not found - C:\bcd
The directory of C: displayed:
Directory of C:\
07/28/2018 02:28 AM <DIR> boot
The directory of C:\boot displayed
C:\boot>dir
Volume in drive C has no label.
Directory of C:\boot
07/28/2018 02:28 AM <DIR> .
07/28/2018 02:28 AM <DIR> ..
07/28/2018 02:28 AM <DIR> macrium
0 File(s) 0 bytes
3 Dir(s) 128,452,489,216 bytes free
If the EFI partition is assigned a letter for example K:
then
C:\K:
K:\dir
Volume in drive K has no label.
Directory of K:\
06/16/2018 01:20 PM <DIR> EFI
0 File(s) 0 bytes
1 Dir(s) 39,522,304 bytes free
K:\cd efi
K:\EFI>dir
Volume in drive K has no label.
Directory of K:\EFI
04/30/2018 09:10 PM <DIR> .
04/30/2018 09:10 PM <DIR> ..
04/30/2018 09:10 PM <DIR> Microsoft
04/30/2018 09:17 PM <DIR> Boot
06/16/2018 01:20 PM <DIR> HP
0 File(s) 0 bytes
5 Dir(s) 39,522,304 bytes free
K:\EFI>cd microsoft
K:\EFI\Microsoft>dir
Volume in drive K has no label.
Directory of K:\EFI\Microsoft
04/30/2018 09:10 PM <DIR> .
04/30/2018 09:10 PM <DIR> ..
04/30/2018 09:10 PM <DIR> Boot
04/30/2018 09:17 PM <DIR> Recovery
0 File(s) 0 bytes
4 Dir(s) 39,522,304 bytes free
K:\EFI\Microsoft>cd boot
K:\EFI\Microsoft\Boot>dir
Volume in drive K has no label.
Directory of K:\EFI\Microsoft\Boot
04/30/2018 09:10 PM <DIR> .
04/30/2018 09:10 PM <DIR> ..
10/25/2018 11:34 PM 45,056 BCD
04/30/2018 09:17 PM <DIR> bg-BG
10/02/2018 11:27 PM 1,298,744 memtest.efi
03/18/2017 03:57 PM 4,662 updaterevokesipolicy.p7b
10/02/2018 11:27 PM 5,023 boot.stl
10/02/2018 11:27 PM 1,469,752 bootmgfw.efi
04/30/2018 09:17 PM <DIR> cs-CZ
04/30/2018 09:17 PM <DIR> da-DK
04/30/2018 09:17 PM <DIR> de-DE
04/30/2018 09:17 PM <DIR> el-GR
04/30/2018 09:17 PM <DIR> en-GB
04/30/2018 09:17 PM <DIR> en-US
04/30/2018 09:17 PM <DIR> es-ES
04/30/2018 09:17 PM <DIR> es-MX
04/30/2018 09:17 PM <DIR> et-EE
04/30/2018 09:17 PM <DIR> fi-FI
04/30/2018 09:17 PM <DIR> fr-CA
04/30/2018 09:17 PM <DIR> fr-FR
04/30/2018 09:17 PM <DIR> hr-HR
04/30/2018 09:17 PM <DIR> hu-HU
04/30/2018 09:17 PM <DIR> it-IT
04/30/2018 09:17 PM <DIR> ja-JP
04/30/2018 09:17 PM <DIR> ko-KR
04/30/2018 09:17 PM <DIR> lt-LT
04/30/2018 09:17 PM <DIR> lv-LV
10/02/2018 11:27 PM 1,453,056 bootmgr.efi
04/30/2018 09:17 PM <DIR> nb-NO
04/30/2018 09:17 PM <DIR> nl-NL
04/30/2018 09:17 PM <DIR> pl-PL
04/30/2018 09:17 PM <DIR> pt-BR
04/30/2018 09:17 PM <DIR> pt-PT
04/30/2018 09:17 PM <DIR> qps-ploc
04/30/2018 09:17 PM <DIR> ro-RO
04/30/2018 09:17 PM <DIR> ru-RU
04/30/2018 09:17 PM <DIR> sk-SK
04/30/2018 09:17 PM <DIR> sl-SI
04/30/2018 09:17 PM <DIR> sr-Latn-RS
04/30/2018 09:17 PM <DIR> sv-SE
04/30/2018 09:17 PM <DIR> tr-TR
04/30/2018 09:17 PM <DIR> uk-UA
10/02/2018 11:27 PM 8,786 winsipolicy.p7b
04/30/2018 09:17 PM <DIR> zh-CN
04/30/2018 09:17 PM <DIR> zh-TW
04/30/2018 09:17 PM <DIR> Fonts
04/30/2018 09:17 PM <DIR> Resources
04/11/2018 06:34 PM 31,136 kd_02_10df.dll
04/11/2018 06:34 PM 329,624 kd_02_10ec.dll
04/11/2018 06:34 PM 26,528 kd_02_1137.dll
04/11/2018 06:34 PM 216,480 kd_02_14e4.dll
04/11/2018 06:34 PM 44,448 kd_02_15b3.dll
04/11/2018 06:34 PM 42,904 kd_02_1969.dll
04/11/2018 06:34 PM 31,136 kd_02_19a2.dll
04/11/2018 06:34 PM 249,248 kd_02_8086.dll
04/11/2018 06:34 PM 18,840 kd_07_1415.dll
04/11/2018 06:34 PM 40,352 kd_0C_8086.dll
04/11/2018 06:34 PM 24,480 kdstub.dll
04/11/2018 06:34 PM 20,384 kd_02_1af4.dll
19 File(s) 5,360,639 bytes
40 Dir(s) 39,522,304 bytes free
K:\EFI\Microsoft\Boot>attrib bcd -s -h -r
K:\EFI\Microsoft\Boot>
Are these the correct commands to get the attrib command to work?
How come the attrib bcd -s -h -r command fails with the method displayed on the Microsoft webpage?
How come the Microsoft link does not indicate that the EFI partition needs to be labeled?
Please explain how to properly use the attrib bcd command if it regularly fails with the displayed commands?
Is the link only for MBR? Is that why it fails on GPT with EFI?
Or would it fail on MBR too?
All replies (6)
Monday, October 29, 2018 8:08 AM
Hi,
The link you provided applies to Windows 7 Starter, Windows 7 Starter N and Windows 7 Home Basic. Could you tell me what’s your PC version?
The correct command should be like this: attrib -h -r -sc:\ boot \ bcd**
Hope these are helpful.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Monday, October 29, 2018 9:29 AM
There are multiple computers with Windows 10 version 1607, 1703, 1803, 1809, etc.
Would like to find the proper command for any computer with Windows 10 to troubleshoot boot failure with the proper attrib command.
The command that you posted was entered and this was the displayed result:
C:\attrib -h -r -sc :\ boot \ bcd
Parameter format not correct -
C:\attrib -h -r -sc :\boot \bcd
Parameter format not correct -
C:\
Tuesday, October 30, 2018 9:51 AM
Hi,
Was there any error message or error code when boot failure?
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, October 30, 2018 1:59 PM
This post is not to troubleshoot boot but to get the correct command for Windows 10 using attrib.
There are many that have boot failure and the TechNet threads commonly display problems using this attrib command.
Friday, November 9, 2018 10:09 AM
Please refer to the official link:
Title: ATTRIB
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/attrib
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, November 9, 2018 4:34 PM
The attrib command fails for each GPT and MBR.
Are the problems related to the path?
Do the paths for the boot file and bcd file each need to be found before running the command as these commands consistently fail for for GPT and MBR:
Using GPT:
C:\cd boot
C:\boot>attrib bcd -s -h -r
File not found - bcd
C:\boot>
.
.
.
Using MBR:
C:\cd boot
The system cannot find the path specified.
C:\
Which path for the attrib command works for GPT?
Which path for the attrib command works for MBR?
.
.
.
The link that was posted refers to directories:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/attrib
.
.
This command regularly fails.
Is it because it is the wrong directory for Windows 10 GPT or MBR?
- bcdedit /export C:\BCD_Backup
- c:
- cd boot
- attrib bcd -s -h -r
- ren c:\boot\bcd bcd.old
- bootrec /RebuildBcd
.
.
.
Is this the proper path for GPT?
K:\EFI\Microsoft\Boot>attrib bcd -s -h -r
.
.
.
What is the proper path for MBR?