|
Free Open Book
PC Hacks 100 Industrial-Strength Tips and Tools |
Hack 51 Format Your Disk
Lay down some awesome data tracks on diskettes, hard drives, Zip disks, or LS-120 cartridges with FORMAT. Logical drives and drive letters are created by the process of formatting a partition so that it is ready to accept files. Formatting is done by either the DOS FORMAT program, within the Windows 9x-2003 setup processes, or within the Disk Management console in Windows NT-2003. FORMAT provides limited options: it either creates nonbootable disk space, creates a bootable disk, or it can quick-format (erase) a diskette. For hard drives, FORMAT will lay out either NTFS, FAT-16, or FAT-32 file structures, depending on the filesystem of the partition. For 3.5" diskettes, Zip, and LS-120 media, the filesystem will always be FAT-16.
In the process, FORMAT also establishes the logical drives or drive lettering scheme we use to refer to our drives. Although the FORMAT program has more options applicable to various diskette capacities, it is also a very powerful utility when applied to hard drives. To use all of the features of the FORMAT program, you need to be at a DOS or command prompt. Then follow these steps:
You have to format every partition you want to use for the operating system or data. FORMAT establishes the FAT filesystem and directory space. FORMAT is typically not used on NTFS partitions, which are instead formatted as part of the operating system setup process or with the Disk Management console within Windows (NT, 2000, XP, and 2003 only). FORMAT provides the following command-line options: FORMAT drive: [/V[:label]] [/Q] [/F:size] [/B | /S] [/C] FORMAT drive: [/V[:label]] [/Q] [/T:tracks /N:sectors] [/B | /S] [/C] FORMAT drive: [/V[:label]] [/Q] [/1] [/4] [/B | /S] [/C] FORMAT drive: [/Q] [/1] [/4] [/8] [/B | /S] [/C] The purposes of these options are as follows:
FORMAT under Windows 2000 and XP offers some additional command-line options:
Examples of common uses of FORMAT are:
5.13.1 Logical Drive Assignments Under DOSWhile your system BIOS sees hard drives in the order they are attached to their interface cables and configured by jumpers, DOS dynamically assigns drive letters in a most unusual but quite logical order, alternating between physical/electronic order and partitions found. Drive letter assignments by default first follow physical and then logical/partition order. For systems with only one partition, it's simple: DOS assigns drive letter C: to the first partition it finds on that drive. If there are more partitions it assigns them drive letter D:, E:, and so on. For systems with two hard drives, if the first hard drive has only one partition that is assigned drive letter C:, then the first partition on the second hard drive is assigned drive letter D:, and if the second hard drive contains more partitions they are assigned drive letters E:, F:, and so on. Simple enough. For systems with two hard drives, where the first hard drive has two or more partitions, grab a pencil and paper or head to the nearest white board to map out what happens, or you can refer to Table 5-4. The first partition on the first hard drive is assigned drive letter C:—again, simple enough. The first partition on the second hard drive is assigned drive letter D:—nothing complicated so far. If you have two or more partitions on the first hard drive, they are then assigned drive letters E:, F:, and so on until you run out of partitions or letters. Now that's interesting! If the second hard drive has two or more partitions, the drive letters for the second and all subsequent partitions are assigned in order after the last letter used for the partitions on the first hard drive.
Under Windows NT/2000/XP you cannot change the drive letter of the Active boot or system partition, but you may change the drive letters for subsequent partitions within the Disk Management console [Hack #52] .
|
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |