LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2004, 08:57 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
MBR erases when power is off


Have a slight problem with my harddrive, seems everytime the power is shut off to my computer the MBR gets scrambled and booting with a boot floppy does not work since it cant read the partition tables off the dirve!

Found that by using this install disc which came with my maxtor 100 gig drive has a update MBR code which fixes everything and Ill I need to do is boot with a floppy then reinstall a boot manager.

I use GRUB as a boot manager and dual .. rather quad boot between xp,2k,slack,debian... Ive reinstalled and completely done zero filled the drive several times and nothing seems to work.

Could this be related to small 100 meg /boot partitions or is it a problem with grub??

My drive layouts are usually...

Primary -15 gig win2k
Primary -15 gig winxp
Primary - 100 meg /boot -slack
Extended for the rest
7 gig / -slack
100 meg /boot - deb
5 gig / -deb
and other partitions for testing out other distro's seeking the one that fits me best.
 
Old 01-23-2004, 10:09 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Its not related to your boot partition. Is it just when you poweroff? If you do a warm boot does the computer sucessfully bootup again?

Make sure the motherboard's BIOS is set for auto detect for the drive. If it only happens when you poweroff the computer maybe the CMOS battery is bad.
 
Old 01-24-2004, 12:03 AM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
It occasionally does it from a "warm boot" - Setting in cmos are set correctly and battery voltage (cmos) is good, onboard voltage and I checked it with multimeter.... the board itself is only bout few months old.

Ive only just lately had this problem ... and still just lately been using a seperate boot partition and GRUB... before it was just one large root and lilo.
 
Old 01-24-2004, 07:31 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Having a seperate /boot partition shouldn't effect the MBR.
Does it happen more with windows vs linux?
Is the boot sector virus detector enabled in the BIOS i.e if there is one? Slim chance that you could have a worm or a virus on the computer.
Check the partition table using fdisk to see if everything lines up correctly
fdisk -l /dev/hda (change hda if not correct device)

If your interested in what the MBR really is all about plus partition tables the check this out:
http://www.datarescue.com/laboratory/partition.htm
 
Old 01-24-2004, 03:32 PM   #5
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
Just a while ago I shutdown my computer by accident instead of restarting it and all that was on it was a 15 gig partition for windows 2k and a 86 gig or so of just a formated fat32 partition.

Upon boot windows started normally then on the white screen with the win 2k logo and all it came to the blue screen of death saying inaccessable boot deivice. When a linux OS was on there it would boot the kernel but would not be able to mount the root partition becuase of erros such as I/O Drive read error and such...

Ive went to maxtors site and dl a program that does extensive test on the drive and all passed with flying colors.


Doing a fdisk /MBR has the same effect as booting with the install disk to setup my harddrive and updating the MBR code... with linux on there I could do this and then boot with a resuce disk and reinstall a boot manager and all would be fine till I shut it down.
If this is due to a worm or virus, how would I go about removing it from the MBR?
Ive done zero filled my drive, formated a unknown amount of times, installed and reinstalled some many times, rewritten the MBR, I guess I could just do a zero fill again then a high level format, install dos on it stead of wasting my time installing linux only to have to reinstall once I hit that power button.

Currently I have 2k on it which is unbootable and cannot reinstall unless I reformat.

Last edited by Zero-0-Effect; 01-24-2004 at 03:40 PM.
 
Old 01-24-2004, 07:05 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Sorry, I'm puzzled and out of suggestions.
 
Old 01-24-2004, 09:05 PM   #7
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
ME TOO!!!

Ive sent a email to maxtor... I'm sure they wont help hehe...

For now ill just have to use only linux as with windows I have no way to boot if the mbr gets erased (that and ive reloaded the OS so many times I could do it in my sleep).. and ill just leave the computer on...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 05:28 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 08:18 AM
[SOLVED] [vi|man|less] covers/erases previous screen output zedmelon Linux - Software 4 01-10-2005 06:11 PM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration