تیم نرم افزاری پایگاه سایبری استان خوزستان

محلی عمومی برای انتقال دانش برنامه نویسی

تیم نرم افزاری پایگاه سایبری استان خوزستان

محلی عمومی برای انتقال دانش برنامه نویسی

تیم نرم افزاری پایگاه سایبری استان خوزستان کانال رسمی تلگرام پایگاه سایبری استان خوزستان

جهت بیان هرگونه سوال و یا دیدگاه می توانید از کاربری تلگرام زیر استفاده نمایید
Telegram: @saiber89

آپ پیسی نام گروه نرم افزاری ماست که قصد داریم در خدمت جامعه خود با رویکرد انتقال دانش برنامه نویسی و رفع مشکلات شما در ضمینه های برنامه نویسی باشیم ./

آخرین نظرات
نویسندگان

Windows Diskpart Command Tutorial with Examples To Format Disk

چهارشنبه, ۱۱ مهر ۱۳۹۷، ۰۴:۲۲ ب.ظ | افسر سایبری | ۰ نظر
diskpart is a Windows utility to create partitions on disk. It is similar to the Linux fdisk utility. diskpart provides interactive command shell where we will enter related commands to partition, format disk and volumes. In order to run diskpart we need Administrator privileges. Best way to get Administrator privilege is opening MS-DOS as Administrator by right clicking on it.
Interactive Mode

diskpart is mainly used by its interactive shell. So we should enter this shell with the diskpart command. All commands issued bellow are used in interactive diskpart shell.
> diskpart
1
   
> diskpart
Interactive Mode
Interactive Mode
Help

There are a lot of command supported by diskpart . We can list these commands with help
> help
1
   
> help
Help
Help
List Disk and Partitions

First we need to know how many disk there are. We will use list disk command for this. We will also get following information about disks.

    Status
    Size
    Free
    Gpt

> list disk
1
   
> list disk
List Disk and Partitions
List Disk and Partitions
Select Disk

Now we will select second disk which is numbered as 1. Because disk numbers start from 0 . We will use select disk 1 . In order to execute format commands we should select a disk.
> select disk 1
1
   
> select disk 1
Select Disk
Select Disk
Clean Drive

If there is an already set configuration we should clear them to make things simple.  We will use clean command.
> clean
1
   
> clean
Clean Drive
Clean Drive
Check Disk Selection

In order to execute commands to format disk we should select the disk and partition. We have already selected disk but we can check this selection with list disk command too. Selected disk will have asterisk before its name.
LEARN MORE  Linux fdisk Tutorial With Examples
> list disk
1
   
> list disk
Check Disk Selection
Check Disk Selection
Create Partition

We will create a partition on selected disk. We will issue create partition primary . There are primary and secondary partition type. IF we have less than 5 partition in a disk we can use primary for all of them.
> create partition primary
1
   
> create partition primary
Create Partition
Create Partition
List Partition

Now we can list partition we have already created. We will use list partition command for this. Also following information about partition will be listed

    Partition name
    Partition Type
    Szie
    Offset

> list partition
1
   
> list partition
List Partition
List Partition
Select Partition

In order to operate on the given partition we should select the partition with the select partition command. This will select selected disks given partition according to number.
> select partition 1
1
   
> select partition 1
Select Partition
Select Partition
Activate Partition

In order to use partition we will activate it. We will use active command.
> active
1
   
> active
Activate Partition
Activate Partition
Format Partition

This is the one of the most important part. We will format the selected and activated partition. We Will use format command. Also we will specify the file system type with FS option. label option is used to set the name of partition which is shown to user. quick specifies the format operation speed. In this example we set file system type NTFS and label D
> format FS=NTFS label=D quick
1
   
> format FS=NTFS label=D quick
Format Partition
Format Partition
Assign Letter

In order to use the partition we should assign a letter to the formatted partition. We will use assign command with letter option. In this example we assign letter E to the partition.
LEARN MORE  hdparm Command Tutorial with Examples For Linux
> assign letter=E
1
   
> assign letter=E
Assign Letter
Assign Letter

We can see from screenshot that we have tried to assign D previously which is already assigned. This produced error and operation is not completed.
Exit

We can exit from the diskpart interactive shell with exit command like below.
> exit
1
   
> exit
پاسخگویی رایگان به سوالات کاربران

انتشار در واتساپ

*****

انتشار در تلگرام



  • افسر سایبری

نظرات  (۰)

هیچ نظری هنوز ثبت نشده است

ارسال نظر

کاربران بیان میتوانند بدون نیاز به تأیید، نظرات خود را ارسال کنند.
اگر قبلا در بیان ثبت نام کرده اید لطفا ابتدا وارد شوید، در غیر این صورت می توانید ثبت نام کنید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی