หมายเลขบทความ (Article ID): 300415 - รีวิวครั้งสุดท้าย: 10 มกราคม 2554 - Revision: 4.0 คำอธิบายของยูทิลิตีบรรทัดคำสั่ง Diskpart
ถ้าต้องการรับการปรับปรุงความปลอดภัยอย่างต่อเนื่องสำหรับ Windows โปรดตรวจสอบว่าคุณใช้ Windows XP พร้อม Service Pack 3 (SP3) สำหรับข้อมูลเพิ่มเติม โปรดดูที่หน้าเว็บของ Microsoft ต่อไปนี้::การสนับสนุนกำลังจะสิ้นสุดลงสำหรับ Windows บางรุ่น (http://windows.microsoft.com/en-us/windows/help/end-support-windows-xp-sp2-windows-vista-without-service-packs)เนื้อหาบนหน้านี้สรุปบทความนี้อธิบายเกี่ยวกับโปรแกรมอรรถประโยชน์ Diskpart คุณสามารถใช้ยูทิลิตีนี้เพื่อเปิดใช้งานการกำหนดค่าการเก็บข้อมูลจากสคริปต์ เซสชันระยะไกล หรือพรอมต์คำสั่งอื่น diskpart พัฒนาอินเทอร์เฟซของผู้ใช้แบบกราฟิกดิสก์ผู้ดูแลระบบ (GUI) ข้อมูลเพิ่มเติมdiskpart แตกต่างจากโปรแกรมอรรถประโยชน์บรรทัดคำสั่งจำนวนมากได้เนื่องจากจะไม่ทำงานในโหมดแบบบรรทัดเดียว แทน หลังจากที่คุณเริ่มต้นอรรถประโยชน์การ คำสั่งจะอ่านจากมาตรฐานอินพุต/เอาท์พุต (I/O) คุณสามารถทางตรงคำสั่งเหล่านี้กับทุกดิสก์ พาร์ติชัน หรือไดรฟ์ข้อมูล การเปรียบเทียบกับการจัดการดิสก์diskpart superset ของการดำเนินการที่ได้รับการสนับสนุน โดยสแนปอินการจัดการดิสก์ ที่เปิดใช้งาน สแนปอินการจัดการดิสก์ prohibits คุณจากการดำเนินการกระทำที่อาจทำให้ข้อมูลสูญหายโดยไม่ได้ตั้งใจ ขอแนะนำให้ คุณใช้ยูทิลิตี Diskpart cautiously เนื่องจากตัวควบคุมที่ชัดเจนของพาร์ติชันและไดรฟ์ข้อมูลที่ทำให้ Diskpartคุณสามารถใช้ Diskpart การแปลงดิสก์แบบพื้นฐานเป็นดิสก์แบบไดนามิก ดิสก์พื้นฐานสามารถว่างเปล่า หรือประกอบด้วยพาร์ติชันหลักหรือไดรฟ์ลอจิคัล ดิสก์พื้นฐานสามารถมีข้อมูลดิสก์ หรือระบบ หรือบูตไดรฟ์ ดิสก์พื้นฐานไม่สามารถมีความบกพร่อง tolerant ดิสก์การตั้งค่าโปรแกรมควบคุม (FtDisk) เช่นลายทางหรือมิเรอร์ เมื่อต้องการแปลงดิสก์แบบพื้นฐานที่มีการตั้งค่าโปรแกรมควบคุม FtDisk ใช้ Disk Management บน Windows 2000 หรือแปลงดิสก์ก่อนที่คุณปรับรุ่นเป็น Windows XP คุณสามารถใช้ Diskpart เพื่อแปลงเป็นไดนามิกดิสก์เป็นดิสก์แบบพื้นฐาน คุณต้องลบไดรฟ์ข้อมูลแบบไดนามิกใด ๆ ไว้ก่อนขั้นตอนการแปลง ไม่แนะนำว่า คุณลบพาร์ติชันบนดิสก์แบบไดนามิกยกเว้นในกรณีฉุกเฉิน ขอแนะนำให้ คุณลบไดรฟ์ข้อมูลทั้งหมดบนไดรฟ์ และจากนั้น แปลงดิสก์พื้นฐาน คุณต้องลบพาร์ทิชันแบบไดนามิกข้อมูลทั้งหมด ยัง ไม่เคยผสมพาร์ติพื้นฐานหลัก และแบบไดนามิกชันในไดรฟ์เดียวกัน ถ้าคุณทำเช่นนั้น เครื่องคอมพิวเตอร์อาจไม่สามารถเริ่มระบบใหม่ คุณสามารถใช้ Diskpart เพื่อสร้างพาร์ติชันที่ออฟเซตของดิสก์ที่ชัดเจน สแนปอินการจัดการดิสก์ทำพาร์ติชันที่ตอนท้าย ของพื้นที่ว่าง หรือ ในพื้นที่ที่มีขนาดใหญ่อย่างแรก ในมาสเตอร์บูตดิสก์ของเรกคอร์ด (MBR) ออฟเซตพาร์ติชันและขนาดเป็นปัดเศษเพื่อเก็บการจัดตำแหน่งกระบอกที่จำเป็นต้อง offsets ปัดเศษค่าที่ถูกต้องใกล้เคียงที่สุด และขนาดอยู่เสมอขึ้นการปัดเศษค่าที่ถูกต้องถัดไป diskpart ไม่กำหนดอักษรระบุไดรฟ์ให้กับพาร์ติชันที่สร้างขึ้นใหม่ ใช้แบบกำหนดคำสั่งเพื่อกำหนดจุดเชื่อมต่อหรืออักษรชื่อไดรฟ์ diskpart ตามนโยบายที่เหมือนกัน ตามที่สามารถถูกสร้างดิสก์แบบไดนามิกนิ้วแนปบนดิสก์ถาวรเท่านั้น คุณไม่สามารถแปลงดิสก์แบบถอดได้ เช่น 1394 หรือ universal serial bus (USB) ไดรฟ์ เป็นไดนามิกดิสก์ diskpart อนุญาตให้พาร์ติชันที่แน่นอนดำเนินการลบที่ถูกบล็อค โดยสแนปอิน ตัวอย่างเช่น คุณสามารถใช้ Diskpart การลบพาร์ติชัน MBR OEM อย่างไรก็ตาม พาร์ติชันเหล่านี้มักจะประกอบด้วยแฟ้มที่มีความสำคัญกับการดำเนินการกับแพลตฟอร์มไป diskpart บล็อกการลบของระบบปัจจุบัน บูต หรือไดรฟ์ข้อมูลของเพจใน และพาร์ติชัน นอกจากนี้ Diskpart บล็อกการลบพาร์ทิชันที่ underlie ดิสก์แบบไดนามิก คุณไม่สามารถใช้ Diskpart เพื่อสร้างพาร์ติชันบนสื่อที่ถอดออกได้ windows สนับสนุนพาร์ติอย่างมาก MBR ชันหนึ่งบนสื่อที่ถอดออกได้ ถ้าสื่อถูกผลิต ด้วย MBR มี MBR นั้นไม่สามารถเปลี่ยน แต่ตาม MBR แม้ว่าการกำหนดค่าพาร์ติชันหรือไดรฟ์ลอจิคัลหลายรายการ ถ้าสื่อถูกผลิตโดยไม่มี MBR สื่อถูกจัดให้เป็นแบบ "superfloppy" และไม่มีโครงสร้างพาร์ติชันถูกเขียนไปยังสื่อ อักษรชื่อไดรฟ์สำหรับไดรฟ์แบบถอดได้เกี่ยวข้อง กับไดรฟ์ และไม่ มีสื่อ คุณสามารถใช้ Diskpart การเปลี่ยนอักษรชื่อไดรฟ์ ลายเซ็นดิสก์ทำให้ diskpart ตารางพาร์ติชัน GUID (GPT) ตัวระบุที่ไม่ซ้ำกัน (guid ของ), และพาร์ติชัน GPT guid ของให้มีสร้างดิสก์ คุณไม่สามารถกำหนดรายการเหล่านี้ได้ โดยใช้ Diskpart ยูทิลิตี Diskpart (เช่นเดียว กับแนป-ใน) รวมการสนับสนุนสำหรับใหม่ Itanium ดิสก์พาร์ติชันแบบ GPT ที่เรียกว่า คุณไม่สามารถใช้ดิสก์ GPT ใด ๆ x ใช้ x86 Windows xp หรือ Windows 2000 ใช้คอมพิวเตอร์ diskpart ช่วยให้การแปลงของ GPT พาร์เพื่อ MBR พาร์สำหรับดิสก์ที่ว่างเท่านั้น คุณสามารถใช้ Diskpart เพื่อลบดิสก์แบบไดนามิกที่ขาดหายไป ไดนามิกดิสก์ประกอบด้วยฐานข้อมูลที่ใช้ร่วมกัน ทั้งหมดของดิสก์แบบไดนามิกในคอมพิวเตอร์ที่มีความรู้ของดิสก์แบบไดนามิกทั้งหมดอื่น ๆ บนคอมพิวเตอร์เครื่องนั้น เมื่อมีย้ายไดนามิกดิสก์ เครื่องคอมพิวเตอร์เดิมพิจารณาเหล่าดิสก์เป็น "ที่ขาดหายไป" Drive letters are not automatically assigned when you use Diskpart. To ensure that a given partition or volume has a drive letter, you must explicitly assign a drive letter. You can either assign the drive letter or allow the next available drive letter to be allocated. Setting FocusMost Diskpart commands operate on a specific target disk, partition, or volume. The targeted object has "focus." Focus simplifies the common configuration task in which you create multiple partitions on the same disk. An object is put into focus by theเลือกคำสั่ง All Commands except forlist,help,rem,exitหรือhelprequire focus.ใช้แบบเลือกcommand to explicitly change the focus. To implicitly change the focus, use a command such ascreate. You must set the disk focus before you manage a basic disk. On basic disks, the partition focus and volume focus are the same. If you change the focus on one item, you change the focus on the other. On dynamic volumes, only the volume focus is important because the previous partition focus is always lost and the disk focus is only important for simple volumes. Consider the following examples of a computer that has two disks:
สคริปต์Diskpart supports scripted operations. To initiate a Diskpart script, use thediskpart /s script.txtคำสั่ง You can script Diskpart on Windows XP, Windows 2000, Remote Installation Services (RIS) unattended install environments, or on the Windows Preinstall Environment (PE) for OEMs.By default, Diskpart can quit command processing and return an error code if there is a problem in the script. To continue to run a script in this scenario, include thenoerrparameter on the command. This parameter allows you to use a single script to delete all partitions on all data drives, regardless of the total number of drives. However, not all commands support thenoerrพารามิเตอร์ Even if you use thenoerrparameter, an error is always returned on command syntax errors. The following list describes the error codes for Diskpart:
Command SummaryCommands to Set Focusเลือกใช้แบบเลือกcommand to set the focus to the specified target. To obtain a list of focus types, leave theประเภท:field blank. If you do not specify an identification (ID) number, the current focus object is displayed. select disk[=n] ใช้แบบselect diskcommand to set the focus to the disk that has the specified Windows NT disk number. If you do not specify a disk number, the command displays the current in-focus disk. select partition[=n/l] ใช้แบบเลือกพาร์ติชันคำสั่งเพื่อกำหนดโฟกัสไปยังพาร์ติชันที่ระบุ ถ้าคุณไม่ได้ระบุพาร์ติชัน พาร์ติชันในโฟกัสปัจจุบันจะปรากฏขึ้น บนดิสก์พื้นฐาน คุณสามารถระบุพาร์ติชัน โดยดัชนีอย่างใดอย่างหนึ่ง อักษรชื่อไดรฟ์ หรือกำหนดใช้จุด คุณสามารถระบุพาร์ติชันเฉพาะ โดยดัชนีบนดิสก์แบบไดนามิก เลือกไดรฟ์ข้อมูลที่ [= / n l] ใช้แบบเลือกไดรฟ์ข้อมูลคำสั่งเพื่อกำหนดโฟกัสไปยังไดรฟ์ข้อมูลที่ระบุ ถ้าคุณไม่ระบุไดรฟ์ข้อมูล คำสั่งแสดงระดับเสียงในโฟกัสปัจจุบัน คุณสามารถระบุระดับเสียง โดยดัชนี อักษรชื่อไดรฟ์ หรือเส้นทางจุดเชื่อมต่อ บนดิสก์พื้นฐาน ถ้าคุณเลือกไดรฟ์ข้อมูล พาร์ติชันที่สอดคล้องกันถูกวางในโฟกัส คำสั่งในการตั้งค่าคอนฟิกดิสก์การแสดงผลใช้แบบรายการคำสั่งเพื่อแสดงข้อมูลสรุป เมื่อต้องการแสดงข้อมูลเพิ่มเติม กำหนดโฟกัส และใช้การรายละเอียดคำสั่งรายละเอียดดิสก์ ใช้แบบรายละเอียดดิสก์คำสั่งเพื่อขอรับข้อมูลรายละเอียดเกี่ยวกับดิสก์ในโฟกัสปัจจุบัน ตัวอย่างเช่น: Diskpart> select disk 3 Disk 3 is now the selected disk. Diskpart> detail disk Maxtor 90432D2 Disk ID: F549D151 Type : IDE Bus : 0 Target : 0 LUN ID : 0 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------------- ------- --------- -------- Volume 0 F My RAID Set NTFS RAID-5 4096 MB Healthy Volume 1 G FATSTRIPE FAT32 Stripe 6144 MB Healthy Volume 2 H My Mirror NTFS Mirror 2048 MB Healthy Volume 3 I My Span NTFS Spanned 9 GB Healthy ใช้แบบพาร์ติชันของรายละเอียดคำสั่งเพื่อขอรับข้อมูลรายละเอียดเกี่ยวกับพาร์ติปัจจุบันในโฟกัสชัน Diskpart> select disk 0 Disk 0 is now the selected disk. Diskpart> select partition 1 Partition 1 is now the selected partition. Diskpart> detail partition Partition 0 Type : 07 Hidden: No Active: Yes Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 2 C NTFS Partition 4110 MB Healthy System ใช้แบบไดรฟ์ข้อมูลรายละเอียดคำสั่งเพื่อขอรับข้อมูลรายละเอียดเกี่ยวกับปริมาณปัจจุบันในโฟกัส ตัวอย่างเช่น: Diskpart> select volume 1 Volume 1 is now the selected volume. Diskpart> detail volume Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- Disk 1 Online 8 GB 0 B * Disk 2 Online 8 GB 0 B * Disk 3 Online 8 GB 0 B * ใช้แบบรายการดิสก์คำสั่งเพื่อดูข้อมูลสรุปเกี่ยวกับแต่ละดิสก์ในคอมพิวเตอร์ ดิสก์ที่ มีเครื่องหมายดอก (*) มีการโฟกัสการปัจจุบัน เฉพาะ ถาวรดิสก์ (ตัวอย่างเช่น รวมอุปกรณ์อิเล็กทรอนิกส์ [IDE หรืออินเทอร์เฟซการระบบของคอมพิวเตอร์ขนาดเล็ก [SCSI) หรือดิสก์แบบถอดได้ (ตัวอย่างเช่น 1394 หรือ USB) จะแสดงรายการ ไดรฟ์แบบถอดได้ไม่ถูกแสดง Diskpart> select disk 3 Disk 3 is now the selected disk. Diskpart> list disk Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- Disk 0 Online 4118 MB 0 B Disk 1 Online 8 GB 4002 MB * Disk 2 Online 8 GB 0 B * * Disk 3 Online 8 GB 0 B * Disk M0 Missing 8 GB 0 B * ใช้แบบพาร์ติชันของรายการคำสั่งเพื่อดูข้อมูลเกี่ยวกับแต่ละพาร์ติชันบนดิสก์ในโฟกัส ตัวอย่างเช่น: Diskpart> select disk 4 Disk 4 is now the selected disk. Diskpart> list partition Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Primary 4094 MB 31 KB Partition 2 Extended 4581 MB 4094 MB Partition 3 Logical 2047 MB 4094 MB Partition 4 Logical 2533 MB 6142 MB All partitions (regardless of type) are displayed. ใช้แบบไดรฟ์ข้อมูลรายการคำสั่งเพื่อดูข้อมูลเกี่ยวกับแต่ละระดับเสียงในเครื่องคอมพิวเตอร์ ตัวอย่างเช่น: Diskpart> list volume Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------------- ------- ---------- -------- Volume 0 F My RAID Set NTFS RAID-5 4096 MB Healthy Volume 1 G FATSTRIPE FAT32 Stripe 6144 MB Failed Volume 2 H My Mirror NTFS Mirror 2048 MB Healthy Volume 3 I My Span NTFS Spanned 9 GB Healthy Volume 4 D CDFS CD-ROM 0 B Volume 5 C NTFS Partition 2047 MB Healthy System Volume 6 E NTFS Partition 2063 MB Healthy Boot Volume 7 J My Primary NTFS Partition 4095 MB Healthy Volume 8 K My Logical NTFS Partition 2047 MB Healthy Volume 9 L My Next Log NTFS Partition 2534 MB Healthy คำสั่งในการจัดการดิสก์แบบพื้นฐานส่วนนี้อธิบายคำสั่งที่คุณสามารถใช้ เพื่อสร้าง และลบพาร์ติชัน และการกำหนดอักษรไดรฟ์ และการกำหนดใช้จุด คำสั่งในส่วนนี้นำไปใช้กับดิสก์พื้นฐานเท่านั้น ให้อ้างอิงถึงในส่วนต่อไปนี้ สำหรับคำสั่งที่ถูกต้องบนดิสก์แบบไดนามิก หรือคำสั่งที่คุณสามารถใช้การแปลงดิสก์พื้นฐานเป็นไดนามิกดิสก์บนดิสก์แบบ MBR ทั้งหมดsizeหรือออฟเซตพารามิเตอร์จะปัดเศษขึ้นกับการจัดตำแหน่งกระบอก ในดิสก์ GPT,sizeหรือออฟเซตพารามิเตอร์การปัดเศษการจัดตำแหน่งของเซกเตอร์ ถ้ามีออฟเซตไม่มีระบุพารามิเตอร์ พาร์ติชันที่วางอยู่ในขอบเขตดิสก์ที่อยู่ติดกัน unoccupied แรกที่มีขนาดใหญ่พอ ถ้ามีsizeพารามิเตอร์ไม่อยู่ในรายการ อาจถูกขยายพาร์ติชันที่จะใช้ดิสก์การกำหนดขอบเขตจนถึงขนาดของดิสก์ทั้งหมด หลังจากที่ดิสก์ใหม่ถูกค้นพบ ก่อนที่จะสันนิษฐานเป็น ดิสก์แบบ MBR คุณได้ต้องแปลงดิสก์ให้ GPT ก่อนที่คุณพยายามที่จะสร้างพาร์ติชัน GPT It is recommended that you create the MSR as the first partition on every data disk and the second partition (after the ESP) on any system or boot disk. After you convert from MBR to GPT, the MSR partition is automatically created on the disk. After you create any new partition, the newly created partition gains the partition focus. After you delete any partition, the partition focus is lost. The disk focus remains unchanged in all cases. active ใช้แบบactivecommand to set the current in-focus partition to "active." This setting informs the firmware that the partition is a valid system partition. Diskpart does not validate the partition contents. หมายเหตุ:: If you use this command, the computer may be unable to restart. assign [[letter=l]/[mount=path]] [noerr] ใช้แบบกำหนดcommand to assign a letter or mount point to the current in-focus partition. If you do not specify a drive letter, the next available drive letter is assigned. If the letter or mount point is already in use, an error is generated unless you use thenoerrพารามิเตอร์ You can use this command to change the drive letter that is associated with a removable drive. The drive letter assignment is blocked on the system, boot, or paging volumes. This command cannot be used to assign a drive letter to an OEM partition or any GPT partition, other than the Msdata partition. create partition primary [size=n] [offset=n] [id=byte/guid] [noerr] ใช้แบบcreate partition primarycommand to create a primary partition of length size and a starting address offset on the current drive. If an ID byte is not specified on an MBR disk, this command creates a partition with type "0x6." คุณสามารถใช้ได้หมายเลขparameter to specify the partition type. There is no validity or other checking of the ID byte. If you do not specify an ID GUID on a GPT disk, this command creates an Msdata partition. คุณสามารถใช้ได้หมายเลขparameter to specify any GUID. There is no validity, duplication, or other checking of the GUID. The partition instance GUID is automatically generated. MBR and GPT partitions are created so that Windows does not automatically allocate drive letters. You must explicitly assign a drive letter. create partition extended [size=n] [offset=n] [noerr] ใช้แบบcreate partition extendedcommand to create an extended partition of length size and starting address offset on the current drive. The drive must be an MBR disk. After the partition is created, the new extended partition gains the focus. You can create only one extended partition. You can create logical drives only after you create an extended partition. create partition logical [size=n] [offset=n] [noerr] ใช้แบบcreate partition logicalcommand to create a logical drive of length size and starting address offset in an existing extended partition on the current disk. The drive must be an MBR disk. If an offset is not listed, the logical drive is placed in the first unoccupied contiguous disk extent in the extended partition that is large enough. If a size is not listed, the partition may be extended to occupy the entire extended partition. After you create the partition, the logical drive gains the partition focus. create partition msr [size=n] [offset=n] [noerr] กระบวนการcreate partition msrcommand is the equivalent of creating the partition with the MSR GUID E3C9E316-0B5C-4DB8-817D-F92DF00215AE. create partition esp [size=n] [offset=n] [noerr] กระบวนการcreate partition espcommand is the equivalent of creating the partition with ESP GUID C12A7328-F81F-11D2-BA4B-00A0C93EC93B. delete partition [noerr] [override] ใช้แบบdelete partitioncommand to delete the current in-focus partition. Diskpart blocks the deletion of the current system, boot, or paging volume. To delete either an ESP, MSR, or a known OEM partition, you must specify theoverrideพารามิเตอร์ extend [size=n][noerr] ใช้แบบextendcommand to cause the current in-focus volume to be extended into contiguous unallocated space. The unallocated space must follow (it must be of higher sector offset than) the in-focus partition. The intended use of this command is to grow an existing basic data partition into newly created space on an extended hardware Raid logical unit number (LUN). If the partition had been previously formatted with the NTFS file system, the file system is automatically extended to occupy the larger partition, and data loss does not occur. If the partition had been previously formatted with any file system format other than NTFS, the command is unsuccessful and does not change the partition. Diskpart blocks the extension of only the current system or boot partition. remove [[letter=l]/[mount=path]/[all]] [noerr] ใช้แบบremovecommand to remove a letter or mount point from the current in-focus partition. ถ้าคุณระบุนั้นทั้งหมดparameter, all of the current drive letters and mount points are removed. If you do not specify a letter or mount point, the drive letter is removed. Use this command to change the drive letter that is associated with a removable drive. The drive letter removal is blocked on the system, boot, or paging volumes. You cannot use this command to remove a drive letter to an OEM partition, any GPT partition with an unrecognized GUID, or any of the special non-data, GPT partitions, such as, the ESP partition. Commands to Manage Dynamic DisksYou can use the commands that are described in this section to create and delete volumes, repair fault tolerant volumes, and import disks.กระบวนการsizeพารามิเตอร์เป็นปัดเศษเสมอขึ้นกับการจัดตำแหน่งเมกะไบต์ คุณไม่สามารถระบุออฟเซตชัดเจน ไดรฟ์ข้อมูลวางอยู่ในขอบเขตดิสก์ที่อยู่ติดกัน unoccupied แรกที่มีขนาดใหญ่พอเสมอ หากขนาดมีอยู่ในรายการ ไม่มีสร้างไดรฟ์ข้อมูลที่เป็นไปได้มากที่สุด หลังจากที่ไดรฟ์ข้อมูลถูกสร้าง โฟกัสของไดรฟ์ข้อมูลถูกเก็บบนไดรฟ์ข้อมูลที่สร้างขึ้นใหม่ โฟกัสดิสก์ปัจจุบันจะสูญหายไปหากไดรฟ์ข้อมูลแบบขยายขอบเขตดิสก์ต่าง ๆ โฟกัสของไดรฟ์ข้อมูลจะสูญหายไปหากมีลบไดรฟ์ข้อมูล ถ้าไม่ได้รับโฟกัสดิสก์ที่ถูกต้องก่อนที่คุณลบไดรฟ์ข้อมูล โฟกัสดิสก์นั้นยังคงอยู่ หมายเหตุ:: Diskpart บังคับให้สร้างพาร์ติชัน MSR บนดิสก์ว่างเปล่าเมื่อดิสก์นั้นถูกแปลงไปยัง dynamic หรือดิสก์ GPT ที่ใช้งานอยู่ ใช้แบบที่ใช้งานอยู่คำสั่งการตั้งค่าระดับเสียงในโฟกัสปัจจุบันเป็นใช้งาน "อยู่ แนะนำการตั้งค่านี้เกี่ยวกับเฟิร์มแวร์ว่า พาร์ติชันเป็นพาร์ติชันระบบที่ถูกต้อง ตรวจ diskpart สอบเท่านั้นที่ ไดรฟ์ข้อมูลมีความสามารถของการประกอบด้วยระบบปฏิบัติการสำหรับรูป แต่โปรแกรมอรรถประโยชน์การตรวจสอบเนื้อหาของพาร์ติชันไม่ ถ้าคุณใช้คำสั่งนี้ เครื่องคอมพิวเตอร์อาจไม่สามารถเริ่มระบบใหม่ เพิ่มดิสก์ = n [noerr] ใช้แบบaddคำสั่งเพื่อเพิ่มมิเรอร์ของไดรฟ์ข้อมูลในโฟกัสปัจจุบันบนดิสก์ที่ระบุ มีสนับสนุน plexes มิเรอร์สองเท่านั้น ระดับเสียงในโฟกัสปัจจุบันต้องเป็นไดรฟ์ข้อมูลแบบธรรมดา กำหนด [[อักษร = l] / [กำหนดใช้ =เส้นทาง]] [noerr] ใช้แบบกำหนดคำสั่งเพื่อกำหนดตัวอักษร หรือการกำหนดใช้ให้ชี้ไปที่ไดรฟ์ข้อมูลในโฟกัสปัจจุบัน ถ้าคุณไม่ได้ระบุอักษรระบุไดรฟ์ มีกำหนดอักษรชื่อไดรฟ์ที่มีอยู่ถัดไป ถ้าจุดตัวอักษรหรือการเชื่อมต่ออยู่ใช้ ข้อผิดพลาดถูกสร้างขึ้นเว้นแต่ว่าคุณระบุนั้นnoerrพารามิเตอร์ การกำหนดอักษรชื่อไดรฟ์ถูกบล็อคในระบบ บูต หรือไดรฟ์ข้อมูลของเพจ ดิสก์หยุดพัก = n [nokeep] [noerr] ใช้แบบตัวแบ่งคำสั่งให้แบ่งมิเรอร์ในโฟกัสปัจจุบัน โดยค่าเริ่มต้น เนื้อหาของ plexes มิเรอร์ทั้งสองถูกรักษาเนื่องจาก plexes ทั้งสองกลายเป็น ไดรฟ์ข้อมูลแบบธรรมดา ถ้าคุณระบุนั้นnokeepพารามิเตอร์ เฉพาะเพลกซ์ที่ระบุถูกเก็บไว้ เพลกซ์อื่น ๆ จะถูกเอาออก และแปลงเป็นว่าง ไดรฟ์ข้อมูลต้นฉบับ retains จุดจดหมายหรือการกำหนดใช้ไดรฟ์ any และทุก ถ้าเพล็กซ์ไม่มีเก็บ โฟกัสยังคงอยู่บนไดรฟ์ข้อมูลแบบธรรมดาสะสมบนดิสก์ที่ระบุ มิฉะนั้น โฟกัสจะเปลี่ยนเป็นเพลกซ์สะสมที่ระบุบนดิสก์ที่ระบุ เพล็กซ์กลายเป็น ไดรฟ์ข้อมูลแบบธรรมดา การกำหนดอย่างไรก็ตาม อักษรระบุไดรฟ์ไม่ให้กับไดรฟ์ข้อมูลใหม่ สร้างไดรฟ์ข้อมูลแบบธรรมดา [ขนาด = n] [ดิสก์ = n] [noerr] ใช้แบบสร้างไดรฟ์ข้อมูลแบบธรรมดาคำสั่งเพื่อสร้างไดรฟ์ข้อมูลแบบธรรมดาของความยาวขนาดบนดิสก์ที่ระบุ ถ้าคุณไม่ได้ระบุขนาด ไดรฟ์ข้อมูลใหม่สามารถนำค่าที่เหลืออยู่ติดกันเนื้อที่ว่างบนดิสก์ ถ้าคุณไม่ได้ระบุดิสก์ ดิสก์ในโฟกัสปัจจุบันถูกใช้ หลังจากที่ไดรฟ์ข้อมูลถูกสร้าง โฟกัสดิสก์ถูกกำหนดไปยังดิสก์เป็นเป้าหมาย สร้างไดรฟ์ข้อมูลสไทรพ์ [ขนาด = n] ดิสก์ = n [, n [...)]] [noerr] ใช้แบบสร้างไดรฟ์ข้อมูลสไทรพ์คำสั่งเพื่อสร้างไดรฟ์ข้อมูลการตั้งค่าสไทรพ์บนดิสก์ที่ระบุ ขนาดรวมของไดรฟ์ข้อมูลแบบสไทรพ์มีขนาดที่คูณ ด้วย (*) หมายเลขของดิสก์ ถ้าคุณไม่ได้ระบุขนาด เสียงสไทรพ์ที่เป็นไปได้มากที่สุดถูกสร้างขึ้น ดิสก์ที่ มีเล็กสุดพร้อมใช้งานอยู่ติดกันเนื้อที่ว่างที่จะกำหนด ขนาดของเนื้อที่ว่างที่กำหนดขนาดไดรฟ์ข้อมูลแบบสไทรพ์ มีการปันส่วนขนาดเท่ากันในแต่ละดิสก์ สร้างไดรฟ์ข้อมูล raid [ขนาด = n] ดิสก์ = n [, n [...)]] [noerr] ใช้แบบcreate volume raidcommand to create a Raid-5 set volume on the specified disks. An amount of space that is equal to "size" is allocated on each disk. If you do not specify a size, the largest possible Raid 5 volume is created. The disk with the smallest available contiguous free space is determined. The size of that free space determines the size for the Raid 5 volume and the same size is allocated from each disk. The actual usable size of the volume is less than the size multiplied by the number of disks, because some of the space is used for the parity. delete disk [noerr][override] ใช้แบบdelete diskcommand to delete a missing dynamic disk from the disk list. If you do not specify theoverrideparameter, all of the simple volumes that are contained on the disk are deleted and any mirror plexes are removed. If the disk contributes to a Raid 5 volume, the command is unsuccessful. delete partition [noerr] [override] ใช้แบบdelete partitioncommand to delete the current in-focus partition. Diskpart blocks the deletion of any partitions that are used to contain existing online dynamic volumes. Those volumes must be deleted and the disk converted to basic. To delete an ESP, MSR, or known OEM partition, specify theoverrideพารามิเตอร์ You can delete partitions from dynamic disks, but you cannot create them. For example, you can delete an unrecognized GPT partition on a dynamic GPT disk. If you delete a partition, the free space does not become available. You can use this command to reclaim the space on a corrupted offline dynamic disk in an emergency situation in which you cannot use thecleanคำสั่ง delete volume [noerr] ใช้แบบdelete volumecommand to delete the current in-focus volume. After you use this command, all data is lost. extend disk=n [size=n] [noerr] ใช้แบบextendcommand to extend the current simple or the extended volume onto the specified disk. กระบวนการextendcommand only works with NTFS volumes. If you do not specify a size, the volume can occupy all of the free space on the specified disk. Any existing disk focus is lost. import [noerr] ใช้แบบimportcommand to import all of the disks from a foreign disk group. If you set the focus on any disk in the foreign disk group, you can import all disks in the group. After you run this command, any existing volume or disk focus is lost. online [noerr] ใช้แบบonlinecommand to bring a disk or volume that had previously been taken offline back online. A change in focus does not occur if you use this command. remove [[letter=l]/[mount=path]/[all]] [noerr] ใช้แบบremovecommand to remove a letter or mount point from the current in-focus volume. ถ้าคุณใช้การทั้งหมดparameter, all of the current drive letters and mount points are removed. If you do not specify a letter or mount point, the path that is encountered first is removed. The drive letter removal is blocked on the system, boot, or paging volumes. รักษา ใช้แบบรักษาcommand to prepare a dynamic simple volume to be used as a boot or system volume. ถ้าคุณใช้การรักษาcommand on an x86-based computer, an MBR partition on the dynamic simple volume is created with focus. To create an MBR partition, the dynamic simple volume must start at a cylinder aligned offset and be an integral number of cylinders in size. ถ้าคุณใช้การรักษาcommand on an Itanium-based computer, theรักษาcommand creates a GPT partition on the dynamic simple volume with focus. Commands to Convert Disksconvert mbr [noerr]ใช้แบบแปลง mbrcommand to set the partitioning style of the current disk to MBR. The disk may be a basic disk or a dynamic disk but the disk must not contain any valid data partitions or volumes. convert gpt [noerr] ใช้แบบconvert gptcommand to set the partitioning style of the current disk to GPT. The disk may be a basic or a dynamic disk but it must not contain any valid data partitions or volumes. This command is valid only on Itanium-based computers; it may be unsuccessful on x-86-based computers. convert dynamic [noerr] ใช้แบบconvert dynamiccommand to change a basic disk into a dynamic disk. The disk may contain valid data partitions. convert basic [noerr] ใช้แบบconvert basiccommand to change an empty dynamic disk to basic. Miscellaneous Commandsexitใช้แบบexitcommand to stop Diskpart and return control to the operating system. clean [all] ใช้แบบcleancommand to remove partition or volume formatting from the current in-focus disk by zeroing sectors. By default, only the MBR or GPT partitioning information and any hidden sector information on MBR disks is overwritten. ถ้าคุณระบุนั้นทั้งหมดparameter, each and every sector can be zeroed, and all data that is contained on the drive can be deleted. rem [...] กระบวนการremcommand does nothing, and you can use it to comment script files. rescan ใช้แบบrescancommand to rescan all I/O buses and cause any new disks that have been added to the computer to be discovered. คำสั่งวิธีใช้วิธีใช้ใช้แบบวิธีใช้คำสั่งเพื่อแสดงรายการของคำสั่งทั้งหมด สำหรับข้อมูลเพิ่มเติมบนยูทิลิตี Diskpart ค้นหาบนdiskpartในการช่วยเหลือและสนับสนุนศูนย์ใน Windows XP ใช้กับ
แปลโดยคอมพิวเตอร์ข้อมูลสำคัญ: บทความนี้แปลโดยซอฟต์แวร์การแปลด้วยคอมพิวเตอร์ของ Microsoft แทนที่จะเป็นนักแปลที่เป็นบุคคล Microsoft มีบทความที่แปลโดยนักแปลและบทความที่แปลด้วยคอมพิวเตอร์ เพื่อให้คุณสามารถเข้าถึงบทความทั้งหมดในฐานความรู้ของเรา ในภาษาของคุณเอง อย่างไรก็ตาม บทความที่แปลด้วยคอมพิวเตอร์นั้นอาจมีข้อบกพร่อง โดยอาจมีข้อผิดพลาดในคำศัพท์ รูปแบบการใช้ภาษาและไวยากรณ์ เช่นเดียวกับกรณีที่ชาวต่างชาติพูดผิดเมื่อพูดภาษาของคุณ Microsoft ไม่มีส่วนรับผิดชอบต่อความคลาดเคลื่อน ความผิดพลาดหรือความเสียหายที่เกิดจากการแปลเนื้อหาผิดพลาด หรือการใช้บทแปลของลูกค้า และ Microsoft มีการปรับปรุงซอฟต์แวร์การแปลด้วยคอมพิวเตอร์อยู่เป็นประจำ ต่อไปนี้เป็นฉบับภาษาอังกฤษของบทความนี้:300415
(http://support.microsoft.com/kb/300415/en-us/
)
| ทรัพยากรอื่นๆ ไซต์การสนับสนุนอื่นๆ
ชุมชนรับความช่วยเหลือเดี๋ยวนี้การแปลบทความ
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email


กลับไปด้านบน
