红联Linux门户
Linux帮助

UNIX下用DD做磁盘完整拷贝

发布时间:2006-10-29 21:51:40来源:红联作者:novemberfa
  UNIX系统下一般用DD做整盘拷贝,通常是为了做系统盘的备份,条件是要求源盘和目的盘必须同型号和大小,尤其是容量必须一致。现在以SOLARIS系统为例,简述一下操作方法。
  软、硬件环境:SUN 450,操作系统为SOLARIS7。
  准备工作:在确定切断电源的情况下,将要复制的目的盘安装到机器上,要保证和要复制的源盘的一致性。
  实现过程:用CD ROM启动系统后,确保源盘上无数据交换发生。查看系统中的硬盘设备:
引用:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 %26lt;SUN9.0G cyl 4924 alt 2 hd 27 sec 133%26gt;;
/pci@1f,4000/scsi@3/sd@0,0
1. c0t2d0 %26lt;SUN18G cyl 7506 alt 2 hd 19 sec 248%26gt;;
/pci@1f,4000/scsi@3/sd@2,0
2. c0t3d0 %26lt;SUN18G cyl 7506 alt 2 hd 19 sec 248%26gt;;
/pci@1f,4000/scsi@3/sd@3,0

  可以看到三个盘中,有两个是18G的,并且格式一致,假定源盘为c0t2d0,目的盘c0t3d0,,将前者完全复制到后者的命令如下:
引用:
#dd if=/dev/dsk/c0t2d0s2 of=/dev/rdsk/c0t3d0s2

  一定要确定好哪是源盘,哪个是目的盘,否则就会造成严重后果。
  if后边是源盘设备,of后边是目的盘,设备串最后的2代表整盘拷贝。几个小时左右,拷贝工作结束,系统回到#状态,出现拷贝完成的信息:
引用:
35368272+0 records in
35368272+0 records out

  (如果要复制的盘为36G,那么用的时间就是上述操作的2倍,所以DD拷贝效率是很低的,但最可靠,尤其是将隐型文件全部复制,一般的拷贝命令做不到这一点)。
  然后停机:
引用:
#halt

  关电后,将备份盘取出,替换源盘,重新启动系统,测试备份是否成功。
  有时出现重新检查磁盘块的提示,出现块错误检查并修复完成的信息,这是正常的,不影响系统运行。若再启动系统时,就不会提示上述信息。
文章评论

共有 1980 条评论

  1. 0.0.0.* 于 2007-06-26 00:09:46发表:

    Quite free poker download

  2. 0.0.0.* 于 2007-06-25 13:04:25发表:

    Most free texas holdem poker game

  3. 203.82.67.* 于 2007-06-25 10:27:27发表:

    Often no limit texas holdem

  4. 0.0.0.* 于 2007-06-25 10:10:07发表:

    Exception pacific poker download

  5. 0.0.0.* 于 2007-06-25 10:08:58发表:

    http://www.freewebs.com/casino-89/casino-5.html online casino casino poker cheap payday loan http://paceware.net/_disc1/00002faa.htm cheap payday loan instant faxless payday loan instant faxless payday loan http://www.homeroom.net/_board/00000742.htm seven card stud http://www.freewebs.com/casino-68/card-stud-1.html seven card stud payday loan personal payday loan personal http://www.blbweb.co.za/2010/_disc1/00000522.htm

  6. 217.219.165.* 于 2007-06-25 10:08:08发表:

    http://www.freewebs.com/casino-89/casino-5.html online casino casino poker cheap payday loan http://paceware.net/_disc1/00002faa.htm cheap payday loan instant faxless payday loan instant faxless payday loan http://www.homeroom.net/_board/00000742.htm seven card stud http://www.freewebs.com/casino-68/card-stud-1.html seven card stud payday loan personal payday loan personal http://www.blbweb.co.za/2010/_disc1/00000522.htm

  7. 0.0.0.* 于 2007-06-25 09:53:08发表:

    Often free poker game

  8. 217.219.165.* 于 2007-06-25 09:46:25发表:

    las vegas casino las vegas casino http://www.freewebs.com/casino-68/casino-5.html http://home.houston.rr.com/larryandevelyn/_disc1/000000d4.htm online payday loan online payday loan savings account payday loan savings account payday loan http://www.hawkman.org/tarot/forum/_disc1/00001c7b.htm http://www.freewebs.com/casino-76/blackjack-6.html jack black jack black http://www.freewebs.com/casino-66/blackjack-6.html free blackjack game online blackjack game

  9. 0.0.0.* 于 2007-06-25 09:45:01发表:

    It is understood pacific poker bonus code

  10. 71.227.247.* 于 2007-06-25 09:16:29发表:

    payday loan store payday loan store http://www.marysvilleteachers.org/forum/_MUTAdiscussion/0000068a.htm no teletrack payday loan no teletrack payday loan http://mycropthorne.co.uk/Forum/ParishPlan/0000005f.htm free casino slots http://www.freewebs.com/casino-78/slots-1.html slots game baccarat online baccarat game http://www.freewebs.com/casino-89/baccarat-2.html http://www.peru.no/Peru-Noruega/00001edd.htm cheap payday loan cheap payday loan

  11. 217.219.165.* 于 2007-06-25 08:21:02发表:

    no faxing payday loan http://www.splurging.com/discussion3/_disc22/00000297.htm no faxing payday loan internet blackjack play free blackjack http://www.freewebs.com/casino-45/blackjack-5.html play baccarat baccarat online http://www.freewebs.com/casino-24/baccarat-4.html http://www.freewebs.com/casino-66/craps-4.html rules of craps craps game fax payday loan fax payday loan http://www.gaston.k12.nc.us/departments/dec/CECAS/00001bb0.htm

  12. 70.86.54.* 于 2007-06-25 08:17:46发表:

    Rate play video poker

  13. 67.164.221.* 于 2007-06-25 07:59:27发表:

    progressive slots free slots game http://www.freewebs.com/casino-24/slots-4.html internet roulette internet roulette http://www.freewebs.com/casino-44/roulette-3.html http://www.westofthejordan.com/_disc1/0000013a.htm blogspot.com fax loan no payday site blogspot.com fax loan no payday site loan till payday http://www.treillagenet.com/views/00003fa3.htm loan till payday ameriloan payday loan http://members.tripod.com/stjoe1967/_disc1/00000018.htm ameriloan payday loan

  14. 0.0.0.* 于 2007-06-25 07:45:35发表:

    Am free poker game

  15. 62.231.243.* 于 2007-06-25 06:08:08发表:

    No matter poker video

  16. 68.106.135.* 于 2007-06-25 06:03:50发表:

    no teletrack payday loan no teletrack payday loan http://www.northpulaski.com/mysite2/_disc2/00000278.htm payday cash advance http://www.rajmaai.com/_rajmaai/00000893.htm payday cash advance slots online play free slots http://www.freewebs.com/casino-68/slots-2.html same day payday loan same day payday loan http://www.ragazzinet.it/Forum/Animali/_disc1/00000193.htm online casino roulette online casino roulette http://www.freewebs.com/casino-44/roulette-1.html

  17. 0.0.0.* 于 2007-06-25 06:03:33发表:

    seven card stud seven card stud http://www.freewebs.com/casino-13/card-stud-1.html instant faxless payday loan instant faxless payday loan http://www.savannahslim.com/talkingSpirits/_disc1/0000024d.htm http://www.freewebs.com/casino-31/baccarat-4.html free baccarat baccarat online http://lincoln.k12.mi.us/Buildings/HS/bargardi/_disc1/000000bc.htm payday loan online payday loan online faxless payday loan faxless payday loan http://www.banffcentre.ca/bnmi/bridges/forum02/_forum/00000216.htm

  18. 64.136.214.* 于 2007-06-25 05:57:04发表:

    Some online video poker game

  19. 0.0.0.* 于 2007-06-25 05:56:16发表:

    http://thetrainingclinic.com/_disc1/000008d2.htm no credit check payday loan no credit check payday loan seven card stud 7 card stud http://www.freewebs.com/casino-97/card-stud-1.html instant payday loan instant payday loan http://www.topofmyhead.info/_discGodVoter/000021ca.htm gambling craps play craps http://www.freewebs.com/casino-89/craps-4.html video slots http://www.freewebs.com/casino-24/slots-3.html play free slots machine

  20. 66.192.6.* 于 2007-06-25 05:55:10发表:

    Rate party poker cheat

  21. 0.0.0.* 于 2007-06-25 05:53:57发表:

    http://www.dconline.biz/lforum4/_disc42/0000052d.htm same day payday loan same day payday loan faxless payday loan faxless payday loan http://www.froguild.org/discussion/_disc1/000004fd.htm http://www.freewebs.com/casino-44/keno-7.html keno online free keno sonic payday loan sonic payday loan http://www.tecnoago.it/Forum/_messaggi/000005d8.htm payday loan store payday loan store http://www.homeroom.net/_board/00000741.htm

  22. 0.0.0.* 于 2007-06-25 05:47:31发表:

    Overall online poker games

  23. 0.0.0.* 于 2007-06-25 05:46:23发表:

    I am poker free

  24. 0.0.0.* 于 2007-06-25 05:39:17发表:

    Well free texas hold em poker

  25. 68.1.172.* 于 2007-06-25 05:38:02发表:

    More than one of free poker

  26. 0.0.0.* 于 2007-06-25 05:35:58发表:

    Now online poker

  27. 24.94.53.* 于 2007-06-25 05:35:11发表:

    After online casino poker

  28. 0.0.0.* 于 2007-06-25 05:33:20发表:

    Two pacific poker download

  29. 203.186.54.* 于 2007-06-25 05:29:42发表:

    seven card stud 7 card stud http://www.freewebs.com/casino-53/card-stud-4.html internet keno keno online http://www.freewebs.com/casino-97/keno-4.html ameriloan payday loan ameriloan payday loan http://lincoln.k12.mi.us/Buildings/HS/bargardi/_disc1/000000bd.htm payday loan company payday loan company http://www.dylanryanmay.com/_disc1/00000053.htm cash advance paydayloans cash advance paydayloans http://www.lettuceisnotenough.com/_PhD/00006a4e.htm

  30. 68.207.99.* 于 2007-06-25 05:27:44发表:

    Does free online texas hold em

  31. 0.0.0.* 于 2007-06-25 05:13:57发表:

    Eventually pacific poker bonus code

  32. 217.219.165.* 于 2007-06-25 04:56:10发表:

    Once world series of poker

  33. 0.0.0.* 于 2007-06-25 04:34:10发表:

    Possibly party poker bonus code

  34. 0.0.0.* 于 2007-06-25 04:15:30发表:

    Thanks pacific poker download