Computing.Net > Forums > Disk Operating System > Copy a whole drive in DOS?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copy a whole drive in DOS?

Reply to Message Icon

Name: MW
Date: December 2, 2000 at 01:52:49 Pacific
Comment:

How do I copy my whole C: drive to another Hard Disk by typing one DOS command?



Sponsored Link
Ads by Google

Response Number 1
Name: ¤¤¥¤Ö
Date: December 2, 2000 at 02:33:56 Pacific
Reply:

In a few commands:
attrib -h -r -s /s
attrib +a /s
xcopy /m c:\ d:\
Using the /M switch with xcopy will allow you to continue if the operation is aborted (like due to access denied error, etc.), rather than having to start over.

When doing this, if you also want the destination drive to be bootable, you must first sys it with sys.com. And, if you want to correctly set the read-only, hidden, and system file-attributes on the destination drive, you'll have to manually do so. Therefore, you should create a directory listing of which files had those attributes set. (Can be done with commands DIR/AH/S>hidden.txt, DIR/AR/S>readonly.txt, etc.)
This works fine; I've done it many times. -¤¤¥¤Ö


0

Response Number 2
Name: ¤¤¥¤Ö
Date: December 2, 2000 at 11:52:48 Pacific
Reply:

Correction to previous message:
was:
xcopy/m c:\ d:\
should be:
xcopy/m/s c:\ d:\
where c: is the source drive and d: is the destination drive.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Copy a whole drive in DOS?

BACKING UP A WHOLE DRIVE IN DOS TO ZIP www.computing.net/answers/dos/backing-up-a-whole-drive-in-dos-to-zip/1020.html

how do you copy a:\ to C:\ in dos 6.22 www.computing.net/answers/dos/how-do-you-copy-a-to-c-in-dos-622/7709.html

Open a cdrom drive in dos www.computing.net/answers/dos/open-a-cdrom-drive-in-dos/13403.html