Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-02-2004, 06:11 PM   #1
Registered: Mar 2004
Posts: 49

Rep: Reputation: 15
Help! Computer won't boot

I was trying to update my installation of Fedora core 2 to kernel 2.6.7, and after a reboot i got the error message "Error loading operating system". Now i cannot boot into windows xp or linux. My main hard drive is a 120gb and had Win XP and Fedora Linux on it. My second hard drive is a 60gb which is dynamic disk.

The last thing i did before the reboot was edit the grub configuration file so that the 2.6.7 kernel would use a ramdisk, since it wasn't working before. Also a while earlier I executed the following statement trying to resolve a problem i had:

dd if=/dev/zero of=/dev/hda bs=1022k count=1000

Apparently it changes something in the master boot record, and in retrospect executing this statement was probably a stupid idea.

I assumed that the problem was that my mbr got messed up somehow, so i put in my windows xp cd and executed fixmbr. It gave me a warning that the computer appears to have a non-standard or invalid master boot record and that continuing could damage my partition table. I ran it anyway but my computer still wouldn't boot. I went back into the winxp recovery console and ran partdisk and was shocked to see that hard disk 0 (the 120gb) is all unpartitioned space!

Is there any way to fix my boot sector so that my windows xp and linux partitions work again? Or at least get the data of the windows xp partition?
Old 07-02-2004, 06:38 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Re: Help! Computer won't boot

Originally posted by sureshot324
dd if=/dev/zero of=/dev/hda bs=1022k count=1000
That overwrote the MBR, the partition table and close to 1 GB
of data of your first partition as well with zeros ... where did
you get that line from?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
computer won't boot from cd garyozzy Linux - Hardware 9 09-27-2005 01:42 AM
Computer doesn't boot webwolf70 Linux - Hardware 2 08-02-2005 09:47 PM
Computer wont boot from Cd, Boot Floppys? Borg Swarm Ubuntu 1 05-14-2005 05:27 PM
Computer Will Not Boot From Cd Rom MIDAS OF TEMPLE Linux - Software 4 07-13-2003 04:18 PM
computer won't boot PlatinumRik Linux - Hardware 7 05-19-2003 12:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 AM.

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