LinuxQuestions.org
Help answer threads with 0 replies.
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 04-01-2008, 09:39 AM   #1
crrazychicken
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
GRUB just plain won't boot by itself


I've messed up the MBR of a video surveliance device. I've installed GRUB in the MBR and now I get a GRUB> prompt when the PC starts, I can then get it to boot by typeing in

root (hd0,0)
setup (hd0)
configfile (hd0,0)/boot/grub/grub.conf



I guess it's not seeing hte config file and whe it does it'll kick off and boot right up, I figred this command using the Super Grub Disk. I've also booted to knoppix LiveCD and done what's suggested in another thread which is to boot to a liveCD, and run grub with these commands

To install grub:
grub opens the grub shell
root (hd0,0) tells grub that the /boot directory is on drive 1,
setup (hd0) puts grub on the mbr

with no luck

Any help or suggestions would be greatly appreciated, I've tried just about every GRUB command but the right one I think
 
Old 04-01-2008, 09:48 AM   #2
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
What distro are you using?
 
Old 04-01-2008, 09:48 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
well it depends on whether /boot partition or sub-folder to / is truly on first partition.

2) use that live cd again to run a partition tool to see what your structures are.

3) I prefer
su
grub
root (hdx,y)
setup (hd0)
quit

using a live cd...where hdx,y is the partition that truly contains /boot.

4) when you boot that live cd can you post the output of
fdisk /dev/hda
fddisk /dev/sda

just in case we do not have a true linux structure

5) alternatively ....you can follow my troubleshooter to see what partitions are etc

6) I prefer not to use a config file and we have not seen your error messages to know if you have one.

the live cd...can list the contents of hda1 or sda1 /boot/grub/menu.lst

Knoppix has icons on the desktop that can be mounted read only when you click on them
 
  


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
How to set Grub not to auto boot any OS without Grub Boot menu shown ussr_1991 Linux - Software 2 09-01-2007 08:36 AM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
need a dmesg.boot error translated into plain english mipia *BSD 3 09-11-2003 07:20 AM

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

All times are GMT -5. The time now is 03:04 PM.

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