View previous topic :: View next topic |
Author |
Message |
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Thu Jul 24, 2003 10:01 am Post subject: Can't install grub/lilo in my HardDrive's MBR |
|
|
I've tried to install lilo and grub multiple times into the MBR of my harddrive, it is a Seagate U4 series 8GB 5400rpm drive...
Even the Windows 2000 fixmbr command doesn't replace my old bootsector.
The only piece of software that has been able to replace my bootsector is the FreeDOS FDISK /MBR command....
Anybody a clue what's going on with this drive?
SYS SPECS: ASRock K7VM2, AMD Athlon XP 2200+, Infineon 256MB PC2100 CL2, Seagate U4 8GB.
BTW: I have tried another harddrive in the same system, which did allow it's MBR to be overwritten, thus the problem must be harddisk related.
DrZ signing of... |
|
Back to top |
|
|
cchapman Guru
Joined: 16 Jan 2003 Posts: 440 Location: Fremont, NE
|
Posted: Thu Jul 24, 2003 5:28 pm Post subject: |
|
|
UM I would get a new Hard Drive if you think that it is the problem... |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Thu Jul 24, 2003 5:41 pm Post subject: |
|
|
I don't think the harddrive is broken.
It passes all SMART test, and also a manual disk surface test.
Next, FreeDOS FDISK /MBR can replace the bootsector....
In Linux I have even tried dd if=/dev/zero of=/dev/hda bs=1024 count=1024, which should erase the first 1MB of the drive. But that didn't erase the bootsector...
So my guess is that Linux is maybe mis detecting the harddrive settings or something... I don't know... |
|
Back to top |
|
|
cchapman Guru
Joined: 16 Jan 2003 Posts: 440 Location: Fremont, NE
|
Posted: Thu Jul 24, 2003 5:48 pm Post subject: |
|
|
You said that windows 2000 fdisk /mbr couldnt write to the MBR either. |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Thu Jul 24, 2003 5:56 pm Post subject: |
|
|
Yes,
But FreeDOS FDISK /MBR can...
Bye,
DrZ |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Thu Jul 24, 2003 5:58 pm Post subject: |
|
|
Also
I didn't say it couldn't write to it... none of the utilities report any problems...
But when I reboot my computer the old bootsector seems intact, instead of having been replaced with a new one.
Bye,
DrZ |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Jul 25, 2003 2:56 am Post subject: |
|
|
Does your BIOS have an anti-virus function ?
This may write-protect the MBR if it is enabled. |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Fri Jul 25, 2003 9:57 am Post subject: |
|
|
Cyrillic,
I don't think so...
I cannot find that option in my BIOS (I have a newer AMI BIOS)...
Also why does FreeDOS do write to the MBR? If there was a VirusProtection option, FreeDOS should also not be able to write to the MBR...
Right? |
|
Back to top |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Fri Jul 25, 2003 12:20 pm Post subject: |
|
|
interesting, but try this
Code: | dd if=/dev/zero of=/dev/hda bs=446 count=1 |
and then try capturing the mbr to file to examine it with hexdump
Code: | dd if=/dev/hda of=mbr.img bs=446 count=1 |
also you might get better results if hda isnt mounted.
mabey thats why you could do in freedos? |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Jul 25, 2003 2:54 pm Post subject: |
|
|
sa wrote: | interesting, but try this
Code: | dd if=/dev/zero of=/dev/hda bs=446 count=1 |
and then try capturing the mbr to file to examine it with hexdump
Code: | dd if=/dev/hda of=mbr.img bs=446 count=1 |
|
That will just wipe the mbr (zero it) and then output the zeros to mbr.img (ie you will get a file of 446 zeros)
what output does running grub, then at the prompt type:
Code: | root (hd0,0) <-- change to your /boot partition
setup (hd0) |
give? _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
|