LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-01-2004, 06:10 AM   #1
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Rep: Reputation: 15
Boot Block backup


Hi

Can anyone tell me how to take backup of bootblock in linux

Regards
 
Old 04-01-2004, 10:34 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
For mbr backup to floppy:
dd if=/dev/hda of=/dev/fd0 bs=512 count=1
Floppy will boot like the hd does.
For bootsector backup:
dd if=/dev/[partition] of=/dev/fd0 bs=512 count=1
Floppy will boot like partition does.
For backup of either to file (mbr in this case):
dd if=/dev/hda of=/mbr.bak bs=512 count=1
If you want to copy back to hd, keep in mind that parititon info is in the first 16 bytes of the mbr, you will need to skip it if you don't want new partition data overwritten.
 
Old 04-01-2004, 10:35 PM   #3
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks a lot

You can close this thread now.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot problem-block dev. davideichmann Linux - Software 6 05-31-2005 03:53 AM
regarding backup super block? zameer_india Linux - Networking 1 02-10-2005 02:31 PM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 06:42 PM
backup jobs block error explorer Linux - General 0 04-06-2004 08:44 AM
How to get rid of LILO from Master Boot Block ehsan Linux - General 5 03-22-2001 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration