How to restore and backup MBR in Linux
This post explains how to restore / backup MBR on Linux. Master Boot Record (MBR) is the first sector of any hard drive. It consists of information about where is the operating system located. It helps to load the operating system into the computer’s primary storage, so it is critical to backup Master Boot Record.
Backup Master Boot Record:
dd if=/dev/sda of=/root/mbr.back bs=512 count=1
The above command will backup Master Boot Record (First 512 bytes of the hard disk).
NOTE: Replace /dev/sda with the actual device name.
Restore MBR from backup:
dd if=/root/mbr.back of=/dev/sda bs=512 count=1
The above command will restore the MBR from the previously taken backup.
Also, read more about Master Boot Record from Here
Also Read:
- Configure NIC bonding in CentOS 7 / RHEL 7
- Linux File System Hierarchy
- Useful GIT Commands
- How to add additional drive to CentOS server
- Install SAR (sysstat) on CentOS
- Enable DKIM and SPF for all accounts in cPanel
- Understanding FTP ( File Transfer Protocol )
- Recover mysql root password
- How to enable slow query log
- How to use linux screen command
- Change outgoing mail server IP address in Plesk
- How to change cPanel password from command line
- Configure Mandrill on cPanel (Exim)
- How to configure SendGrid on cPanel
- Install GitLab on CentOS 7 and Derivatives
- New version of Midori 8 browser is released
- How to Install ADB on Ubuntu and Derivatives
- 7 Best Evernote Clients and Alternatives for Ubuntu
- Create FTP account in cPanel via terminal
- How to Install vsftp on CentOS 7
- How to enable PPP in OpenVZ VPS
- How to change SSH Password authentication to Key authentication on a Linux machine
- Find email account password in Plesk
- Consistent backup using LVM snapshot
- How to install FFMPEG on cPanel
That’s it!
If you like this post and wish to receive more articles from us, please like our FB page: Grepitout
Add Comment