RE: restore boot block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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.




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux