Drive and all partitions detected in Disk Management, but assigning a drive letter is grayed out

11,419

Solution 1

Use CMD's tool DiskPart for the partitioning and formatting of the drives.

Commands you may then issue at the DISKPART prompt:

LIST   Disk
LIST   Partition
LIST   Volume

SELECT Disk=n
SELECT Partition=n
SELECT Volume=n_or_d  (Number or Drive Letter)

DETAIL Disk
DETAIL Partition
DETAIL volume

ACTIVE  (set the current in-focus partition to be the system partition)
ASSIGN  (allocate the next free drive letter)
ASSIGN LETTER=E   (Choose a free letter)
ATTRIBUTES DISK [{set | clear}] [readonly] [noerr]
ATTRIBUTES VOLUME [{set | clear}] [{hidden | readonly | nodefaultdriveletter | shadowcopy}] [noerr]
AUTOMOUNT [enable] [disable] [scrub] [noerr]
FILESYSTEMS     (Use 'Select Volume' first)
HELP
INACTIVE   (mark a system/boot partition as inactive [don’t boot], use 'Select Partition' first)
OFFLINE disk [noerr] (Take the current disc offline, use 'Select Disk' first)
ONLINE {disk|volume} [noerr]
REM  (remark/comment)
REMOVE letter=E [dismount] [noerr]  (Remove drive letter E from the in-focus partition)
REMOVE mount=path [dismount] [noerr]  (Remove mount point from the in-focus partition)
REMOVE /ALL [dismount] [noerr]    (Remove ALL current drive letters and mount points)
RESCAN     (Locate new disks that have been added to the computer)
SHRINK [desired=n] [minimum=n] [nowait] [noerr]  (Reduce the size of the in-focus volume)
SHRINK querymax [noerr]
EXIT
UNIQUEID disk [id={dword | GUID}] [noerr]   (Display or set the GUID partition table identifier or MBR signature for the disk with focus)

Commands to Manage Basic Disks:

ASSIGN MOUNT=path  (Choose a mount point path for the volume)
CREATE PARTITION Primary Size=50000  (50 GB)
CREATE PARTITION Extended Size=25000
CREATE PARTITION logical Size=25000
DELETE Partition
EXTEND Size=10000
GPT attributes=n   (assign GUID Partition Table attributes)
SET id=byte|GUID [override] [noerr]   (Change the partition type)

Commands to Manage Dynamic Disks:

ADD disk=n   (Add a mirror to the in-focus SIMPLE volume on the specified disk see 'Diskpart Help' for more.)
BREAK disk=n  (Break the current in-focus mirror)
CREATE VOLUME Simple Size=n Disk=n
CREATE VOLUME Stripe Size=n Disk=n,n,...
CREATE VOLUME Raid Size=n Disk=n,n,...
DELETE DISK
DELETE PARTITION
DELETE VOLUME
EXTEND Disk=n [Size=n]
EXTEND Filesystem [noerr]
IMPORT [noerr]   (Import a foreign disk group, use 'Select Disc' first)
RECOVER [noerr]  (Refresh disc pack state, attempt recovery on an invalid pack, & resynchronize stale plex/parity data.)
REPAIR disk=n [align=n] [noerr]  (Repair the RAID-5 volume with focus, replace with the specified dynamic disk)
RETAIN   (Prepare an existing dynamic simple volume to be used as a boot or system volume)

Commands to Convert Disks:

CONVERT basic
CONVERT dynamic
CONVERT gpt
CONVERT mbr
CLEAN [ALL]   (remove all partition and volume info from the hard drive)
FORMAT [{fs=ntfs|fat|fat32] [revision=x.xx] | recommended}] [label="label"] [unit=n] [quick] [compress] [override] [nowait] [noerr]

The diskpart commands may be placed in a text file (one command per line) and used as an input file to diskpart.exe:

DiskPart.exe < myscript.txt

Example:

SELECT DISK=0
CREATE PARTITION PRIMARY
ASSIGN LETTER=E
SELECT PARTITION=1
FORMAT FS=NTFS LABEL="New Volume" QUICK
EXIT 

noerr - This option is for scripting only. With noerr set, when an error is encountered, DiskPart will continue to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code.

When selecting a volume or partition, you may use either the number or drive letter or the mount point path.

For Microsoft support: http://support.microsoft.com/kb/300415

Solution 2

There are 6 partitions on that hard drive, while you can have max 4 to keep it working. Windows prevents any modifications because it has detected unrecognized partition configuration.

I have no idea what piece of software allowed you to create those. I guess it can be a corrupted partition table (that 1 MB and 10 MB partitions look suspicious, did you create those?)

Anyway, last time I saw something like that, I was able to remove excessive partitions with TestDisk. Dropping the first two partitions (these suspicious ones) will reduce number to 4 primary ones, allowing you to rescue your data on Windows. Then you should repartition the drive to be sure it won't fail when you least expect it.

If you need more than 4 partitions, create three primary ones and fourth extended partition. Then you'll be able to create logical disks inside it.

Share:
11,419
gronostaj
Author by

gronostaj

Updated on September 18, 2022

Comments

  • gronostaj
    gronostaj almost 2 years

    Disk Management screenshot

    I'm not sure what the problem is. I'm having a lot of hard drive issues all of a sudden. Two of my drives work fine, 1 empty one refuses to initialize, the one in the screenshot won't let me assign a drive letter, and my former external hard drive (removed it from the enclosure, put it in the computer) has seemingly wiped itself somehow (argh).

    I'm using Windows 7 Pro x64, and all of these drives are SATA, except for K: which is IDE. It's not a power supply issue, 700w is way more than enough for everything I have in the case.

    • ganesh
      ganesh almost 11 years
      I see three primary partitions, some unallocated space and two more partitions. I also see two different partitions, which might the the single extended partitions. Wait. Two, single; parse error! Might windows be equally confused?
  • ganesh
    ganesh almost 11 years
    those external pages can disappear and this sites goal is to continue to provide useful information in the future; even if external links become invalid. Mentioning the source is good, but could you please also copy a bit more in formation into the post?