hnub: cov piv txwv ntawm no hais kom ua ntau yam

dd

El dd hais kom ua yog qhov paub zoo hauv LinuxCov. Nws yog cov lus hais ntau yam haum, tab sis tsawg leej paub nws tuaj yeem ua dhau qhov thaub qab lossis ntim cov ntaub ntawv. Yog li kuv tau txiav txim siab los tsim qhov kev qhia ua kom yooj yim no nrog qee qhov piv txwv ntawm qhov dab tsi cov lus txib dd tuaj yeem ua no. Lawv txhua tus yog cov piv txwv yooj yim ntawm cov khoom uas yuav tsum tau ua nyob rau txhua hnub.

Zoo kuv twv koj twb paub tias yog hnub twg UNIX tsev neeg cov lus txib thiab qhov ntawd tso cai rau luam tawm thiab hloov cov ntaub ntawv ntawm ib qib qis, yog li nws muaj zog heev. Nws feem ntau siv los ua qhov thaub qab lossis rov ua cov ntawv luam ntawm qee qhov xov xwm khaws cia, tab sis kuj xav hloov cov ntaub ntawv tshwj xeeb, hloov ntawm ib hom encoding mus rau lwm, thiab lwm yam Txawm hais tias nws zoo li lub cuab yeej txheej thaum ub, nws tseem siv nyob rau niaj hnub no thiab ntau heev ...

Ib txhia cov qauv piv txwv yooj yim ntawm cov lus txib no yog:

  • Clone ib qho nyuaj tsav rau lwm qhov kom sdb yog daim ntawv theej ntawm sda cov ntsiab lus:

dd if=/dev/sda of=/dev/sdb

  • Ua cov thaub qab ntawm cov ntawv sau cia, cov ntawv sau cia, lossis kev faib tawm thiab tsim cov duab (IMG, ISO, ...):

dd if=/dev/sda4 of=/home/backup/imagen.img

  • Rov kho cov thaub qab yav dhau los:

dd if=/home/backup/imagen.img of=/dev/sda4

  • Tsim qhov ISO ntawm lub kho qhov muag disc:

dd if=/dev/dvdrom of=/home/media/imagen.iso

  • Muab cov ntaub ntawv tshem tawm ntawm lub hard drive los ntawm kev sau se rau nws:

dd if=/dev/random of=/dev/sdb

  • Tsim cov ntaub ntawv nrog qhov loj me, hauv qhov no 10 bytes, tab sis koj tuaj yeem xaiv qhov nyiaj uas koj xav tau, thiab yog tias koj hloov suav mus rau 2, piv txwv li, nws yuav muab nws ob npaug:

dd if=/dev/zero of=~/prueba bs=100 count=1

Kuv vam tias phau ntawv qhia no tau pab koj, uas koj tuaj yeem pom nws yooj yim heev, tab sis nws tuaj yeem txuag koj txhim kho lwm cov kev pabcuam ntxiv. Piv txwv li, yog tias koj xav ua qhov ISO ntawm CD / DVD / BD, koj tuaj yeem siv hnub so tsis muaj lub software tshwj xeeb rau qhov ntawd. Qhov ntawd kuj ceeb toom rau kuv ntawm / dev / loop lossis lub voj ntaus ntawv, uas tseem tuaj yeem pab koj mount ib qho ISO thiab nkag mus rau nws cov ntsiab lus tsis muaj lwm lub software ntxiv… Nco ntsoov tias koj tuaj yeem pom cov ntaub ntawv ntau ntxiv hais txog hnub yog nrog "man dd". Nws muaj ntau cov kev xaiv uas koj yuav pom zoo.


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

Yog thawj tus tuaj tawm tswv yim

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.