On Fri, 20 Jun 2003, Fong Vang wrote: > Thanks for the response but it's not the answer to the question I was > looking for. I wanted to know how I could wipeout enough of the bootblock > to cause PXE Boot to occurr without damaging the partition table. > You can dump the partition table with sfdisk, restore it with sfdisk. Note that this may harm the contents of existing partitions if you have any secondary/extended partitions. OTOH it may be safe. > I'm not asking about how to partition in the %pre section. We are already > doing this because we need to bypass anaconda's partition and formatting > routines to support filesystems that are not supported by RedHat 7.1. > > -----Original Message----- > From: John [mailto:red@xxxxxxxxxxxxxxxxxxxxxxx] > Sent: Thursday, June 19, 2003 4:27 PM > Cc: 'kickstart-list@xxxxxxxxxx'; anaconda-devel-list@xxxxxxxxxx > Subject: RE: restore boot block > > > On Thu, 19 Jun 2003, Fong Vang wrote: > > Do not reply directly to me. _I_ read the list, and one copy is quite > enough. > > > > I tried wiping the first 446 bytes and bytes 511-512 with these commands: > > > > dd if=/dev/zero of=/dev/hda bs=446 count=1 > > dd if=/dev/zero of=/dev/hda bs=1 skip=510 count=2 > > > > I then did a reboot and PXE boot did not occur as expected. The machine > > just sits there not knowing what to do. > > I repartition drives like this, and it works every time. It's true I'm > not using kickstart, but this can be done in %pre - it's the first place > I ever tried it. > > > I've not read this thread at all closely (I tend to ignore q's asked in > more than one place), and I've long forgotten what PXE has to do with > it. However, this _does_ clobber the partion table and make the disk > unbootable (which is why I have the dd there), and it does leave me with > a valid partition table (constructed just the way I want it), still > unbootable until I get round to installing grub a few minutes later. > > > > export BootPartition=25 RootPartition='' > function partition_disks() > { > #fdisk -l /dev/hda > dd if=/dev/zero count=1 of=/dev/hda > fdisk /dev/hda <<. > d > 1 > d > 2 > d > 3 > d > 4 > n > p > 1 > 1 > +${BootPartition}M > n > p > 2 > > ${RootPartition} > p > w > > > This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) > service. For more information, visit us at www.zantaz.com. > IMPORTANT: This electronic mail message is intended only for the use of the > individual or entity to which it is addressed and may contain information > that is privileged, confidential or exempt from disclosure under applicable > law. If the reader of this message is not the intended recipient, or the > employee or agent responsible for delivering this message to the intended > recipient, you are hereby notified that any dissemination, distribution or > copying of this communication is strictly prohibited. If you have received > this communication in error, please notify the sender immediately by > telephone or directly reply to the original message(s) sent. Thank you. > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list > -- Please, reply only to the list. Join the "Linux Support by Small Businesses" list at http://mail.computerdatasafe.com.au/mailman/listinfo/lssb