Re: Reformatting hard disk.



"john@xxxxxxxxxxxxxxxx" <john@xxxxxxxxxxxxxxxx> writes:
After various experiments, including an attempt to install Windows
2000 (it failed) I can no longer boot from /dev/hda. I have
reassigned /dev/hdb as my hard drive boot device in the bios.

Now I want to do a low level format on /dev/hda and start all over.

No need for a low-level format.

I
have already tried the trick of using a DOS fdisk from a floppy to
zero out the MBR:
A: fdisk /mbr
That may have made things worse, I don't know.

You should also be able to use one of the Linux partition tools to
repartition the drive.

There is a dd command that will zero out the mbr first block but I
forget what the exact string is.

dd if=/dev/zero of=/dev/hda bs=64k count=1

should be sufficient.

Actually the partition table has never been a problem in my
experience, but sometimes I have had to erase the start of the
partition (because, e.g., the md driver would ignore the partition
type and just grab the partition). You can do that with a similar
command, but use the partition device instead of /dev/hda).

When I try to use it in a normal manner as the boot device LILO gives
me an L followed by
series of 99 99 99 etc.

My guess is that you have the first stage of LILO in the MBR, but the
rest has been overwritten. Just reinstalling LILO (maybe after
installing a Linux distro) should fix that.

- anton
--
M. Anton Ertl Some things have to be seen to be believed
anton@xxxxxxxxxxxxxxxxxxxxxxxxxx Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html
.



Relevant Pages

  • Re: boot.ini and msconfig cant find 2nd boot partition ?
    ... branded BIOS by Phoenix Technologies) the HARD DRIVE boot ... just "boot order" - which refers to DEVICE boot order, ... "hard drive boot order" - which prioritizes just the hard drives for ... you will know which partition is supplying the boot menu. ...
    (microsoft.public.windowsxp.general)
  • Re: copying boot drive from IDE to SATA hd ?
    ... ...or will Ghost mark the IDE0 had partition inactive for me? ... at the head of the Hard Drive Boot Order, ... The only caveat in your case is that the clone OS not see its ... it can be started up and see its "parent" with no ill ...
    (microsoft.public.windowsxp.general)
  • Re: boot.ini and msconfig cant find 2nd boot partition ?
    ... Partition Magic 8 basically shows the same, ... branded BIOS by Phoenix Technologies) the HARD DRIVE boot ... just "boot order" - which refers to DEVICE boot order, ... "hard drive boot order" - which prioritizes just the hard drives for ...
    (microsoft.public.windowsxp.general)
  • Re: boot.ini and msconfig cant find 2nd boot partition ?
    ... Partition Magic 8 basically shows the same, starting with 1 isntead of 0. ... Partition Magic follow the hard drive boot order and not the ... BIOS for its hard drive boot order, ... "hard drive boot order" - which prioritizes just the hard drives for ...
    (microsoft.public.windowsxp.general)
  • Re: NTLDR missing unable to load boot disk
    ... IDE channel, Secondary IDE channel, Master HD, Slave HD, Primary partition, Extended partition, Active partition, non-Active partition - anywhere. ... What is necessary is that boot.ini file (of the active partition on the hard drive - having an MBR - that is nearest the top of the BIOS's hard drive boot order) point to the folder that contains the OS (usually named ...
    (microsoft.public.windowsxp.setup_deployment)