Fedora Linux Support Community & Resources Center
Old 2nd September 2008, 05:57 AM
forbin Offline
Registered User
Join Date: Sep 2008
Posts: 2
Screwed Up My grub.conf Somehow <Solved>

When I boot my machine, it stops at a grub> prompt.

If I enter...
grub> find /v (and press TAB to autocomplete it)
Then it displays...
grub> find /var/
So evidently it thinks /dev/sda1 -- also called hd(0,0) -- is the place to boot from, since that is where the / filesystem is mounted.

The /boot filesystem is actually mounted on /dev/sda3, so I can get the system to boot by entering...
grub> root (hd0,2)
grub> kernel /xen.gz-2.6.18-8.el5
grub> module /vmlinuz-2.6.18-9.el5xen ro root=LABEL=/ rhbg quiet
grub> module /initrd-2.6.18-8.el5xen.img
grub> boot
After which the system comes up fine. But if I reboot, it stops at the grub> prompt again.

Any ideas?

My complete grub.conf looks like this:

title RedHat (2.6.18-8.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-8.el5
module /vmlinuz-2.6.18-9.el5xen ro root=LABEL=/ rhbg quiet
module /initrd-2.6.18-8.el5xen.img
Here's fdisk...

[root@hurley ~]# fdisk -l

Disk /dev/sda: 1497.1 GB, 1497198755840 bytes
255 heads, 63 sectors/track, 182024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 19122 153597433+ 83 Linux
/dev/sda2 19123 21162 16386300 82 Linux swap / Solaris
/dev/sda3 * 21163 21191 232942+ 83 Linux
And here's parted...

[root@hurley ~]# parted
GNU Parted 1.8.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print all

Model: DELL PERC 5/i (scsi)
Disk /dev/sda: 1497GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 157GB 157GB primary ext3
2 157GB 174GB 16.8GB primary linux-swap
3 174GB 174GB 239MB primary ext3 boot

Error: Unable to open /dev/md0 - unrecognised disk label.

Reply With Quote
Old 2nd September 2008, 06:08 AM
forbin Offline
Registered User
Join Date: Sep 2008
Posts: 2
Well, crap. Never mind. Right after I posted this question, I found the solution in another thread. I ran...
# /sbin/grub-install /dev/sda --recheck
..and even though it said there were no errors detected, it fixed the problem. Go figure.
Reply With Quote
Old 28th October 2008, 10:35 PM
pwalden Offline
Registered User
Join Date: Aug 2005
Location: Washington (the state), USA
Posts: 375
I have had a successful F9 instance for several months, then suddenly this "stops at GRUB" problem occurs. I cannot remember if it was immediately after a yum update or not, as I routinely do yum updates, almost every day.

I tried the above grub-install process. But the script wanted a /sbin/grub. I created a soft link from /usr/sbin/grub to /sbin/grub. However, I now get a a the following

# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find a device for
What can I do now?
Reply With Quote

<solved>, grubconf, screwed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
It was working fine until I screwed up my xorg.conf / display settings Anding Hardware & Laptops 5 29th June 2008 12:48 AM
Safe Mode? Changed xorg.conf; now screwed. pairajacks Installation, Upgrades and Live Media 2 26th November 2006 06:43 AM
Help! I Screwed up my grub :( RichGags Using Fedora 1 17th February 2006 07:13 AM
Ive screwed my xorg.conf Clunixchit Using Fedora 4 10th October 2005 02:03 AM
Screwed up my xorg.conf file dhamilton Using Fedora 6 28th September 2005 05:38 PM

Current GMT-time: 10:59 (Wednesday, 20-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat