DISKPART: Difference between revisions
No edit summary |
No edit summary |
||
Line 113: | Line 113: | ||
detail volume | detail volume | ||
'''Näide:''' | '''Näide:''' | ||
detail disk | |||
FUJITSU MHT2040AT | |||
Disk ID: CCCDCCCD | |||
Type : IDE | |||
Bus : 0 | |||
Target : 0 | |||
LUN ID : 0 | |||
Volume ### Ltr Label Fs Type Size Status Info | |||
---------- --- ----------- ----- ---------- ------- --------- -------- | |||
Volume 3 C IBM_PRELOAD NTFS Partition 33 GB Healthy System | |||
detail partition | |||
Partition 1 | |||
Type : 07 | |||
Hidden: No | |||
Active: Yes | |||
Volume ### Ltr Label Fs Type Size Status Info | |||
---------- --- ----------- ----- ---------- ------- --------- -------- | |||
* Volume 3 C IBM_PRELOAD NTFS Partition 33 GB Healthy System | |||
detail volume | |||
Disk ### Status Size Free Dyn Gpt | |||
-------- ---------- ------- ------- --- --- | |||
* Disk 0 Online 37 GB 0 B | |||
'''Kommentaar:''' | '''Kommentaar:''' | ||
===Extend=== | ===Extend=== |
Revision as of 22:36, 31 May 2010
Sissejuhatus
Diskpart on käsurea programm, mis on mõeldud kõvaketastega seotud objektidega( kettad, partitsioonid, volüümid) toimetamiseks. Käsklusi on võimalik edastada käsurea kaudu või skriptideks kirjutatud kujul. Viimane teeb diskpart programmi eriti väärtuslikuks, sest see võimaldab automatiseerida kõvaketastega tehtavaid operatsioone ja saab kasutada erinevate depolyment tehnikate juures.
Sisu
Loomine
Create partition extended
Süntaks:
create partition extended [size=N] [offset=N] [noerr]
Näide:
create partition extended size=200 offset=1
Kommentaar:
Create partition logical
Süntaks:
create partition logical [size=N] [offset=N] [noerr]
Näide:
create partition logical size=200 offset=1
Kommentaar:
Create partition primary
Süntaks:
create partition primary [size=N] [offset=N] [ID={Byte | GUID}] [align=N] [noerr]
Näide:
create partition primary size=200 offset=1
Kommentaar:
Create volume simple
Süntaks:
create volume simple [size=N] [disk=N] [noerr]
Näide:
create volume simple size=200 disk=0
Kommentaar:
Create volume stripe
Süntaks:
create volume stripe [size=N] disk=N,N[,N,...] [noerr]
Näide:
create volume stripe size=200 disk=0,1
Kommentaar:
Kustutamine
Delete disk
Süntaks:
delete disk [noerr] [override]
Näide:
delete disk override
Kommentaar:
Delete partition
Süntaks:
delete partition [noerr] [override]
Näide:
delete partition override
Kommentaar:
Delete volume
Süntaks:
delete volume [noerr]
Näide:
delete volume
Kommentaar:
Muud tihedamalt kasutust leidvad käsud
List Disk Partition Volume
Syntaks:
list disk
list partition
list volume
Näited:
list disk Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- Disk 0 Online 37 GB 0 B
list partition Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Primary 33 GB 32 KB Partition 2 OEM 4570 MB 33 GB
list volume Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 D DVD-ROM 0 B Volume 1 E DVD-ROM 0 B Volume 2 G DVD-ROM 0 B Volume 3 C IBM_PRELOAD NTFS Partition 33 GB Healthy System
Kommentaar:
Select Disk Partition Volume
Syntaks:
select disk=[N]
select partition=[N]
select volume=[N]
Näited: Kommentaar:
Assign
Syntaks:
assign [{letter=D | mount=Path}] [noerr]
Näide: Kommentaar:
Detail Disk Partition Volume
Syntaks:
detail disk
detail partition
detail volume
Näide:
detail disk FUJITSU MHT2040AT Disk ID: CCCDCCCD Type : IDE Bus : 0 Target : 0 LUN ID : 0
Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 3 C IBM_PRELOAD NTFS Partition 33 GB Healthy System
detail partition Partition 1 Type : 07 Hidden: No Active: Yes
Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 3 C IBM_PRELOAD NTFS Partition 33 GB Healthy System
detail volume Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- * Disk 0 Online 37 GB 0 B
Kommentaar:
Extend
Syntaks:
extend [size=N] [disk=N] [noerr]
Näide:
extend size=2000 diks=0
Remove
Syntaks:
remove [{letter=D | mount=Path | all}] [dismount] [noerr]
Näide:
remove letter=D dismount
Kommentaar: