Archive

Posts Tagged ‘dd’

Using dd to create disk images

September 9th, 2008

 Powered by Max Banner Ads 
Create a hard disk image:
 
 dd if=/dev/hda1 of=/home/hda1.bin
 
Create a compressed disk image
 
dd if=/dev/hda1 | gzip  > /home/hda1.bin.gz
 
Back up the MBR
 
 dd if=/dev/hda of=/home/hda.boot.mbr bs=512 count=1
 
Restore MBR (from a Live CD)
 
dd if=/mnt/hda1/home/hda.boot.mbr of=/dev/hda bs=512 count=1
 
Backup a drive to another drive
 
 dd if=/dev/hda of=/dev/hdb conv=noerror,sync bs=4k

cloning, Debian, Linux , ,

Da immagine a disco via rete con netcat

September 4th, 2008

sul target host partire con una LIVE linux e mettere netcat in ascolto in questo modo…

  netcat -l -p 1234 | dd of=/dev/sda bs=16065b

sul master (dove risiede l’immagine gzippata)

  zcat immagine.gz | netcat 192.168.1.1 1234

Debian, netcat, Shell , ,

cloning disk using dd

May 29th, 2008

from your machine to external usb disk:

dd if=/dev/<your machine disk> | gzip > /path/nameofyourimg.gz

from your img saved to external usb disk:

zcat /path/nameofyourimg.gz | dd of=/dev/<your machine disk>

Debian, Linux, Shell , , , ,