RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Linux Backup Restore Destroy and Install MBR - Master Boot Record

Article Index
1. BACKUP MBR
2. RESTORE MBR
3. DESTROY MBR
4. INSTALL MBR

Here are some usefull hints on how to Backup Restore Destroy and Install MBR on linux. If the need comes to backup, restore and destroy your MBR you can use a dd command to do that job. First we need to find find our storage device to backup MBR. To do that use a command:

fdisk -l 

Let's assume that the storage device we want to work with is /dev/hdb.

WARNING: DO NOT COPY AND PASTE COMMANDS FROM THIS PAGE UNLESS YOUR DEVICE IS ALSO /dev/sdb !!

1. BACKUP MBR

To backup Master Boot Record ( MBR ):

# dd if=/dev/sdb of=my.mbr bs=466 count=1

where my.mbr is a file where we would like to store our MBR backup.

2. RESTORE MBR

To restore a MBR we need to just switch the order of input and output files.

# dd if=my.mbr of=/dev/sdb bs=466 count=1

3. DESTROY MBR

If you from any reason want to destroy your MBR us as a input file /dev/zero:

# dd if=/dev/zero of=/dev/sdb bs=466 count=1

4. INSTALL MBR

Installing MBR can be very useful especially when creating linux USB boot sticks. To install MBR from scratch we can use install-mbr command found in mbr package:

# install-mbr /dev/sdb

Share this linux post:

Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in Delicious Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in Digg Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in FaceBook Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in Google Bookmarks Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in Stumbleupon Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in Technorati Submit Linux Backup Restore Destroy and Install MBR - Master Boot Record in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download