Tuesday, December 13, 2005

DISKCOPY C: D:

Do you remember DOS days when you can copy floppy to floppy just by doing this?

diskcopy A: A:

or

diskcopy A: B:

how you wish there is same thing for hard disk where you can just say diskcopy C: D:

well luckily there is one. use unix/linux DD

download ubuntu livecd

copy primary master to primary slave, copy 1 MB at a time:

sudo dd if=/dev/hda of=/dev/hdb bs=1048576

copy primary master to secondary master, 1 MB at a time:

sudo dd if=/dev/hda of=/dev/hdc bs=1048576

copy primary master to secondary slave:

sudo dd if=/dev/hda of=/dev/hdd bs=1048576

copy from usb drive to primary master:

sudo dd if=/dev/sda of=/dev/hda bs=1048576





to copy just only one partition:


copy partition 1 of primary master to partition 2 of primary master

sudo dd if=/dev/hda1 of=/dev/hda2

copy partition 1 of primary master to partition 2 of secondary master

sudo dd if=/dev/hda1 of=/dev/hdc2



---------------------


Guide:
Primary Master: hda
Primary Slave: hdb
Secondary Master: hdc
Secondary Slave: hdd

Usb Drive: sda
second usb drive: sdb


-----------------------


to use dd ala-Norton Ghost, format one of your partition as ext3fs (this can handle large file >2GB), FAT32 can only handle 2GB. NTFS can handle large file, problem is there is no write support for NTFS in linux

copy the whole disk primary master to single file MySystem.DAT in second partition of primary slave as a file

sudo dd if=/dev/hda of=/dev/hdb2/MySystem.DAT bs=1048576

to restore MySystem.DAT to your hard drive

sudo dd if=/dev/hdb2/MySystem.DAT of=/dev/hda bs=1048576

0 Comments:

Post a Comment

<< Home