Now and again it is useful to check the integrity of the disk directory and file allocation
table (FAT). The FAT is so important to the disk that there are two copies of it on each disk.
The CHKDSK program does this for you. The basic format is:
CHKDSK d: file name.ext /f /v
Using the file name causes it to be checked for continuity (i.e., being stored on contiguous
sectors on the disk for more efficient access).
• /f tells DOS to automatically fix the FAT and other problems
• /v is a verbose mode that shows progress as disk checking is taking place
Example:
Only use the version of CHKDSK that came with your version of of DOS. Crossing versions can
cause great damage to a disk.
Backing Up a Floppy Disk
Floppy disks wear out after several hundred spin hours. Well before then you should have
made a copy of the disk to preserve the integrity of its contents. You can, of course FORMAT and
then COPY*.* to accomplish this. There is a quicker way however:
DISKCOPYd1: d2:
If you do not give drive specifications, the utility will ask for them.
All information on the target disk will be destroyed, and DISK COPY will format the target
if it is found blank. Be careful, it's easy to destroy data by putting the disks in backwards!
Problem : Copy disk A: to B:. Issue the proper command.
Answer: C:\>DISKCOPY A: B:
Erasing Files
Files you no longer need should be deleted from your disk to make room for more current
files. Use the ERASE (DEL etc) command for this:
ERASE d:FILE NAME.ext
or
DEL d:FILE NAME.ext
Be careful, typographic errors in this command can bring disaster!
You are allowed to delete all files on a disk with the wildcard * (ERASE *.*), but DOS will
question you.
Recovery BEFORE writing anything else to disk is possible. An UN DELETE utility started
shipping with DOS 5.0. Before that commercial utilities were available.
Renaming Files
For whatever reason, you may need to change the name of a file on your disk. (Usually this
is the case when you want to change a backup file to another name in order to return it to active
status.)
Use this format:
REN d:OLD NAME.ext NEW NAME.ext
Wildcards are allowed, but can cause trouble if you are not careful.
The rename command will give you an error message if NEW NAME exists.
table (FAT). The FAT is so important to the disk that there are two copies of it on each disk.
The CHKDSK program does this for you. The basic format is:
CHKDSK d: file name.ext /f /v
Using the file name causes it to be checked for continuity (i.e., being stored on contiguous
sectors on the disk for more efficient access).
• /f tells DOS to automatically fix the FAT and other problems
• /v is a verbose mode that shows progress as disk checking is taking place
Example:
Only use the version of CHKDSK that came with your version of of DOS. Crossing versions can
cause great damage to a disk.
Backing Up a Floppy Disk
Floppy disks wear out after several hundred spin hours. Well before then you should have
made a copy of the disk to preserve the integrity of its contents. You can, of course FORMAT and
then COPY*.* to accomplish this. There is a quicker way however:
DISKCOPYd1: d2:
If you do not give drive specifications, the utility will ask for them.
All information on the target disk will be destroyed, and DISK COPY will format the target
if it is found blank. Be careful, it's easy to destroy data by putting the disks in backwards!
Problem : Copy disk A: to B:. Issue the proper command.
Answer: C:\>DISKCOPY A: B:
Erasing Files
Files you no longer need should be deleted from your disk to make room for more current
files. Use the ERASE (DEL etc) command for this:
ERASE d:FILE NAME.ext
or
DEL d:FILE NAME.ext
Be careful, typographic errors in this command can bring disaster!
You are allowed to delete all files on a disk with the wildcard * (ERASE *.*), but DOS will
question you.
Recovery BEFORE writing anything else to disk is possible. An UN DELETE utility started
shipping with DOS 5.0. Before that commercial utilities were available.
Renaming Files
For whatever reason, you may need to change the name of a file on your disk. (Usually this
is the case when you want to change a backup file to another name in order to return it to active
status.)
Use this format:
REN d:OLD NAME.ext NEW NAME.ext
Wildcards are allowed, but can cause trouble if you are not careful.
The rename command will give you an error message if NEW NAME exists.
No comments:
Post a Comment