🖥 Introduction
So far, we’ve learned how to navigate directories, work with files, and check system information. But computers run on disks — hard drives, floppy disks (in the old days), and now USBs. MS-DOS includes several commands to format, copy, compare, and manage disks.
⚠ Be careful: disk commands can erase data permanently. Always double-check before using them, especially commands like FORMAT
and FDISK
.
🔹 1. FORMAT – Format a Disk
Purpose: Prepares a disk for use by erasing all data and setting up a file system.
Syntax:
Options:
-
/S
→ Transfers system files, making the disk bootable. -
/Q
→ Quick format (erases file system info only). -
/U
→ Unconditional format (wipes data completely).
Examples:
Formats floppy disk A: and makes it bootable.
Quick formats drive D.
⚠ Warning: All files will be lost after formatting!
🔹 2. DISKCOPY – Copy an Entire Disk
Purpose: Copies the contents of one disk to another (boot sector, files, and all).
Syntax:
Example:
Copies the entire disk in drive A to drive B.
🔹 3. DISKCOMP – Compare Two Disks
Purpose: Compares the contents of two floppy disks to check if they are identical.
Syntax:
Example:
Compares the contents of disk A and disk B sector by sector.
🔹 4. LABEL – Create or Change Disk Label
Purpose: Assigns or changes the volume label (name) of a disk.
Syntax:
Examples:
Prompts you to enter a new label for C drive.
Names drive D as BACKUP.
🔹 5. FDISK – Partition a Disk
Purpose: Creates, deletes, or manages disk partitions.
Syntax:
Example:
Launches an interactive menu to create or delete partitions.
⚠ Warning: Changing partitions usually erases all data on the disk. Use with extreme caution!
🔹 6. BACKUP – Backup Files to Another Disk
Purpose: Copies files from one location to another for safekeeping.
Syntax:
Example:
Backs up all files from C:\WORK to floppy disk A.
🔹 7. RESTORE – Restore Files from Backup
Purpose: Restores files that were saved using the BACKUP
command.
Syntax:
Example:
Restores files from floppy disk A into C:\WORK.
🔹 8. SCANDISK – Scan and Repair Disk
Purpose: Checks a disk for errors and repairs them.
Syntax:
Example:
Scans drive C for errors and fixes them.
🔹 9. UNDELETE – Recover Deleted Files
Purpose: Recovers files deleted by the DEL
command (if not overwritten).
Syntax:
Example:
Tries to recover report.txt
if space hasn’t been reused.
🔹 10. UNFORMAT – Recover a Formatted Disk
Purpose: Attempts to restore a disk that was accidentally formatted.
Syntax:
Example:
Tries to recover data from formatted drive D.
🧰 Bonus Tips
-
Always run
SCANDISK
before using backup or restore on old disks. -
DISKCOPY
andDISKCOMP
are mostly historical (used for floppies). -
UNDELETE
andUNFORMAT
don’t guarantee recovery — modern recovery tools are more reliable. -
For modern Windows systems,
CHKDSK
has replaced most of these functions.
✅ Conclusion
Disk & storage commands are the most powerful DOS tools. They can create, copy, repair, and even destroy data. Used carefully, they’re essential for system maintenance and data management.
👉 Next in Part 6, we’ll dive into Configuration & Environment Commands — commands that let you customize DOS itself.
No comments:
Post a Comment