現在服務器的硬盤都比較大,經常會超過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>