Tutorials to .com

Tutorials to .com » Os » Solaris » Solaris dd command Copy hard drive

Solaris dd command Copy hard drive

Print View , by: iSee ,Total views: 51 ,Word Count: 334 ,Date: Wed, 27 May 2009 Time: 2:10 AM

1) to ensure that the purpose of the original disk and the same disk geometry

2) to become super-user

3) with the main system disk, type touch / reconfigure, there is need to master the system / reconfigure file in order to restart the copy disk found

4) Enter the init 0 to shut down the system

5) copy the disk to connect to the system and boot

6) In OK prompt, enter boot

7) enter dd if = / dev / dsk / device-name of = / dev / dsk / device-name bs = blocksize (the input file if the master device, the input file of the copied disk equipment)

8) Enter the fsck / dev / rdsk / device-name (testing the new file system)

9) Enter the mount / dev / rdsk / device-name / mnt Copy to load the root file system disk.

10) copy the disk on the edit / etc / vfstab file, point to the correct device name.

11) enter umount / mnt, copy the disk to uninstall the root file system.

12) enter init 0 to shut down the system.

13) enter the boot diskN-s to single-user mode boot disk to copy.

14) to resume the importation of sys-uconfig copy disk configuration, disk configuration in the system is shut down after the resumption.

15) enter the boot diskN disk copy guide

16) system to provide relevant information. (HOSTNAME TIMEZONE IP ...)

17) systems, that is, as a super-user login system to verify the information.

For example:

# dd if = / dev/dsk/c0t0d0s2 of = / dev/dsk/c0t1d0s2 bs = 100k

# fsck / dev/rdsk/c0t1d0s2

# mount / dev/rdsk/c0t1d0s2 / mnt

# cd / mnt / etc

# vi / etc / vfstab

# cd /; umount / mnt

# init 0

OK boot disk2-s

# sys-unconfig

OK boot disk2-s


Solaris Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.