an operating system wasn't found

Symptoms

When trying đồ sộ boot Windows, you receive the error:

An operating system wasn’t found. Try disconnecting any drives that don’t contain an operating system.

Bạn đang xem: an operating system wasn't found

Press Ctrl+Alt+Del đồ sộ restart

error

Resolution

A bootable USB or DVD with Windows 7 or higher is needed đồ sộ bring up the Command Prompt. If you don’t have a bootable truyền thông media available, you can obtain one by following the create installation truyền thông media steps found here.

Bring up the command prompt:

  1. Boot from any DVD or USB Windows 7, 8, or 10 truyền thông media.

  2. Once you have reached the Windows Setup screen (where you select the Language, Time and Keyboard settings), press the SHIFT + F10 keys đồ sộ bring up the Command Prompt.


Find out whether your disk is mix đồ sộ GUID Partition Table (GPT) or Master Boot Record (MBR):

  1. In the Command Prompt, type diskpartand press Enter.

  2. Type list disk and press Enter.

  3. Look for your disk and see if the GPT column has an asterisk (*) – this will indicate the disk is GPT. If no asterisk is found, then the disk is mix as MBR.

  4. Type exit and press Enter.

  1. From the Command Prompt, type dir a: and press Enter.

    1. If drive A: is found and a directory is displayed, kiểm tra for the \Windows thư mục in the directory. If it is there, that is the System Drive. Skip đồ sộ step 2.

    2. If the drive is not found or it doesn’t contain the \Windows thư mục, type dir b: and press Enter. Continue through the alphabet until the drive with the \Windows thư mục is found, but skip the X: drive. That will be the install files from the USB or DVD you are using. The most common location is the C: drive, sánh that example will be used in the rest of the article.

  2. Once it is found, type:bcdboot C:\Windows /S C:

    1. In this case, C is the drive where Windows thư mục was found. If the Windows thư mục is on a different drive, use that drive letter instead of “C” in the bcdboot command above.

  3. The message Boot files successfully created must be shown before you can continue.

  4. Type: diskpart and press Enter.

  5. Type: list disk and press Enter.

  6. Type: sel disk C and press Enter.

    1. In this case, C is the drive where Windows thư mục was found. If the Windows thư mục is on a different drive, use that drive letter instead of “C” in the sel disk command above.

  7. Type: list vol and press Enter.

  8. Type: sel vol C and press Enter.

    1. In this case, C is the drive where Windows thư mục was found. If the Windows thư mục is on a different drive, use that drive letter instead of “C” in the sel disk command above.

      Xem thêm: rất xinh đẹp tuyệt vời

  9. Type: active and press Enter.

    1. You should get a confirmation that the volume has been successfully mix as active. If you don’t get the confirmation, it means that either the disk is mix đồ sộ GPT (not MBR), or there is a problem with the disk. Make sure you are working with the right disk.

  10. Type: exit and press Enter.

  11. Reboot the device - you can vì thế this quickly from the command prompt by typing: shutdown -f -r -t 00 and press Enter.

If the type is GPT:

  1. From the Command Prompt, type dir a: and press Enter.

    1. If drive A: is found and a directory is displayed, kiểm tra for the \Windows thư mục in the directory. If it is there, that is the System Drive. Skip đồ sộ step 2.

    2. If the drive is not found or it doesn’t contain the \Windows thư mục, type dir b: and press Enter. Continue through the alphabet until the drive with the \Windows thư mục is found, but skip the X: drive. That will be the install files from the USB or DVD you are using. The most common location is the C: drive, sánh that example will be used in the rest of the article.

  2. Type: diskpart and press Enter.

  3. Type: list disk and press Enter

  4. Type: sel disk C and press Enter.

    1. In this case, C is the drive where Windows thư mục was found. If the Windows thư mục is on a different drive, use that drive letter instead of “C” in the sel disk command above.

  5. Type: list part and press Enter.

  6. Look for the partition labeled as System.

  7. Once it is found, assign the letter R đồ sộ the partition. If the letter R is already taken, you can choose any unassigned letter. To assign the letter type: assign letter=r: and press Enter.

  8. Type: exit and press Enter.

  9. Return đồ sộ the command prompt, type the following one line at a time, pressing Enter after each line:

    1. cd /d r:\EFI\Microsoft\Boot\

    2. ren BCD BCD.bak

    3. bcdboot c:\Windows /l en-us /s m: /f UEFI

      • Note The /l en-us part of the command sets the Windows language đồ sộ English. To mix a different language, replace en-us with a different language code (such as de-de for German).

        Xem thêm: 2/5 giờ bằng bao nhiêu phút

  10. Reboot the device - you can vì thế this quickly from the command prompt by typing: shutdown -f -r -t 00 and pressing Enter.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how đồ sộ secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Tác giả

Bình luận