Melakukan pengecekan blok disk

root@myhost:~ # lsblk
NAME                   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                      8:0    0 931.5G  0 disk
├─sda1                   8:1    0     1G  0 part  /boot
└─sda2                   8:2    0 930.5G  0 part
  └─md127                9:127  0 930.4G  0 raid1
    ├─centos_myhost-root 253:0    0    52G  0 lvm   /
    ├─centos_myhost-swap 253:1    0    10G  0 lvm   [SWAP]
    ├─centos_myhost-home 253:2    0 816.4G  0 lvm   /home
    └─centos_myhost-var  253:3    0    52G  0 lvm   /var
sdb                      8:16   0   931G  0 disk
└─sdb1                   8:17   0 930.5G  0 part
  └─md127                9:127  0 930.4G  0 raid1
    ├─centos_myhost-root 253:0    0    52G  0 lvm   /
    ├─centos_myhost-swap 253:1    0    10G  0 lvm   [SWAP]
    ├─centos_myhost-home 253:2    0 816.4G  0 lvm   /home
    └─centos_myhost-var  253:3    0    52G  0 lvm   /var
sdc                      8:32   0   7.3T  0 disk
├─sdc1                   8:33   0   128M  0 part
└─sdc2                   8:34   0   7.3T  0 part
sr0                     11:0    1  1024M  0 rom
root@myhost:~ #

Copy disk menjadi file image (di copy ke hdd external)

root@myhost:~ # mkdir /data/image-myhost
root@myhost:~ #
root@myhost:~ # dd if=/dev/sda of=/data/image-myhost/myhost-image-sda.img bs=4M

Leave a Reply

Your email address will not be published. Required fields are marked *