Partition Magic / Mirroring / Image / Copying a Whole Drive?
Greetings,
Im rolling out an linux workstations, on some old p2's, with slow cd drives. I've got the master install just about complete, and wanted to know what command or util I can use to mirror the drives so I don't have to install on all 10 wkstations?? I use to use partition magic on windows boxes... just pop in a slave drive, and mirror the master to it, then put the mirrored in the pc, and off we go... Is there an easy way to copy the Whole Drive (as they are all the same) bit by bit? SuSE 9.2 Thanks |
|
The command you want is "dd". If you plug in a slave drive (hdb) and want to copy everything from the master to it (hda). Just do:
Code:
dd if=/dev/hda of=/dev/hdb If you want to change partition sizes at the same time you image the disk, there is commercial software called migrate easy: http://www.acronis.com/homecomputing...s/migrateeasy/ it is $40 US. You create a bootable CD that can be used to copy one hard drive to another and supports linux partitions as well as windows. |
Here's how I make a drive clone using partimage on system rescue cd or the knoppix cd.
1. Setup the operating systems and boot loader 2. Put a formatted partition on a second drive. Make the scripts executable with the command: chmod +x save and chmod +x restore. Copy these scripts the the second drive. For example: /dev/hdb1 3. Boot up with system rescue cd and run the command: mount /dev/hdb1 /mnt/images -t ext3 4. Run the save script with the command:./save /dev/hda 5. After you have saved the images, remove the master drive ( the one which has the operating system on it ) 6. Install a new master drive /dev/hda Note: make sure it is detected properly in the bios. 7. Run the restore script with the command:./restore /dev/hda here is the save script Code:
#!/bin/bash Here is the restore script Code:
#!/bin/bash |
YOU ALL ROCK!
THANKS A MILLION!
|
All times are GMT -5. The time now is 10:02 AM. |