LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2003, 01:39 AM   #1
areeves88
LQ Newbie
 
Registered: Jan 2003
Location: Santa Barbara, CA
Posts: 3

Rep: Reputation: 0
Angry No boot sector found, error at boot



I've searched up and down for a while now, and maybe im retarded, but cant find enough info to solve my problem. So please forgive me if im posting a question that has been asked thousands of time before.

Long story short, somehow i messed up my MBR bad enough to give me an error message that says "No boot sector found on hard disk" + "No bootable devices" on startup of my laptop. I have my Red Hat 8.0 installation CD's, and have read that its possible to re-install GRUB after entering the "linux rescue" mode. What i havent been able to figure out, because im such a newbie, is where to locate the GRUB RPM, and how to install it back to my MBR. I know for sure that my Linux and WinXP partitions are still there, something just got screwy in my MBR. Can someone please walk me through this step by step. I basically know how to navigate through directories and use RPM, but mounting is a new concept for me and from what ive tried, mounting another CD from my second CD drive doesnt seem to work in the "rescue" mode. But then again, i may be doing it all wrong because ive never sucessfully mounted a CD or Floppy before. Thank you soo much in advance for any help or ideas you may have.
 
Old 01-17-2003, 06:02 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
boot up with the rescue disk. login as root.

type in grub (it will probe devices and give you the grub prompt )

#Assuming your boot partition is /dev/hda7 substitute #accordingly
root (hd0,6)
setup (hd0)
quit

That should do it. Assuming that all that's gone is the boot code in the MBR.
 
Old 01-18-2003, 07:45 PM   #3
areeves88
LQ Newbie
 
Registered: Jan 2003
Location: Santa Barbara, CA
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, im not sure if im logged in as root. Im sorry, i probably should have put this in the newbie section. But repairing my MBR seemed a little more advanced. Can someone please post the steps on how to login as root so i can do this correctly. Is GRUB on the first RH8 install CD (the one i use to boot, cause my MBR is all messed up) or should i put one of the other 5 install disks in my second drive? Also, you said that once i get the prompt i can fix it from there. But i read another post where someone found the package and used 'grub-install /dev/hda'. Which method do you think is better? Or if they're the same, which is easier for a newbie like me? Thanks.

Andrew
 
Old 01-18-2003, 08:13 PM   #4
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Boot off your Red Hat install disk, and choose the option for "rescue system" or "boot installed system" or something like that. Eventually, a log in prompt will come up. Type root, hit enter, then enter your password. If you're totally new to Linux, you will notice that you are typing blind, meaning that no asterisks come up for your password. This can be a bit disconcerting at first, but its normal. Press enter when you're done typing your password and you're in.
 
  


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
Boot Sector Problem Synesthesia Linux - Software 1 11-01-2005 06:49 PM
Boot Sector phoenix7 Linux - General 1 11-25-2004 10:22 AM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 05:02 PM
Re:do I need liloand a /boot sector MunCH Slackware 3 06-26-2004 10:22 AM
"LI" from boot floppy? Can't load XP or Linux. Damaged MBR or boot sector or ...? SparceMatrix Linux - General 10 09-27-2002 01:20 PM

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

All times are GMT -5. The time now is 03:53 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