You are on page 1of 26

INSTRUCTIVO CLONACIÓN DE DISCOS

1 Generación de Ejecutable

1.1 Descarga de medios de instalación

1.2 Alistamiento de memoria USB

Ejecutar dmesg para identificar dispositivo usb

# dmesg
[ 2717.211315] usb 2-1: new high-speed USB device number 5 using xhci_hcd
[ 2717.342549] usb 2-1: New USB device found, idVendor=0e39, idProduct=f101
[ 2717.342552] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2717.342554] usb 2-1: Product: USB-IBM
[ 2717.342556] usb 2-1: Manufacturer: SMART
[ 2717.342557] usb 2-1: SerialNumber: 2013070440667002
[ 2717.878214] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 2717.878630] scsi host3: usb-storage 2-1:1.0
[ 2717.878896] usbcore: registered new interface driver usb-storage
[ 2717.880387] usbcore: registered new interface driver uas
[ 2718.906103] scsi 3:0:0:0: Direct-Access SMART USB-IBM 0090 PQ: 0 ANSI: 0 CCS
[ 2718.906476] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 2719.511305] sd 3:0:0:0: [sdb] 7823360 512-byte logical blocks: (4.01 GB/3.73 GiB)
[ 2719.514137] sd 3:0:0:0: [sdb] Write Protect is off
[ 2719.514141] sd 3:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 2719.516966] sd 3:0:0:0: [sdb] No Caching mode page found
[ 2719.516971] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 2719.547850] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 2719.547853] GPT:1127355 != 7823359
[ 2719.547854] GPT:Alternate GPT header not at the end of the disk.
[ 2719.547854] GPT:1127355 != 7823359
[ 2719.547855] GPT: Use GNU Parted to correct GPT errors.
[ 2719.547867] sdb: sdb1 sdb2 sdb3
[ 2719.553992] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 2720.234738] isofs_fill_super: bread failed, dev=sdb1, iso_blknum=63, block=126
[ 2720.245438] ISOFS: Unable to identify CD-ROM format.
[ 2726.472905] ISOFS: Unable to identify CD-ROM format.
[ 2729.726382] isofs_fill_super: bread failed, dev=sdb1, iso_blknum=63, block=126

1.3 Particionamiento de la memoria USB


root@HAL9000:~# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.27.1).


Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.


Created a new DOS disklabel with disk identifier 0x87604149.

Command (m for help): p


Disk /dev/sdb: 3,7 GiB, 4005560320 bytes, 7823360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x87604149

Command (m for help): n


Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-7823359, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-7823359, default 7823359):

Created a new partition 1 of type 'Linux' and of size 3,7 GiB.

Command (m for help): t


Selected partition 1
Partition type (type L to list all types): b
Changed type of partition 'Linux' to 'W95 FAT32'.

Command (m for help): p


Disk /dev/sdb: 3,7 GiB, 4005560320 bytes, 7823360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x87604149

Device Boot Start End Sectors Size Id Type


/dev/sdb1 2048 7823359 7821312 3,7G b W95 FAT32

Command (m for help): w


The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@HAL9000:~#

1.4 Formateo de la memoria USB


root@HAL9000:~# mkfs.vfat -F 32 /dev/sdb1
mkfs.fat 3.0.28 (2015-05-16)
root@HAL9000:~#

1.5 Reinsertar memoria e identificar punto de montaje:


root@HAL9000:~# mount | grep sdb1
/dev/sdb1 on /media/cfajardo/EEBD-72B0 type vfat
(rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-
1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
root@HAL9000:~#

1.6 Descomprimir instaladores en memoria USB


root@HAL9000:~/Downloads# unzip clonezilla-live-20170626-zesty-amd64.zip -d /media/cfajardo/EEBD-72B0/
Archive: clonezilla-live-20170626-zesty-amd64.zip
inflating: /media/cfajardo/EEBD-72B0/GPL
creating: /media/cfajardo/EEBD-72B0/syslinux/
inflating: /media/cfajardo/EEBD-72B0/syslinux/libutil.c32
inflating: /media/cfajardo/EEBD-72B0/syslinux/chain.c32
inflating: /media/cfajardo/EEBD-72B0/syslinux/libcom32.c32
inflating: /media/cfajardo/EEBD-72B0/syslinux/drblwp.png
inflating: /media/cfajardo/EEBD-72B0/syslinux/isolinux.bin
inflating: /media/cfajardo/EEBD-72B0/syslinux/syslinux.cfg
inflating: /media/cfajardo/EEB

1.7 Hacer booteable la memoria USB (PASO DELICADO)


root@HAL9000:~# cd /media/cfajardo/EEBD-72B0/utils/linux/
root@HAL9000:/media/cfajardo/EEBD-72B0/utils/linux# bash makeboot.sh /dev/sdb1
This command will install MBR and syslinux/extlinux bootloader on /dev/sdb
Clonezilla files are assumed to be on /dev/sdb1
--------------------------------------------
Machine: 20DF0040US:
Model: SMART USB-IBM (scsi)
Disk /dev/sdb: 4006MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags


1 1049kB 4006MB 4005MB primary fat32
--------------------------------------------
Are you sure you want to continue?
[y/n] y
OK! Let's do it!
--------------------------------------------
File system of /dev/sdb1: vfat
--------------------------------------------
sdb1 is not marked as bootable! The partition table of /dev/sdb:
--------------------------------------------
20DF0040US:
Model: SMART USB-IBM (scsi)
Disk /dev/sdb: 4006MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags


1 1049kB 4006MB 4005MB primary fat32

--------------------------------------------
Do you want to mark it as bootable ?
[y/n] y
OK! Let's do it!
Running: parted -s /dev/sdb set 1 boot on
--------------------------------------------
Do you want to install MBR on /dev/sdb on this machine "20DF0040US" ?
[y/n] y
OK! Let's do it!
Running: cat "/media/cfajardo/EEBD-72B0/utils/mbr/mbr.bin" > /dev/sdb
--------------------------------------------
Do you want to install the syslinux boot files on /dev/sdb1 on this machine "20DF0040US" ?
[y/n] y
OK! Let's do it!
A filesystem supporting Unix file mode for syslinux is required. Copying syslinux to /tmp/linux_tmp.EvFgag
'/media/cfajardo/EEBD-72B0/utils/linux/syslinux' -> '/tmp/linux_tmp.EvFgag/syslinux'
Running: "/tmp/linux_tmp.EvFgag/syslinux" -d syslinux -f -i "/dev/sdb1"
//NOTE// If your USB flash drive fails to boot (maybe buggy BIOS), try to use "syslinux -d syslinux -fs /dev/sdb1", i.e. running with "-
fs".
syslinux ran successfully in installation mode.
Done!
root@HAL9000:/media/cfajardo/EEBD-72B0/utils/linux#
2 Generación de Imagen

2.1 Arranque del servidor con memoria USB booteable

2.2 Selección de Idioma


2.3 Selección de Teclado

2.4 Arranque de Clonzilla


2.5 Selección de Funcionalidad

2.6 Opcional, si la imagen va a un disco externo USB este es el


momento de conectarlo
2.7 IDENTIFICAR DISCO ORIGEN Y DISCO DESTINO

2.8 Montar disco para repositorio de imagenes identificado en


el paso anterior
2.9 Escoger directorio donde se guardará la imagen
2.10 Definir modo de funcionamiento

2.11 Opción para salvar el disco entero o sus particiones


2.12 Darle un nombre a la imagen que se esta sacando

2.13 Confirmación del disco origen para generar la imagen


2.14 Opción para realizar una validación de la integridad de
la imagen

Opción para encriptar la imagen (en este caso no aplica)


2.15 Acción que debe realizar el sistema al finalizar
2.16 Confirmación de la tarea programada:

Ejecución del volcado del disco a imagen:


Finalización del proceso:
Validación:

El disco destino debe contener una carpeta con el nombre de la imagen definido en el proceso anterior.
3 Restauración de Imagen

3.1 Arranque del servidor con memoria USB booteable

3.2 Selección de Idioma


3.3 Selección de Teclado

3.4 Arranque de Clonzilla


3.5 Selección de Funcionalidad

3.6 Opcional, si la imagen viene de un disco externo USB este


es el momento de conectarlo
3.7 IDENTIFICAR DISCO ORIGEN Y DISCO DESTINO

3.8 Montar disco para repositorio de imagenes identificado en


el paso anterior
3.9 Escoger directorio donde se encuentran las imagenes

3.10 Escoger acción a realizar, en este caso restauración de


disco
3.11 Escoger la imagen a restaurar:

3.12 Definir cual es el disco destino donde se copiará la


imagen:
3.13 Definir si se quiere realizar una comprobación de
integridad al finalizar el proceso:

3.14 Definir acción del sistema al finalizar el proceso:


3.15 Confirmaciones sobre las opciones escogidas:
3.16 Proceso en ejecución
3.17 Pasos postclonación

3.17.1 Ajustar Dirección IP

Copiar mac y dirección ip a archivo /etc/sysconfig/network-scripts/ifcfg-ethX

3.17.2 Ajustar Nombre


/etc/sysconfig/network
/etc/hosts

You might also like