cbagger01
Group: Members
Posts: 4264
Joined: Oct. 2003 |
|
Posted: Mar. 29 2004,19:03 |
|
As I understand it, your dd command is correct.
Assuming that you are running with root or superuser authority (type 'sudo su' on a blank line in the command line window), it should work.
The dd command works as follows:
dd is the command name
if=/dev/hda is the FIRST IDE controlled device in your computer (Primary IDE Controller, Master drive) and is usually BUT NOT ALWAYS where your C:\ drive is found. However, it is almost always where your boot sector is located. CDROMs are usually found at /dev/hdc (Secondary IDE Controller, Master drive)
of=/boot/bootsector.ide is the full path and file name of your backup of the MBR sector.
bs=512 means that you are transferring the data in 512 byte blocks. Byte-sized chunks
count=1 means that you are not backing up the entire device, just the first block, IE: the first 512 bytes.
The restore command syntax is the same thing, only the copy is in the reverse direction.
Good Luck.
|