Skip to main content

How to Format a Hard Drive - wikiHow

Format a Hard Drive - wikiHow

How to Format a Hard Drive


from wikiHow - The How to Manual That You Can Edit

This article includes the basics for high-level formatting a hard drive.

Steps



For Windows XP
  1. If you want to save any of the data on the disk, back it up by copying it to a CD or another hard drive. Formatting will destroy ALL of the data on the disk.
  2. Use the Windows XP CD-ROM to boot the computer.
  3. Select the "Recovery Console" option.
  4. At the prompt, type FORMAT C:


For Windows 9x (95, 98, Me)
  1. If you want to save any of the data on the disk, back it up by copying it to a CD or another hard drive. Formatting will destroy ALL of the data on the disk.
  2. Use a startup floppy (sometimes called a "boot disk") to obtain a DOS prompt.
  3. Type FORMAT C:


For Linux or BSD
  1. Boot from a livecd or diskette
  2. Open a terminal window (usually something like xterm or konsole)
  3. Log in as root by typing su and entering the password
  4. Type mkfs.ext2 /dev/hdaxx where you change the ext2 by the filetype you want (e.g. ext2, ext3, reiserfs,...) and the axx by the letter of your drive and the number of the partition you want to format. (e.g. /dev/hda1, /dev/hdc32,...). Using the -j option (mke2fs -j) will create the ext3 (or journaled) file system that is much more resistant to the unexpected power loss.
  5. Under Linux, you can also format the hard drive in FAT file system that is readable from Windows (use mkfs.vfat instead of mkfs.ext2). However such partition cannot store the root of the Linux operating system.


Tips


  • Partition(s) must be created on a drive before it is formatted.
  • Give the process some time to complete. Install your operating system of choice, or use the blank disk for another purpose.
  • For more secure formatting, there are programs available which write zeros or garbage characters over the entire disk, making the deleted information unrecoverable.
  • C: and /dev/hda are your primary partitions. If you are trying to format another partition or drive, replace C: or hda with the appropriate drive letter, such as D: or /dev/hdb, for example.


Warnings


  • Make sure that you format the correct drive, and that you have backed up any data you don't want to lose.
  • Hard drives can have multiple partitions, so be sure to check which drive and which partition you're formatting. For example, a C: and D: partition may exist on one drive. It isn't unusual to have them exist out of sequence due to Microsoft's FAT and NTFS partitioning scheme. For example, C: and E: may be partitions on the first drive, and D: may be a partition on the second drive. If in doubt, you a partition tool such as Gparted or Fdisk to determine which partition is on which drive.


Related wikiHows




Sources and Citations





Article provided by wikiHow, a collaborative writing project to build the world's largest, highest quality how-to manual. Please edit this article and find author credits at the original wikiHow article on How to Format a Hard Drive. All content on wikiHow can be shared under a Creative Commons license.

Comments

Popular posts from this blog

Dotnet, .Net 3.5, 2.0, C# Interview Questions

Few questions on dotnet, C# 2.0, 3.5 On Object oriented concepts 1)What is inheritance with e.g 2)What is polymorphism -function overloading -Function overriding -virtual keyword use -Static keyword and use -Abstract classes -Interface -Object 3)What is threading and how do we use in realtime application(cognizant) 4)What is threadpooling, lock, monitor(write code sample) 5)Architecture of current project 6)Session state, diffrent types of state management. 7)What is Application_Start, how it works. 8)Type of authentication in asp.net 9)How to configure ASP.NET application. 10) What is Impersonation. 11) What is WebService, WSDL, UDDI, Discovery, asmx files. 12) How to implement WebService and use it. 13) When to use WebServices. 14) WPF, how to implement(BOA) 15) Testing concvepts. 16) Test attributes 17) Flow of Automation Test Method execution 18) Features of dotnet 3.5 19) CLR, garbage collection 20) Finally block 21) Manifest, Metadata, MSIL 22) Assemblies, Type of assemblies, str...

Linux SMB write performance With Simple Tips

SMB write performance can be increased by Tuning the buffer cache. The secret to good performance is to keep as much of the data in memory for as long as is possible. Writing to the disk is the slowest part of any filesystem. If you know that the filesystem will be heavily used, then you can tune this process for Linux Samba. writing out dirty blocks to the disk until the filesystem buffer cache is 80 percent full (80). default is 40%, source = http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec287.html by writing echo 80 > /proc/sys/vm/dirty_ratio I am getting around 2MB increase while write operation, tested in Xp. I have tried with this single option, as the ref source is for linux 2.2 and we are using 2.6 kernel. we can try out Linux General Optimization suggested at http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/gen-optim.html Tried with smb.conf, I am getting around 1MB gain while read and write. socket options = TCP_NODELAY I...

The Linux Foundation Free Training Program at linuxfoundation

The Linux Foundation Training Program is: * For the Community, by the Community. The Linux Foundation is building the program with its Technical Advisory Board to ensure the content, instructors and classes are the top quality available. * Technically the most advanced. Since the Linux Foundation works directly with community developers, it can cover features and advances in Linux before commercial companies. * Connected. The Linux Foundation has unfettered access to the leading developers and companies in the Linux ecosystem and will use these connections to best position attendees for success. For example, attendees can attend the exclusive, invite-only Collaboration Summit where they can forge connections beneficial to their career. * Real World. The Linux Foundation training courses all have hands on components and a highly rigorous curriculum of programming or administration exercises. Graduates will be well equipped to master Linux programming and system administr...