How to Backup Master Boot Record (MBR) Using Linux dd Command
MBR Backup
[root@testsvr01~]# dd if=/dev/sda1 of=/opt/mbr_backup bs=512 count=1
0+1 records in
0+1 records out
115 bytes (115 B) copied, 0.0001912 s, 601 kB/s
[root@testsvr01~]#
MBR Backup
[root@testsvr01~]# dd if=/dev/sda1 of=/opt/mbr_backup bs=512 count=1
0+1 records in
0+1 records out
115 bytes (115 B) copied, 0.0001912 s, 601 kB/s
[root@testsvr01~]#
[root@testsvr01~]# rpm -q kernel
kernel-3.10.0-1160.15.2.el7.x86_64
kernel-3.10.0-1160.21.1.el7.x86_64
kernel-3.10.0-1160.24.1.el7.x86_64
kernel-3.10.0-1160.36.2.el7.x86_64
kernel-3.10.0-1160.71.1.el7.x86_64
[root@ehapp01 ~]# package-cleanup --oldkernels --count=1
Loaded plugins: fastestmirror, langpacks
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-1160.15.2.el7 will be erased
---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased