none
Initialize disk says "incorrect function"

    Question

  • I have an external HDD disk that works fine with another computer. When I try to get it to install I get the "USB device installed
    correctly" tone but nothing shows up in the Computer panel.

    I then go to Computer Management and check on the disk. It is showing
    with a tiny red mark of some kind (very hard for my eyes to see) and the
    word "unknown" under Disk1. In addition, 'not initialized' is under the
    unknown notification.

    Right click on the disk and choose Initialize Disk. The pop up shows
    Disk 1 as checked and the radio button for MBR is pushed. Clicking "OK"
    produces the error "Incorrect Function" - which is what baffles me. How
    can it be an incorrect function if it is the only one selected? Is this
    a bug or an indication of some esoteric error that the disdk manager
    can't deal with?
    Tuesday, November 02, 2010 6:22 PM

Answers

  • Hi,

    I have a similar problem (Disk Management returning an "Incorrect function" error when trying to initialize a disk), so I tried your solution. In Diskpart, LIST DISK didn't show the disk (though its number was skipped), but it could be selected nonetheless with SELECT DISK <disk #>, and it was online. But DETAIL DISK didn't work, as though it couldn't access anything on the disk.


    Hi,

    Thanks for posting in forums. But you'd better create a new thread and post your question there so that the communities won't get messed up with this thread, and we can assist you more efficiently. Thanks for your understanding.

    BTW, the issue you described can be caused by bad or incompatible hard disk controller, please contact the hard disk manufacturer to get the latest controller and see how it works.

    Best Regards

    Dale


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Tuesday, November 09, 2010 1:42 AM
    Moderator

All replies

  • Hi,

     

    What is the Operating System installed on the current machine? What is the Operating System installed on another machine? What is the format of the disk? Is it a SAN disk?

     

    In order to do a further research, please use diskpart to get the details of the disk.

     

    1)    Open a Command Prompt in elevated privilege.

    2)    Run diskpart

    3)    List and Select the disk (List disk followed by SELECT DISK <disk #>).

    4)    If the disk is offline, bring it online by running: online disk

    5)    View the attributes by running: detail disk

     

    Then copy and paste the details in your reply.

     

    Best Regards

    Dale


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    • Proposed as answer by jatin26 Monday, December 31, 2012 12:20 PM
    • Unproposed as answer by jatin26 Monday, December 31, 2012 12:20 PM
    Wednesday, November 03, 2010 5:34 AM
    Moderator
  • No response? Is there any update information? Is the issue resolved?

    Best Regards

    Dale


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Monday, November 08, 2010 1:13 AM
    Moderator
  • Hi,

    I have a similar problem (Disk Management returning an "Incorrect function" error when trying to initialize a disk), so I tried your solution. In Diskpart, LIST DISK didn't show the disk (though its number was skipped), but it could be selected nonetheless with SELECT DISK <disk #>, and it was online. But DETAIL DISK didn't work, as though it couldn't access anything on the disk.

    Monday, November 08, 2010 5:32 PM
  • Hi,

    I have a similar problem (Disk Management returning an "Incorrect function" error when trying to initialize a disk), so I tried your solution. In Diskpart, LIST DISK didn't show the disk (though its number was skipped), but it could be selected nonetheless with SELECT DISK <disk #>, and it was online. But DETAIL DISK didn't work, as though it couldn't access anything on the disk.


    Hi,

    Thanks for posting in forums. But you'd better create a new thread and post your question there so that the communities won't get messed up with this thread, and we can assist you more efficiently. Thanks for your understanding.

    BTW, the issue you described can be caused by bad or incompatible hard disk controller, please contact the hard disk manufacturer to get the latest controller and see how it works.

    Best Regards

    Dale


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Tuesday, November 09, 2010 1:42 AM
    Moderator
  • Can you enable the vds logs and send it across to me?

    To enable the VDS trace log:
    1.     Exit all VDS clients and stop the VDS service: net stop vds
    2.     Clear any previous log that might have been made previously: del %SYSTEMROOT%\system32\$vds$.log
    3.     Enable debug logging: reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vds\DebugLog /v Level /t REG_DWORD /d 255 /f
    4.     Start up VDS and reproduce the issue.
    5.     VDS should continue tracing to %SYSTEMROOT%\system32\$vds$.log

    Once you have enabled the vds logs do the following

    diskpart> lis dis

    diskpart> sel disk <problem-disk>

    diskpart> detail disk

    diskpart> convert MBR

    share vds logs with me and I will have a look,

    Regards

    Satish

    Friday, March 30, 2012 1:12 PM
  • I am using windows vista. In disk management, it shows "unknown"  and "not initialized". When i try initializing it, i get error as "The request could not be performed because of I/O device error"/

    This is what i am getting when i run that command. Need help asap.

    Thanks in advance.

    DISKPART> detail disk

    WD Elements 1042 USB Device
    Disk ID: 00000000
    Type   : USB
    Bus    : 0
    Target : 0
    LUN ID : 0
    Read-only  : No
    Boot Disk  : No
    Pagefile Disk  : No
    Hibernation File Disk  : No
    Crashdump Disk  : No

    There are no volumes.

    Sunday, May 06, 2012 3:34 PM
  • Hi Dale - 

    Any time I go to detail disk after selecting "disk 2" (The disk in question, shows 0b/0b size/free) Diskpart stops responding and opens a new instance.

    Shall I try Satish's response below?

    Thanks,

    JV

    Wednesday, November 14, 2012 11:41 PM
  • Hi Satish - this is all that shows up when I follow your guide

    (PID:6048,TID:5692,18:44:54.972) ENTER CVdsLoader::CVdsLoader()
    (PID:6048,TID:5692,18:44:54.973) LEAVE CVdsLoader::CVdsLoader()
    (PID:6048,TID:5692,18:44:54.975) ENTER CVdsLoader::LoadService()
    (PID:6048,TID:5692,18:44:54.976) ENTER IsLocalComputer()
    (PID:6048,TID:5692,18:44:54.977) LEAVE IsLocalComputer()
    (PID:6048,TID:5692,18:44:54.979) LEAVE CVdsLoader::LoadService()
    (PID:6048,TID:5692,18:44:54.980) ENTER CVdsLoader::~CVdsLoader()
    (PID:6048,TID:5692,18:44:54.981) LEAVE CVdsLoader::~CVdsLoader()
    (PID:5176,TID:5488,18:45:31.212) ENTER CVdsLoader::CVdsLoader()
    (PID:5176,TID:5488,18:45:31.214) LEAVE CVdsLoader::CVdsLoader()
    (PID:5176,TID:5488,18:45:31.216) ENTER CVdsLoader::LoadService()
    (PID:5176,TID:5488,18:45:31.217) ENTER IsLocalComputer()
    (PID:5176,TID:5488,18:45:31.218) LEAVE IsLocalComputer()
    (PID:5176,TID:5488,18:45:31.219) LEAVE CVdsLoader::LoadService()
    (PID:5176,TID:5488,18:45:31.221) ENTER CVdsLoader::~CVdsLoader()
    (PID:5176,TID:5488,18:45:31.222) LEAVE CVdsLoader::~CVdsLoader()

    Wednesday, November 14, 2012 11:46 PM
  • DISKPART> detail disk

    Virtual Disk Service error:
    The system's information about the object may not be up to date.


    DiskPart has referenced an object which is not up-to-date.
    Refresh the object by using the RESCAN command.
    If the problem persists exit DiskPart, then restart DiskPart or restart the
    computer.
    Monday, December 31, 2012 12:21 PM
  • Hi Jatin,

    This disk has some hardware issues. Therefore you are not seeing this disk. If you do a rescan on diskpart you can see that disk disappearing from the disk list.

    diskpart internally uses VDS service which does talk to drivers to figure details of the disk port/mini port drivers. These errors are most likely coming from miniport drivers and therefore vds cannot do much here.

    I can give you exact detail if you can provide me the vds logs

    Following are the steps,

    To enable the VDS trace log:
    1.     Exit all VDS clients and stop the VDS service: net stop vds
    2.     Clear any previous log that might have been made previously: del %SYSTEMROOT%\system32\$vds$.log
    3.     Enable debug logging: reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vds\DebugLog /v Level /t REG_DWORD /d 255 /f
    4.     Start up VDS and reproduce the issue.
    5.     VDS should continue tracing to %SYSTEMROOT%\system32\$vds$.log

    Share complete $vds.log and I can get you further detail,

    Regards

    Satish

    Monday, December 31, 2012 2:44 PM
  • Hi Satish,

    I am wondering if you can help me. I have a similar situation with one of my harddrives. It is a WD Caviar Green disk. I connected it externally to produce this error log. I have tried it at home as well with 1 desktop and two laptops without much success. We did drop the hard drive once but it was working fine after that and I did not make much of it. In hindsight, I should have copied the files off the drive.

    I have attached the $vds$.log file. When I attempted to "detail disk", I got an error (possibly a crash) and I had options to debug (or) close. Obvioulsy, I clicked close. So, you may see that. I had to start diskpart again and this time, I skipped "detail disk" and went straight to "convert mbr" to produce the attached log.

    Hope all of the above makes sense. Any suggestion or help you can provide would be immensely helpful. I am just hoping I can salvage the data that is on this drive. There is a lot of music and videos/pictures that I need off this drive (if I can have it). Thanks again for your help in advance!

    Thank you very much - Ram Peruvemba.

    I do not have a way of emailing a log file here. I can only find the option to attach an image, which will not help. If you can give me an email to attach and send this log file, I will be happy to do so. Hoping to hear from you. Thanks!
    • Edited by Ram Peruvemba Monday, October 27, 2014 2:36 PM Cannot attach log file
    Monday, October 27, 2014 2:27 PM
  • Did you ever got this sorted? I am having the same issue and getting the same details. Let me know if you ever manage to fix this issue? Thanks
    Sunday, November 09, 2014 12:23 AM
  • Microsoft Windows [Version 10.0.14393]
    (c) 2016 Microsoft Corporation. All rights reserved.

    C:\WINDOWS\system32>diskpart

    Microsoft DiskPart version 10.0.14393.0

    Copyright (C) 1999-2013 Microsoft Corporation.
    On computer: IT-ALDANA

    DISKPART> list disk

      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          931 GB  1024 KB        *
      Disk 1    Online          931 GB   931 GB

    DISKPART> online disk

    No disk was selected to online.
    Please select a disk and try again.

        Brings the selected offline disk to the online state.

    Syntax:  ONLINE DISK [NOERR]

        NOERR       For scripting only. When an error is encountered, DiskPart
                    continues to process commands as if the error did not occur.
                    Without the NOERR parameter, an error causes DiskPart to exit
                    with an error code.

        This command operates on a single disk. A disk must be selected for
        this operation to succeed.

        This command operates on a disk that is in SAN offline mode.

        If the disk is dynamic, it is both read only and offline, and, the
        desired state is read\write and online, the suggested order of
        operations is to first make the disk read\write, and then bring
        the disk online. If a dynamic read only disk is brought online, it's
        status will be 'Errors'. The reason for this is that when a dynamic
        disk is brought online, the volume manager must write to the Dynamic
        Disk Database on the disk to update it's state. These writes will
        fail if the dynamic disk is read only.

    Examples:

        ONLINE DISK

    DISKPART> online disk

    No disk was selected to online.
    Please select a disk and try again.

        Brings the selected offline disk to the online state.

    Syntax:  ONLINE DISK [NOERR]

        NOERR       For scripting only. When an error is encountered, DiskPart
                    continues to process commands as if the error did not occur.
                    Without the NOERR parameter, an error causes DiskPart to exit
                    with an error code.

        This command operates on a single disk. A disk must be selected for
        this operation to succeed.

        This command operates on a disk that is in SAN offline mode.

        If the disk is dynamic, it is both read only and offline, and, the
        desired state is read\write and online, the suggested order of
        operations is to first make the disk read\write, and then bring
        the disk online. If a dynamic read only disk is brought online, it's
        status will be 'Errors'. The reason for this is that when a dynamic
        disk is brought online, the volume manager must write to the Dynamic
        Disk Database on the disk to update it's state. These writes will
        fail if the dynamic disk is read only.

    Examples:

        ONLINE DISK

    DISKPART> online disk

    No disk was selected to online.
    Please select a disk and try again.

        Brings the selected offline disk to the online state.

    Syntax:  ONLINE DISK [NOERR]

        NOERR       For scripting only. When an error is encountered, DiskPart
                    continues to process commands as if the error did not occur.
                    Without the NOERR parameter, an error causes DiskPart to exit
                    with an error code.

        This command operates on a single disk. A disk must be selected for
        this operation to succeed.

        This command operates on a disk that is in SAN offline mode.

        If the disk is dynamic, it is both read only and offline, and, the
        desired state is read\write and online, the suggested order of
        operations is to first make the disk read\write, and then bring
        the disk online. If a dynamic read only disk is brought online, it's
        status will be 'Errors'. The reason for this is that when a dynamic
        disk is brought online, the volume manager must write to the Dynamic
        Disk Database on the disk to update it's state. These writes will
        fail if the dynamic disk is read only.

    Examples:

        ONLINE DISK

    DISKPART> online disk

    No disk was selected to online.
    Please select a disk and try again.

        Brings the selected offline disk to the online state.

    Syntax:  ONLINE DISK [NOERR]

        NOERR       For scripting only. When an error is encountered, DiskPart
                    continues to process commands as if the error did not occur.
                    Without the NOERR parameter, an error causes DiskPart to exit
                    with an error code.

        This command operates on a single disk. A disk must be selected for
        this operation to succeed.

        This command operates on a disk that is in SAN offline mode.

        If the disk is dynamic, it is both read only and offline, and, the
        desired state is read\write and online, the suggested order of
        operations is to first make the disk read\write, and then bring
        the disk online. If a dynamic read only disk is brought online, it's
        status will be 'Errors'. The reason for this is that when a dynamic
        disk is brought online, the volume manager must write to the Dynamic
        Disk Database on the disk to update it's state. These writes will
        fail if the dynamic disk is read only.

    Examples:

        ONLINE DISK

    DISKPART> ONLINE DISK

    No disk was selected to online.
    Please select a disk and try again.

        Brings the selected offline disk to the online state.

    Syntax:  ONLINE DISK [NOERR]

        NOERR       For scripting only. When an error is encountered, DiskPart
                    continues to process commands as if the error did not occur.
                    Without the NOERR parameter, an error causes DiskPart to exit
                    with an error code.

        This command operates on a single disk. A disk must be selected for
        this operation to succeed.

        This command operates on a disk that is in SAN offline mode.

        If the disk is dynamic, it is both read only and offline, and, the
        desired state is read\write and online, the suggested order of
        operations is to first make the disk read\write, and then bring
        the disk online. If a dynamic read only disk is brought online, it's
        status will be 'Errors'. The reason for this is that when a dynamic
        disk is brought online, the volume manager must write to the Dynamic
        Disk Database on the disk to update it's state. These writes will
        fail if the dynamic disk is read only.

    Examples:

        ONLINE DISK

    DISKPART> DETAIL DISK

    There is no disk selected to list details for.
    Please select a disk and try again.

        Displays the properties of the selected disk and the list of volumes on
        the disk.

    Syntax:  DETAIL DISK

        A disk must be selected for this operation to succeed.

    Example:

        DETAIL DISK

    DISKPART> DETAIL DISK 1

    There is no disk selected to list details for.
    Please select a disk and try again.

        Displays the properties of the selected disk and the list of volumes on
        the disk.

    Syntax:  DETAIL DISK

        A disk must be selected for this operation to succeed.

    Example:

        DETAIL DISK

    DISKPART> SELECT DISK 1

    Disk 1 is now the selected disk.

    DISKPART> ONLINE DISK

    Virtual Disk Service error:
    This disk is already online.


    DISKPART> SELECT DISK 0

    Disk 0 is now the selected disk.

    DISKPART> ONLINE DISK

    Virtual Disk Service error:
    This disk is already online.


    DISKPART> LIST DISK

      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
    * Disk 0    Online          931 GB  1024 KB        *
      Disk 1    Online          931 GB   931 GB

    DISKPART> LIST DISK

      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
    * Disk 0    Online          931 GB  1024 KB        *

    DISKPART> LIST DISK

      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
    * Disk 0    Online          931 GB  1024 KB        *
      Disk 1    Online          931 GB   931 GB

    DISKPART> SELECT DISK 1

    Disk 1 is now the selected disk.

    DISKPART> DETAIL DISK

    TOSHIBA External USB 3.0 USB Device
    Disk ID: 00000000
    Type   : USB
    Status : Online
    Path   : 0
    Target : 0
    LUN ID : 0
    Location Path : UNAVAILABLE
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : No
    Pagefile Disk  : No
    Hibernation File Disk  : No
    Crashdump Disk  : No
    Clustered Disk  : No

    There are no volumes.

    DISKPART>
    Friday, May 26, 2017 7:17 AM