DISKPART: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
'''Süntaks:''' | '''Süntaks:''' | ||
create partition extended [size=N] [offset=N] [noerr] | create partition extended [size=N] [offset=N] [noerr] | ||
'''Näide:''' | |||
===Create partition logical=== | ===Create partition logical=== | ||
'''Süntaks:''' | '''Süntaks:''' | ||
create partition logical [size=N] [offset=N] [noerr] | create partition logical [size=N] [offset=N] [noerr] | ||
'''Näide:''' | |||
===Create partition primary=== | ===Create partition primary=== | ||
'''Süntaks:''' | '''Süntaks:''' | ||
create partition primary [size=N] [offset=N] [ID={Byte | GUID}] [align=N] [noerr] | create partition primary [size=N] [offset=N] [ID={Byte | GUID}] [align=N] [noerr] | ||
'''Näide:''' | |||
===Create volume simple === | ===Create volume simple === | ||
'''Süntaks:''' | '''Süntaks:''' | ||
create volume simple [size=N] [disk=N] [noerr] | create volume simple [size=N] [disk=N] [noerr] | ||
'''Näide:''' | |||
===Create volume stripe === | ===Create volume stripe === | ||
'''Süntaks:''' | '''Süntaks:''' | ||
create volume stripe [size=N] disk=N,N[,N,...] [noerr] | create volume stripe [size=N] disk=N,N[,N,...] [noerr] | ||
'''Näide:''' | |||
==Kustutamine== | ==Kustutamine== | ||
Line 37: | Line 37: | ||
'''Süntaks:''' | '''Süntaks:''' | ||
delete disk [noerr] [override] | delete disk [noerr] [override] | ||
'''Näide:''' | |||
===Delete partition === | ===Delete partition === | ||
'''Süntaks:''' | '''Süntaks:''' | ||
delete partition [noerr] [override] | delete partition [noerr] [override] | ||
'''Näide:''' | |||
===Delete volume === | ===Delete volume === | ||
'''Süntaks:''' | '''Süntaks:''' | ||
delete volume [noerr] | delete volume [noerr] | ||
'''Näide:''' | |||
==Muud tihedamalt kasutust leidvad käsud== | ==Muud tihedamalt kasutust leidvad käsud== | ||
===List Disk Partition Volume=== | ===List Disk Partition Volume=== | ||
Line 54: | Line 54: | ||
list volume | list volume | ||
'''Näited:''' | |||
===Select Disk Partition Volume=== | ===Select Disk Partition Volume=== | ||
'''Syntaks:''' | '''Syntaks:''' | ||
Line 62: | Line 62: | ||
select volume=[N] | select volume=[N] | ||
'''Näited:''' | |||
===Assign=== | ===Assign=== | ||
'''Syntaks:''' | '''Syntaks:''' | ||
assign [{letter=D | mount=Path}] [noerr] | assign [{letter=D | mount=Path}] [noerr] | ||
'''Näide:''' | |||
===Detail Disk Partition Volume=== | ===Detail Disk Partition Volume=== | ||
'''Syntaks:''' | '''Syntaks:''' | ||
Line 74: | Line 74: | ||
detail volume | detail volume | ||
'''Näide:''' | |||
===Extend=== | ===Extend=== | ||
'''Syntaks:''' | '''Syntaks:''' | ||
extend [size=N] [disk=N] [noerr] | extend [size=N] [disk=N] [noerr] | ||
'''Näide:''' | |||
===Remove=== | ===Remove=== | ||
'''Syntaks:''' | '''Syntaks:''' | ||
remove [{letter=D | mount=Path | all}] [dismount] [noerr] | remove [{letter=D | mount=Path | all}] [dismount] [noerr] | ||
'''Näide:''' | |||
==Scriptimine== | ==Scriptimine== | ||
=Kokkuvõte= | =Kokkuvõte= |
Revision as of 20:24, 31 May 2010
Sissejuhatus
Diskpart on käsurea programm, mis on mõeldud kõvakettastega 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 logical
Süntaks:
create partition logical [size=N] [offset=N] [noerr]
Näide:
Create partition primary
Süntaks:
create partition primary [size=N] [offset=N] [ID={Byte | GUID}] [align=N] [noerr]
Näide:
Create volume simple
Süntaks:
create volume simple [size=N] [disk=N] [noerr]
Näide:
Create volume stripe
Süntaks:
create volume stripe [size=N] disk=N,N[,N,...] [noerr]
Näide:
Kustutamine
Delete disk
Süntaks:
delete disk [noerr] [override]
Näide:
Delete partition
Süntaks:
delete partition [noerr] [override]
Näide:
Delete volume
Süntaks:
delete volume [noerr]
Näide:
Muud tihedamalt kasutust leidvad käsud
List Disk Partition Volume
Syntaks:
list disk
list partition
list volume
Näited:
Select Disk Partition Volume
Syntaks:
select disk=[N]
select partition=[N]
select volume=[N]
Näited:
Assign
Syntaks:
assign [{letter=D | mount=Path}] [noerr]
Näide:
Detail Disk Partition Volume
Syntaks:
detail disk
detail partition
detail volume
Näide:
Extend
Syntaks:
extend [size=N] [disk=N] [noerr]
Näide:
Remove
Syntaks:
remove [{letter=D | mount=Path | all}] [dismount] [noerr]
Näide: