Solved

Cannot boot from CD - CODE 5. Need to format my hard disc.

Im getting ''Cannot boot from CD - code5'' error when trying to boot from a windows7 disc.

I know i can install it directly from the windows (setup.exe) , but i need to boot from it in order to format the partition , because i want a fresh install.

When i tried installing from setup.exe and chose custom , it told me that some of my old files are going to be saved

What can i do so i format the partition ?
5 answers Last reply Best Answer
More about boot code format hard disc
  1. Go into bios and set your DVD as the first boot device.
    See if will boot when selecting the DVD from the boot list
  2. lp231 said:
    Go into bios and set your DVD as the first boot device.
    See if will boot when selecting the DVD from the boot list


    Still the same :/
  3. Best answer
    Looks like that CD isn't burned properly.
    Create a Win7 bootable usb flash drive, copy everything from the Disc to USB and use the USB to format
    and reinstall Win7.

    Grab a USB drive at least 4GB (Backup data if there is any to another computer not the one you're going to format)
    Open CMD run as admin and type in the following commands

    Diskpart
    List disk
    select disk #
    where # is the number link to the USB flash drive
    Clean
    Create Partition Primary
    Select Partition 1
    Format fs=ntfs quick
    active
    assign letter A-Z (use any letter that's not currently in use)
    Exit diskpart
    Still in CMD go to your DVD drive (let's say it's E:\)
    E:\>
    Next type CD Boot
    E:\Boot>bootsect /nt60 X:
    X= the letter you assigned to your USB flash drive
    Exit cmd

    Copy everything from Win7 disc to USB flash drive.
    Boot from USB flash drive
    Use this to do a format and clean install
  4. lp231 said:
    Looks like that CD isn't burned properly.
    Create a Win7 bootable usb flash drive, copy everything from the Disc to USB and use the USB to format
    and reinstall Win7.

    Grab a USB drive at least 4GB (Backup data if there is any to another computer not the one you're going to format)
    Open CMD run as admin and type in the following commands

    Diskpart
    List disk
    select disk #
    where # is the number link to the USB flash drive
    Clean
    Create Partition Primary
    Select Partition 1
    Format fs=ntfs quick
    active
    assign letter A-Z (use any letter that's not currently in use)
    Exit diskpart
    Still in CMD go to your DVD drive (let's say it's E:\)
    E:\>
    Next type CD Boot
    E:\Boot>bootsect /nt60 X:
    X= the letter you assigned to your USB flash drive
    Exit cmd

    Copy everything from Win7 disc to USB flash drive.
    Boot from USB flash drive
    Use this to do a format and clean install


    I will be getting a new cd tomorrow and will give that a try out ! Thanks !
  5. It's not your DVD drive, it's your Windows Disc.
Ask a new question

Read More

CD-Rom Partition Boot Windows 7