Sunday, November 30, 2008

How to Partition and Format Hard drive

What is FDISK ?

FDISK (FDISK stands for "fixed disk") is a free DOS and Windows utility that can create and destroy partitions. Although FDISK does not come on the standard boot disk that comes with Windows 98, you can create a win 98 boot disk by going into the Control Panel, choosing Add/Remove programs, and selecting to create a boot disk. This boot disk will include "fdisk.exe". If you decide to use FDISK, you should learn more about how to use this utility. Before you use FDISK, make sure you've backed up your data. Resizing or deleting a partition from FDISK makes your computer forget where anything on your hard drive is, rendering any data unrecoverable.

Use FDISK

To run FDISK, jump to DOS or boot your computer with the bootable disk in the floppy or CD-ROM drive and type "fdisk" at the command line prompt a letter(usually A:). The first FDISK screen gives you the following menu options:
1. Create Dos Partition or Logical Drive
2. Set Active Partition
3. Delete Partitions or Logical DOS Drives
4. Display Partition Information
5. Change current fixed drive. (In case you have two or more HDDs)
Partition information

You need to know the following facts when partitioning your drive.
1. Primary partitions are the only ones that are bootable. They're always the C: drive when active. Normally you can only have one.
2. Extended partitions are needed when you want more than one partition. You can only have one Extended partition.
3. Logical Drives come into the Extended partition. They are handy since you know that you can only have one Primary and one Extended so you can get more than only two partitions. They would be your D:, E:, etc. drives.

Hard Drive Partitioning and Formatting Procedure

This procedure describes how to set up a new, empty hard disk so that it is ready for an operating system to be installed on it. This process includes partitioning and formatting and results in a bootable hard disk. The procedure covers configuring the hard disk as a single large partition or splitting it into multiple, smaller partitions.


Procedure Steps:
1. Plan Partitions: Decide how you want to partition your hard disk. In particular, for large hard disks, decide if you want to set up your hard disk with a single large FAT32 partition, or several smaller FAT16 partitions. (You can of course mix these). I provide instructions for doing either of these, but cannot tell you how to set up your system. You must decide based on what makes sense for you. Most people today prefer to set up a new system using a single FAT32 partition.
2. Run FDISK.EXE: From the command prompt, enter the command "fdisk". If you have a disk large enough to guarantee the use of FAT32, you will be asked if you want to enable "large disk support". Enter "Y” if you want to enable FAT32 or “N” if you do not want to enable FAT32. If you do enable this, any partitions over 500 MB that you create will be FAT32. Note that if you do not enable FAT32, you will not be able to put your entire hard disk into one partition if it is greater than 2 GB in size.


If you decided to place your entire hard disk into a single partition, then follow this step:

3. Partition Hard Disk (Single Partition): Follow these steps to set up your hard disk:
A. Select from the FDISK menu "1. Create DOS partition or Logical DOS Drive".
B. Select "1. Create Primary DOS Partition". FDISK will verify drive integrity. Then it will ask if you want to use the maximum available size of the disk for the primary partition and set it active. Enter "Y". The system will allocate the whole disk to the partition, and that's that.
C. Select menu "2. To Set Active Partition. Select partition "1. FDISK will report that it has set partition 1 active.
D. Press {Esc} to exit FDISK.


If instead you want to set up your hard disk with multiple partitions, follow this step. In order to make the process easier to follow. In my example, a 4000 MB hard disk is being partitioned into four partitions of 1500 MB, 1000 MB, 800 MB and 700 MB respectively:


4. Partition Hard Disk (Multiple Partitions): Follow these steps to set up your hard disk:
A. Select from the FDISK menu "1. Create DOS partition or Logical DOS Drive".
B. Select "1. Create Primary DOS Partition". FDISK will verify drive integrity. Then it will ask if you want to use the maximum available size of the disk for the primary partition and set it active. Enter "N". The system will show the size of the entire disk in MB.
C. Enter the size of the primary partition. In our example, this would mean entering "1500". The system will tell you that it has created the primary partition, and will assign it the drive letter "C:".
D. Press {Esc} to return to the FDISK menu.
Select "2. Set active partition". Select partition 1. FDISK will report that it has set partition 1 active.
E. Press {Esc} to return to the FDISK menu.
F. Select from the FDISK menu "1. Create DOS partition or Logical DOS Drive".
G. Select "2. Create Extended DOS Partition".
H. When prompted, press {Enter} to select the entire remaining area of the disk for the extended DOS partition. FDISK will report that it has created the extended DOS partition.
I. Press {Esc}. FDISK will automatically prompt you to create your first logical DOS volume within the extended DOS partition.
J. Enter the size of the first logical partition (the second partition overall). In our example you would enter "1000". FDISK will create the partition, label it "D:", and then say "Logical DOS Drive created, drive letters changed or added". Don't touch anything, just wait, and FDISK will prompt you for the next volume.
K. Repeat the previous step for the remaining partitions (in our example there would be two more partitions to create, the 800 MB and 700 MB ones). When all of the partitions have been created, FDISK will report "All available space in the Extended DOS Partition is assigned to logical drives".
L. Press {Esc} to exit FDISK.


Continue with the procedure:
5. Reboot: Reboot the system using either the Reset button or the ({Ctrl}+{Alt}+{Delete}). Make sure the floppy disk or a bootable disc is in its drive, since you still need it. Note that you may get "Invalid media type reading drive C" errors while rebooting. This is normal at this stage.
6. Format Primary Partition: From the "A:" DOS prompt, issue the following command: "format c:/s/c". Do not forget the "/s", as this is what will make your C: drive bootable. You will get a "scary" warning message such as "WARNING, ALL DATA ON NON-REMOVABLE DISK DRIVE C: WILL BE LOST. Proceed with Format (Y/N)?". Since of course there is no data presently on drive C:, just enter "Y" and the system will format the hard disk. The program will show you its progress as it formats and at the end will prompt you for a volume label. Enter one if you wish.
7. Format Additional Partitions (if necessary): If you set up multiple partitions, format the additional partitions now. This is done in almost the same way as formatting the primary DOS partition, except that you leave off the "/s". So normally you would be entering "format d:", "format e:" and so on, until all the partitions have been formatted. The prompts should be the same as in the preceding step.


Warning: If you have a second hard disk in the system and it has a primary DOS partition, that partition is probably assigned D: because DOS assigns letters to all primary partitions before any logical partitions. Be careful of what you format.

8. Remove Boot Floppy or CD: Eject the boot floppy or Cd. Reboot the system using either the Reset button or {Ctrl}+{Alt}+{Delete}. The system should boot up from the hard disk this time and you’re done. Hopefully you get something in the procedures that I’ve gave you. And lastly, if you don’t really sure what you’re doing, consult a computer technician.