红联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-09-07 11:18:17发表:

    bad kredit personal loan arkansas bad kredit personal loan arkansas http://www.1-hypothekardarlehen.info/phorum/bad-kredit-personal-loan-arkansas.php direct student loan payment direct student loan payment http://www.1-prestito-personale.info/1121.html texas motorcycle insurance texas motorcycle insurance http://www.1-segurocoche.info/1586.asp countrywide home loan plano countrywide home loan plano http://www.12loan-fr.info/new/countrywide-home-loan-plano.html health insurance plan health insurance plan http://www.1-travelinsurance-es.info/2007/health-insurance-plan.asp bridge loans bridge loans http://www.12onlineloan-es.info/blog/bridge-loans.asp richiesta pratica mutuo milano richiesta pratica mutuo milano http://www.1-prestito-personale.info/posts/1436.asp assurance auto montpellier assurance auto montpellier http://www.12insurance-fr.info/1266.php hipotecas cual es el mejor banco hipotecas cual es el mejor banco http://www.1home-loan-es.info/news/hipotecas-cual-es-el-mejor-banco.php holiday insurance quote travel holiday insurance quote travel http://www.123-home-insurance.info/docs/holiday-insurance-quote-travel.php

  2. 12.208.181.* 于 2007-09-07 10:35:35发表:

    credit card processing for business credit card processing for business http://www.1credit-en-ligne.info/10/1604 loan new car quote loan new car quote http://www.123online-loan.info/today/loan-new-car-quote.asp reunificar credito reunificar credito http://www.1-loan-es.info/blog/reunificar-credito.php angeles car insurance los angeles car insurance los http://www.12-assicurazione.info/7/angeles-car-insurance-los.php beach california home loan solana beach california home loan solana http://www.12-student-loan.info/beach-california-home-loan-solana.html compagnie d assurance dans le btp compagnie d assurance dans le btp http://www.1-assurancemaladie.info/online/compagnie-d-assurance-dans-le-btp.asp medicare supplement insurance quotes medicare supplement insurance quotes http://www.123-assurance.info/3/1191.asp assurance voyage etranger assurance voyage etranger http://www.123assurancevie.info/pdf/assurance-voyage-etranger.html banco prestamo personal banco prestamo personal http://www.1-loan-es.info/cat/banco-prestamo-personal instant health insurance quote instant health insurance quote http://www.12insurance-es.info/blog/instant-health-insurance-quote.asp

  3. 89.0.7.* 于 2007-09-07 09:08:35发表:

    flood insurance rate flood insurance rate http://www.1-seguro.info/2006/flood-insurance-rate.php geschichte der allianz versicherung geschichte der allianz versicherung http://www.12-versicherung.info/online/geschichte-der-allianz-versicherung.php life insurance quote life insurance quote http://www.1-seguroautomovil.info/life-insurance-quote.asp nationwide insurance columbus ohio nationwide insurance columbus ohio http://www.12insurance-es.info/blog/nationwide-insurance-columbus-ohio.asp canada card company credit retail services trans canada card company credit retail services trans http://www.12-payday-loan.info/3/1569.asp hipoteca caixa manresa hipoteca inversa hipoteca caixa manresa hipoteca inversa http://www.12-prestamo-hipotecario.info/hipoteca-caixa-manresa-hipoteca-inversa.asp how to get business line of credit how to get business line of credit http://www.123-payday-loan.info/2007/how-to-get-business-line-of-credit.html hipoteca credito hipotecario inquilinos hipoteca credito hipotecario inquilinos http://www.123loan-es.info/9/1639.php insurance agent licensing insurance agent licensing http://www.1-autoinsurance.info/insurance-agent-licensing.asp personal medical insurance uk personal medical insurance uk http://www.12-direkt-versicherung.info/articles/1518.html

  4. 24.17.58.* 于 2007-09-07 08:19:22发表:

    privat kranken versicherung sparen privat kranken versicherung sparen http://www.123-versicherung.info/1193.php card credit debt repair card credit debt repair http://www.123home-loan.info/1488.asp car loan nashua new hampshire car loan nashua new hampshire http://www.12-onlineloan-de.info/book/1184 banca credito popolare it banca credito popolare it http://www.123-prestito-auto.info/ads/banca-credito-popolare-it.html assicurazioni assicurazioni http://www.12-lifeinsurance-it.info/1163.asp health insurance agent health insurance agent http://www.1-automobile-insurance.info/1864.php contents insurance quota contents insurance quota http://www.12-insurance-it.info/1576.html indiana mortgage rate indiana mortgage rate http://www.123home-loan.info/2006/1416.php tesco pet insurance tesco pet insurance http://www.123-assurance-maladie.info/2/1479 to insure my boat to insure my boat http://www.1-rental-insurance.info/articles/to-insure-my-boat.asp

  5. 193.77.47.* 于 2007-09-07 07:55:18发表:

    geico home owner insurance geico home owner insurance http://www.123-home-insurance.info/geico-home-owner-insurance free online credit checks free online credit checks http://www.123loan-de.info/1710 top auto insurance company top auto insurance company http://www.123-travel-insurance.info/ads/1013.asp car insurance rata car insurance rata http://www.12assicurazione-auto.info/car-insurance-rata critical illness insurance life critical illness insurance life http://www.123seguro-automovil.info/1356 macif avantage et service macif avantage et service http://www.123assurancevie.info/macif-avantage-et-service.html farmer insurance home page farmer insurance home page http://www.12-home-insurance.info/pdf/farmer-insurance-home-page.asp canada motorcycle insurance canada motorcycle insurance http://www.123seguro-coche.info/canada-motorcycle-insurance.asp uk group health insurance uk group health insurance http://www.12-autoversicherung.info/1367.html mortgage insurance broker mortgage insurance broker http://www.12-assurance-vie.info/mortgage-insurance-broker.asp

  6. 203.121.67.* 于 2007-09-06 08:55:09发表:

    Great boys :
    free music downloads = free music = limewire = FREE MUSIC DOWNLOADS = LIMEWIRE = LIMEWIRE = FREE MUSIC DOWNLOADS = free music download = free limewire =
    http://www.nativeecosystems.org/portal_memberdata/portraits/ge3ei3 free music downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html legal music downloads :: http://www.geocities.com/musicdowmoads4f/limewire.htm limewire :: http://musicdownloadsmp3.tripod.com/ legal music downloads :: http://www.fixgrout.com/cgi/musicpage31.html limewire :: http://musicdownloadsmp3.tripod.com/ limewire :: http://musicdownloads4free.angelfire.com/free-music.html free music :: http://musicdownloadsmp3.tripod.com/ music :: http://www.freewebs.com/1fmusic/limewire.html LIMEWIRE :: http://www.geocities.com/musicdowmoads4f/music-downloads.htm music downloads :: http://www.freewebs.com/1fmusic/music-downloads.html free mp3 downloads ::
    music .. music downloads .. free limewire .. Free Music Downloads .. limewire .. LIMEWIRE .. free mp3 music downloads ..

  7. 203.121.71.* 于 2007-09-06 08:53:40发表:

    Thanks boys :
    free mp3 downloads = Free Music Downloads = free mp3 music downloads = free mp3 music downloads = limewire = free limewire = free music = free music = music downloads =
    http://musicdownloads4free.angelfire.com/free-music.html free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html music :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html free music downloads :: http://www.fixgrout.com/cgi/ music downloads :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html free limewire :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm music downloads pc :: http://www.fixgrout.com/cgi/musicpage31.html free music downloads :: http://www.freewebs.com/1fmusic/limewire.html Free Music Downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html LIMEWIRE :: http://musicdownloadsmp3.tripod.com/music_downloads.html FREE MUSIC DOWNLOADS ::
    music .. Free Music Downloads .. free music .. free music .. limewire .. limewire .. free music downloads ..

  8. 81.95.154.* 于 2007-09-06 08:48:51发表:

    Thanks boys :
    free music download = free music = legal music downloads = music download = limewire = free limewire = FREE MUSIC DOWNLOADS = Free Music Downloads = MUSIC DOWNLOADS =
    http://musicdownloads4free.angelfire.com/free-music.html free mp3 downloads :: http://www.fixgrout.com/cgi/musicpage31.html FREE MUSIC DOWNLOADS :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html free music downloads :: http://www.fixgrout.com/cgi/ music :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html limewire :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html music downloads :: http://www.freewebs.com/1fmusic/limewire.html Free Music Downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html free limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 downloads ::
    free music .. music downloads .. FREE MUSIC DOWNLOADS .. free music downloads .. limewire .. LIMEWIRE .. music downloads pc ..

  9. 81.95.154.* 于 2007-09-05 07:50:32发表:

    Hi, my sites: :
    FREE MUSIC DOWNLOADS = music download = MUSIC DOWNLOADS = music = limewire = LIMEWIRE = music downloads pc = free music download = music download =
    http://musicdownloads4free.angelfire.com/free-music.html free mp3 :: http://www.fixgrout.com/cgi/musicpage31.html legal music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html free mp3 downloads :: http://www.fixgrout.com/cgi/ free mp3 downloads :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html free limewire :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm music downloads pc :: http://www.fixgrout.com/cgi/musicpage31.html free music downloads :: http://www.freewebs.com/1fmusic/limewire.html free mp3 music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html free limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html MUSIC DOWNLOADS ::
    free music downloads .. MUSIC DOWNLOADS .. FREE MUSIC DOWNLOADS .. Free Music Downloads .. limewire .. LIMEWIRE .. free music ..

  10. 203.121.71.* 于 2007-09-05 07:46:23发表:

    Yhanks you :
    free music = free mp3 downloads = free mp3 music downloads = free music download = limewire = LIMEWIRE = music downloads pc = free mp3 downloads = music downloads =
    http://musicdownloads4free.angelfire.com/free-music.html music download :: http://www.fixgrout.com/cgi/musicpage31.html music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html free music :: http://www.fixgrout.com/cgi/ music :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html limewire :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html free music downloads :: http://www.freewebs.com/1fmusic/limewire.html free mp3 downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html free music downloads ::
    legal music downloads .. free music .. music download .. free music downloads .. limewire .. LIMEWIRE .. FREE MUSIC DOWNLOADS ..

  11. 203.121.67.* 于 2007-09-05 07:29:41发表:

    Hi, my sites: :
    MUSIC DOWNLOADS = free music downloads = LIMEWIRE = MUSIC DOWNLOADS = LIMEWIRE = limewire = free mp3 music downloads = free music downloads = LIMEWIRE =
    http://www.nativeecosystems.org/portal_memberdata/portraits/ge3ei3 FREE MUSIC DOWNLOADS :: http://musicdownloadsmp3.tripod.com/music_downloads.html free music downloads :: http://www.geocities.com/musicdowmoads4f/limewire.htm free limewire :: http://musicdownloadsmp3.tripod.com/ music downloads :: http://www.fixgrout.com/cgi/musicpage31.html limewire :: http://musicdownloadsmp3.tripod.com/ LIMEWIRE :: http://musicdownloads4free.angelfire.com/free-music.html free mp3 :: http://musicdownloadsmp3.tripod.com/ free mp3 :: http://www.freewebs.com/1fmusic/limewire.html free limewire :: http://www.geocities.com/musicdowmoads4f/music-downloads.htm free music :: http://www.freewebs.com/1fmusic/music-downloads.html free mp3 music downloads ::
    FREE MUSIC DOWNLOADS .. legal music downloads .. free limewire .. free music .. LIMEWIRE .. LIMEWIRE .. free music ..

  12. 203.121.71.* 于 2007-09-02 23:27:04发表:

    Hi, my sites: :
    FREE MUSIC DOWNLOADS = FREE MUSIC DOWNLOADS = MUSIC DOWNLOADS = music downloads = limewire = limewire = music downloads pc = free music = free music download =
    http://musicdownloads4free.angelfire.com/free-music.html free mp3 downloads :: http://www.fixgrout.com/cgi/musicpage31.html mp3 music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html music :: http://www.fixgrout.com/cgi/ free music downloads :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html LIMEWIRE :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm FREE MUSIC DOWNLOADS :: http://www.fixgrout.com/cgi/musicpage31.html MUSIC DOWNLOADS :: http://www.freewebs.com/1fmusic/limewire.html free music :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html free limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html music ::
    Free Music Downloads .. FREE MUSIC DOWNLOADS .. FREE MUSIC DOWNLOADS .. free mp3 downloads .. limewire .. limewire .. free music downloads ..

  13. 203.121.67.* 于 2007-09-02 23:26:48发表:

    Hi boys! :
    FREE MUSIC DOWNLOADS = FREE MUSIC DOWNLOADS = LIMEWIRE = Free Music Downloads = LIMEWIRE = free limewire = Free Music Downloads = music downloads = LIMEWIRE =
    http://www.nativeecosystems.org/portal_memberdata/portraits/ge3ei3 free music :: http://musicdownloadsmp3.tripod.com/music_downloads.html music download :: http://www.geocities.com/musicdowmoads4f/limewire.htm limewire :: http://musicdownloadsmp3.tripod.com/ free music :: http://www.fixgrout.com/cgi/musicpage31.html LIMEWIRE :: http://musicdownloadsmp3.tripod.com/ limewire :: http://musicdownloads4free.angelfire.com/free-music.html free music downloads :: http://musicdownloadsmp3.tripod.com/ mp3 music downloads :: http://www.freewebs.com/1fmusic/limewire.html free limewire :: http://www.geocities.com/musicdowmoads4f/music-downloads.htm music downloads :: http://www.freewebs.com/1fmusic/music-downloads.html music downloads ::
    music downloads .. Free Music Downloads .. free limewire .. free music .. free limewire .. LIMEWIRE .. Free Music Downloads ..

  14. 81.95.154.* 于 2007-09-02 23:14:00发表:

    Hi boys! :
    free mp3 downloads = free music downloads = Free Music Downloads = mp3 music downloads = limewire = LIMEWIRE = free music = legal music downloads = FREE MUSIC DOWNLOADS =
    http://musicdownloads4free.angelfire.com/free-music.html free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html free music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html music download :: http://www.fixgrout.com/cgi/ FREE MUSIC DOWNLOADS :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html free limewire :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm FREE MUSIC DOWNLOADS :: http://www.fixgrout.com/cgi/musicpage31.html music downloads :: http://www.freewebs.com/1fmusic/limewire.html free music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html free limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 music downloads ::
    MUSIC DOWNLOADS .. free music .. music downloads .. free music downloads .. limewire .. limewire .. free music downloads ..

  15. 203.121.67.* 于 2007-09-01 23:07:28发表:

    Hi boys! :
    MUSIC DOWNLOADS = free music = LIMEWIRE = free mp3 = limewire = free limewire = music = free music downloads = limewire =
    http://www.nativeecosystems.org/portal_memberdata/portraits/ge3ei3 free mp3 :: http://musicdownloadsmp3.tripod.com/music_downloads.html free music downloads :: http://www.geocities.com/musicdowmoads4f/limewire.htm limewire :: http://musicdownloadsmp3.tripod.com/ MUSIC DOWNLOADS :: http://www.fixgrout.com/cgi/musicpage31.html free limewire :: http://musicdownloadsmp3.tripod.com/ free limewire :: http://musicdownloads4free.angelfire.com/free-music.html free mp3 downloads :: http://musicdownloadsmp3.tripod.com/ Free Music Downloads :: http://www.freewebs.com/1fmusic/limewire.html limewire :: http://www.geocities.com/musicdowmoads4f/music-downloads.htm free music downloads :: http://www.freewebs.com/1fmusic/music-downloads.html free mp3 music downloads ::
    free music .. free music download .. LIMEWIRE .. Free Music Downloads .. limewire .. LIMEWIRE .. FREE MUSIC DOWNLOADS ..

  16. 203.121.71.* 于 2007-09-01 23:05:45发表:

    Hi boys! :
    music = legal music downloads = free music downloads = FREE MUSIC DOWNLOADS = limewire = limewire = music downloads = free music downloads = MUSIC DOWNLOADS =
    http://musicdownloads4free.angelfire.com/free-music.html legal music downloads :: http://www.fixgrout.com/cgi/musicpage31.html Free Music Downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html music :: http://www.fixgrout.com/cgi/ music downloads :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html free limewire :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html free music :: http://www.freewebs.com/1fmusic/limewire.html music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html free limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html free music ::
    mp3 music downloads .. FREE MUSIC DOWNLOADS .. free mp3 downloads .. music downloads .. limewire .. free limewire .. FREE MUSIC DOWNLOADS ..

  17. 81.95.154.* 于 2007-09-01 23:02:43发表:

    Thanks boys :
    free music downloads = free mp3 downloads = music = Free Music Downloads = limewire = LIMEWIRE = free music downloads = music downloads = free music =
    http://musicdownloads4free.angelfire.com/free-music.html free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html free music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/index.html music downloads :: http://www.fixgrout.com/cgi/ music :: http://homepage.mac.com/fmp3musicdownloads/limewire.htm limewire :: http://www.fixgrout.com/cgi/musicpage31.html LIMEWIRE :: http://homepage.mac.com/fmp3musicdownloads/music-downloads-pc.htm free music downloads :: http://www.fixgrout.com/cgi/musicpage31.html music downloads :: http://www.freewebs.com/1fmusic/limewire.html music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-limewire.html limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html music downloads ::
    legal music downloads .. free mp3 downloads .. free music .. music downloads .. limewire .. free limewire .. music downloads pc ..