On Wed, 15 Jan 2003, Gary Stainburn wrote: > Hi folks, > > I've just boobed big time > > Instead of typing > > dd if=boot.img of=/dev/fd0 bs=1024 > > I typed > > dd if=boot.img of=/dev/hda bs=1024 > > Now I recon I've stuffed the MBR including the partition table, and the 1st > 1023 blocks of /boot. > > While I've still got by PC booted everything's working fine, and I have access > to the system. However, it's obvious that I can't reboot. > > Can anyone suggest a way of restoring the MBR and partition table and how I > can rebuild the /boot partition.
FIRST, take copious notes as to what you try since, if it works, the rest of would like to know. :-) 1) run "fdisk" *right* *now* and record the values. theoretically, you should still see the valid values since that info is cached by the kernel. 2) also *theoretically*, if those values still look good, you should be able to "w" from within fdisk to at least rewrite a valid partition table. that's where i would *start*. this does nothing regarding /boot, but one thing at a time. rday p.s. are you sure it's /boot that's your first partition on the disk? what does an "ls" of that directory show? -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list