fdisk: alternate boot code

Toni Schmidbauer toni at stderror.at
Wed Aug 6 14:26:45 PDT 2003


On Wed, Aug 06, 2003 at 08:22:43AM +0000, chris.p.ward at ntlworld.com wrote:
> I'd like to use fdisk and supply an alternate boot code using the -b option.  How do I save the existing boot code within the MBR so as to pass it to fdisk though?  I'm guessing I can use dd but I'm not sure how.

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

hth,
toni
-- 
Behandle die Menschen, als wären sie, was sie sein | toni at stderror dot at
sollten, und du wirst ihnen helfen, zu werden, was | Toni Schmidbauer
sie sein können.  - Johann Wolfgang von Goethe     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030806/e762929a/attachment.bin


More information about the freebsd-questions mailing list