Advertisement

10.19.2005 at 10:17PM PDT, ID: 21601291
[x]
Attachment Details

Using dd to back up boot sector

Asked by The--Captain in Linux

Tags: dd, boot, sector

A quick question, which I would've posted in one of the microsoft TA's except that I doubt many folks in those TAs are familiar with dd - so here it goes:

I want to install windows 98 on a partition that exists on a drive that already has windows XP installed.  I'm fairly certain that the 98 installation process will blow away my boot sector as a matter of course, so I want to preserve it (and restore it) after the 98 install is complete (I'm fairly confident that the XP bootloader can handle the 98 installation).  I've done a bit of googling and come up with the following...

To backup the boot sector:

dd if=/dev/hda of=backup.boot bs=512 count=1

To restore the boot sector:

dd if=backup.boot of=/dev/hda bs=1

I would be booting off a CD-based distro and using a floppy for the backup medium.

Will this work?

Cheers,
-Jon
 Start Free Trial
 
 
[+][-]10.19.2005 at 11:02PM PDT, ID: 15121972

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.20.2005 at 04:03PM PDT, ID: 15129278

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux
Tags: dd, boot, sector
Sign Up Now!
Solution Provided By: kamermans
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.18.2006 at 12:41PM PST, ID: 15990411

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02.19.2006 at 02:15AM PST, ID: 15993208

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2006 at 06:18AM PST, ID: 15993890

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.19.2006 at 08:28AM PST, ID: 15994510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2006 at 06:12PM PDT, ID: 16686993

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.16.2006 at 12:18PM PDT, ID: 16693541

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32