安装windows server系统提示"无法在此驱动器上安装windows"的解决办法
11-06
现在服务器的硬盘都比较大,经常会超过2TB。所以安装系统的时候经常会出现一些新的问题。
1,安装windows server 2008r2/2012r2时提示:无法在此驱动器上安装windows。
因为服务器出厂一般默认还是BIOS引导,当你合并VD(虚拟磁盘)后,改用UEFI引导安装windows时会出现此错误。此时你可以使用”shift+F10”快捷键打开命令行窗口。执行以下命令清除之前BIOS引导时磁盘分区残留的信息。命令如下:
复制代码
代码如下:
diskpart (启动diskpart程序)
list disk (列出现有的磁盘,一般合并后为一个disk0)
select disk 0(这里根据实际情况选择你要清除残留信息的磁盘)
clean (清除所选磁盘残留信息,注意所有的数据也将丢失)
然后就可以像平时安装windows那样进行安装了。
2,超过2TB的硬盘不能划分为一个分区。
这是因为BIOS引导下默认MBR分区格式最大只能支持到2.1TB,超过了就不能划分为一个分区。需要更改为UEFI格式引导,采用GPT分区格式。
3,GPT分区格式磁盘不能建立扩展分区,不能建立逻辑分区。
这是因为GPT分区本身不支持扩展分区和逻辑分区。但GPT分区格式windows下支持最多128个主分区肯定是够用了。所以直接分区主分区就好了。
附上diskpart命令参数:
复制代码
代码如下:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:/Users/Administrator>diskpart
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: XXXYYY
DISKPART> help
Microsoft DiskPart version 6.1.7601</p><p>ACTIVE - Mark the selected partition as active.
ADD - Add a mirror to a simple volume.
ASSIGN - Assign a drive letter or mount point to the selected volume.
ATTRIBUTES - Manipulate volume or disk attributes.
ATTACH - Attaches a virtual disk file.
AUTOMOUNT - Enable and disable automatic mounting of basic volumes.
BREAK - Break a mirror set.
CLEAN - Clear the configuration information, or all information, off the
disk.
COMPACT - Attempts to reduce the physical size of the file.
CONVERT - Convert between different disk formats.
CREATE - Create a volume, partition or virtual disk.
DELETE - Delete an object.
DETAIL - Provide details about an object.
DETACH - Detaches a virtual disk file.
EXIT - Exit DiskPart.
EXTEND - Extend a volume.
EXPAND - Expands the maximum size available on a virtual disk.
FILESYSTEMS - Display current and supported file systems on the volume.
FORMAT - Format the volume or partition.
GPT - Assign attributes to the selected GPT partition.
HELP - Display a list of commands.
IMPORT - Import a disk group.
INACTIVE - Mark the selected partition as inactive.
LIST - Display a list of objects.
MERGE - Merges a child disk with its parents.
ONLINE - Online an object that is currently marked as offline.
OFFLINE - Offline an object that is currently marked as online.
RECOVER - Refreshes the state of all disks in the selected pack.
Attempts recovery on disks in the invalid pack, and
resynchronizes mirrored volumes and RAID5 volumes
that have stale plex or parity data.
REM - Does nothing. This is used to comment scripts.
REMOVE - Remove a drive letter or mount point assignment.
REPAIR - Repair a RAID-5 volume with a failed member.
RESCAN - Rescan the computer looking for disks and volumes.
RETAIN - Place a retained partition under a simple volume.
SAN - Display or set the SAN policy for the currently booted OS.
SELECT - Shift the focus to an object.
SETID - Change the partition type.
SHRINK - Reduce the size of the selected volume.
UNIQUEID - Displays or sets the GUID partition table (GPT) identifier or
master boot record (MBR) signature of a disk.</p><p>DISKPART>