Disk images

Gary W. Swearingen garys at opusnet.com
Fri Apr 14 16:14:11 UTC 2006

Daniel Carrera <daniel.carrera at zmsl.com> writes:

> 1. dd if=/dev/hda of=/dev/hdb count=1 bs=16k
> 2. sfdisk and fdisk to fix the partition table.
> 3. cp files.
> Will step (2) wreck grub again?

I don't know sfdisk, but AFAIK, Linux fdisk only touches the partition
table, but I'm not 100% positive it won't with uncommon commands.

But step 2 won't really wreck grub's bootloader, because step 1 has
just wrecked it (except for stuff in /boot/grub).

> If I must overwrite more than the first 446 bytes for Grub, then I might as well overwrite the first track and then fix
> the partition table.

I didn't say you must overwrite more than that; I said I would.  I'd
let the grub program install the grub bootloader instead of messing
with "dd", etc.

More information about the ubuntu-users mailing list