> Please tell me how I can make a perfect copy of an Unix hard disk ?
cp /dev/hda /dev/hdb
would do it.
--
Lew Pitcher | If everyone has an angle, why
JOAT-in-training | are most of them so obtuse?
> > Please tell me how I can make a perfect copy of an Unix hard disk ?
> Assuming your original hd is /dev/hda and the backup is to go to
> /dev/hdb, something like...
> cp /dev/hda /dev/hdb
--
-- Stop the attacks on Serbia NOW! --
> > > Please tell me how I can make a perfect copy of an Unix hard disk ?
> > Assuming your original hd is /dev/hda and the backup is to go to
> > /dev/hdb, something like...
> > cp /dev/hda /dev/hdb
> Seems to me one would want to create a disk image using the "dd"
> command.
The trick is to specify the disks useing (a) the raw device and (b) use
slice "2" (the backup slice) because it spans the entire disk.
Thus with two identical drives, all data can be copied from one to the
other with:
dd if=/dev/rdsk/c0t0d0s2 of=/dev/dsk/c0t8d0s2
Substitute "c0t0d0" or "c0t8d0" in my examples for the correct
controller, target, and disks on your system, but make sure to use
"s2" (slice 2) - also be sure to use "rdsk" not "dsk".
Note that on large disks, this can take a while (I seem to recall it
took the better part of an hour to do a 4.2 GB drive -- of course I
didn't experiment with larger block sizes).
Add a decent blocksize to speed things along (bs=2048k, etc.) just
check the "man" page for dd to get all the options.
Regards
Tim
--
---------------------------------------------------
"Very funny Scotty... now beam down my clothes"
---------------------------------------------------
tcampb01.vcf < 1K Download |
Please tell me how I can make a perfect copy of an Unix hard disk ?
3. Force file write delay / Share datafile in a never_swap_out disk / unix RAM disk
4. HP mouse and keyboard combo
5. how do I store disk images of unix disk on w95 cdrom
6. Installing Solaris 2.3 on a new Fujitsu M2694 disk
7. disk to disk copy for Unix System V
8. Problem With Netscape 4.05/Java
9. new Unix user: How do I transfer file from MSDOS diskette onto Unix pc hard disk?
10. EXCHANGING OPTICAL DISKS : DOS to UNIX / UNIX to DOS
11. Konica 7020 copier under Linux ?
13. Copier Program (leave the worrying to me)