Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't install grub/lilo in my HardDrive's MBR
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Thu Jul 24, 2003 10:01 am    Post subject: Can't install grub/lilo in my HardDrive's MBR Reply with quote

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
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Thu Jul 24, 2003 5:28 pm    Post subject: Reply with quote

UM I would get a new Hard Drive if you think that it is the problem...
Back to top
View user's profile Send private message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Thu Jul 24, 2003 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Thu Jul 24, 2003 5:48 pm    Post subject: Reply with quote

You said that windows 2000 fdisk /mbr couldnt write to the MBR either.
Back to top
View user's profile Send private message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Thu Jul 24, 2003 5:56 pm    Post subject: Reply with quote

Yes,

But FreeDOS FDISK /MBR can...

Bye,
DrZ
Back to top
View user's profile Send private message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Thu Jul 24, 2003 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Jul 25, 2003 2:56 am    Post subject: Reply with quote

Does your BIOS have an anti-virus function ?
This may write-protect the MBR if it is enabled.
Back to top
View user's profile Send private message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Fri Jul 25, 2003 9:57 am    Post subject: Reply with quote

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
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Fri Jul 25, 2003 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Jul 25, 2003 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum