9 Legend

 • 

15.3K Posts

33

December 28th, 2025 22:10

Low level copy IDE hdd to sata HDD

User posted guide to run dd in Linux.

https://www.willhaley.com/blog/clone-windows-xp-from-an-ide-to-sata-drive/

Is there a way to run a similar script in DOS mode to do low level disk copy from IDE to sata?

this would help a lot of old XP hdd running legacy software to refresh on sata ssd.

9 Legend

 • 

15.3K Posts

December 28th, 2025 22:27

I think I found it:

Norton Ghost for DOS was a powerful disk imaging tool, booting from floppy/CD/USB to create exact copies (images) or clone drives, essential for backups and hardware upgrades before modern Windows versions became standard, relying on bootable media with drivers to run, often using command-line or simple menus for tasks like disk-to-image (backup) or disk-to-disk (clone) for older systems (Win 9x/XP era). While powerful, it required specific boot environments, and modern PCs struggle with its legacy tech, but users still create bootable USBs with older versions (like 11.5) for retro or specific hardware tasks

9 Legend

 • 

15.3K Posts

December 28th, 2025 22:14

I would like to find a DOS script.  I know there are third party Windows tool software to copy but it would be nice to run your own small yet powerful script (copy someone’s script) to do the job.

9 Legend

 • 

15.3K Posts

December 28th, 2025 22:15

In MS-DOS, the built-in command for a block-level (low-level) copy of an entire disk, particularly a floppy disk, is

DISKCOPY. For modern hard drives or more advanced low-level cloning, third-party utilities or other operating systems (like Linux's dd command) are typically required, as DOS itself does not have a simple low-level command for hard disk cloning

(edited)

9 Legend

 • 

15.3K Posts

December 28th, 2025 22:17

Using DISKCOPY in a DOS Script 
The DISKCOPY command makes an exact, sector-by-sector copy of the source disk to the destination disk, including any fragmentation and system files. This is different from COPY or XCOPY, which operate at the file system level. 
A simple batch script to use DISKCOPY would look like this:
dos
@echo off
REM --- Low-level disk copy script using DISKCOPY ---

REM --- Check if the source and destination drives are specified ---
IF "%1"=="" GOTO usage
IF "%2"=="" GOTO usage

echo Inserting source disk in drive %1...
pause

REM --- Perform the disk copy ---
DISKCOPY %1 %2
REM --- Example: DISKCOPY A: B: or DISKCOPY A: A: (prompts for disk swap) ---

REM --- Check the error level after the operation (optional) ---
IF ERRORLEVEL 1 echo An error occurred during DISKCOPY.
IF ERRORLEVEL 0 echo Disk copy completed successfully.

GOTO end

:usage
echo Usage: DISKCPY [SourceDrive] [DestinationDrive]
echo Example: DISKCPY A: B:
echo Example: DISKCPY A: A: (for single drive copying)

:end
To use this script:
  1. Save the code above as a batch file (e.g., DISKCPY.BAT).
  2. Run it from the DOS command line, specifying the source and destination drives.
    • For a single floppy drive system, use DISKCPY A: A: and follow the prompts to swap disks.
    • For a two-floppy drive system, use DISKCPY A: B:
Considerations for Hard Drives
  • DISKCOPY Limitations: The DISKCOPY command is designed primarily for floppy disks and may not function correctly or be suitable for modern hard drives.
  • No "Low-Level" Hard Drive Script: MS-DOS file system APIs do not offer a built-in, scriptable command for true block-level cloning of a hard drive in the same manner as utilities like dd in Linux. Third-party commercial software (often run from a bootable floppy or CD) was used for this purpose.

(edited)

9 Legend

 • 

15.3K Posts

December 29th, 2025 02:03


  1. You need the Norton Ghost software (usually an ISO or extracted files like ghost.exe, ghost32.exe) and a USB creation tool like Rufus.
  2. Format USB with Rufus:
    • Open Rufus and select your USB drive.
    • Choose MS-DOS or FreeDOS for a basic boot, or select your Ghost ISO if it's prepared for WinPE.
    • Set file system to FAT32 (for DOS) or NTFS (for WinPE) and click Start.
  3. Copy Ghost Files:
    • If using MS-DOS, copy the ghost.exe or ghost32.exe (if compatible) into the root of the formatted USB drive.
    • If using a WinPE ISO, Rufus usually handles extracting the ISO content to the USB.
  4. Boot from USB:
    • Plug the USB into the target PC and restart.
    • Enter the BIOS/UEFI and change the boot order to start from the USB drive.
  5. Run Ghost: Once booted into the DOS or WinPE environment, you can launch ghost.exe (or ghost32.exe) to perform backups/restores. 

  • DOS vs. WinPE: DOS-based Ghost (ghost.exe) is older but runs on minimal systems; Windows PE (WinPE) offers more modern drivers and features but requires more space and a proper ISO.

(edited)

No Events found!

Top