Jump to content

Can You Copy The Boot Sector Of A Disc?


hsncorrosion

Recommended Posts

Yes, there is a little program called dd, which allows you to produce a exact bit for bit copy using a simple command like dd if=/*source* of=/*destination*. Runs under *nix or windows (take a look at my linux-esq command line for windows post).

edit: if your using it for windows you will need to change the SID, either with sysprep or the sysinternal app called newSID.

Link to comment
Share on other sites

Using a linux boot disc would probally be easier for you, so download one.

Then you id which disc your source is, say /sda, and your target, say /hda, enter dd if=/sda of=/hda and wait. (There are other options to increase i/o speed, read the man pages). You can't put an 80gb disc on a 40gb disc, but you can put a 40gb disc on an 80gb disc.

Newsid has an option to generate a random sid, use that. Sysprep is a must if your going to run on different hardware though.

Link to comment
Share on other sites

Using a linux boot disc would probally be easier for you, so download one.

Then you id which disc your source is, say /sda, and your target, say /hda, enter dd if=/sda of=/hda and wait. (There are other options to increase i/o speed, read the man pages). You can't put an 80gb disc on a 40gb disc, but you can put a 40gb disc on an 80gb disc.

Newsid has an option to generate a random sid, use that. Sysprep is a must if your going to run on different hardware though.

you 'can' if you pipe it to a compression program and then out and there's less then * amount of data and the rest is zero'd
Link to comment
Share on other sites

Yes, but a compressed image won't boot if you stick the disk in another machine. To the best of my knowledge you can simple use the compressed image to deploy to another disc with another round of dd. If there is a lot of blank space it would be quicker to shrink the partition to fit on the smaller disc before running dd. For backups though, piping it to a compression utility would work fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...