Fedora Linux Support Community & Resources Center
  #1  
Old 6th December 2009, 03:14 AM
bergt2 Offline
Registered User
 
Join Date: Dec 2009
Posts: 6
windows_xp_2003firefox
Stuck at grub console after install

So, I installed F12 x86_64 and the installation completed without an error, but when I reboot it stops at the grub console. When I try to do things in the console I get various errors mainly "error 21: selected disk does not exist"; I don't really know what I'm doing in grub, so it might just be me doing something wrong. I have tried reinstalling and the error occurs both when I install with the kde live cd and with a dvd usb.
Any help or suggestions would be appreciated.

I have two hard drives one is windows xp (sdb), and the other I am installing fedora on (sda). I selected sda to install and boot on, and used the default partition table.
At the grub console when I type root it says "(hd0,0) Unknown partition type 0x0" or something along those lines.

This is my grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_tsb-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.5-127.fc12.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.31.5-127.fc12.x86_64 ro root=/dev/mapper/vg_tsb-lv_root LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.5-127.fc12.x86_64.img
title Other
rootnoverify (hd2,0)
chainloader +1

Last edited by bergt2; 6th December 2009 at 11:54 PM. Reason: adding information
Reply With Quote
  #2  
Old 7th December 2009, 07:19 PM
bergt2 Offline
Registered User
 
Join Date: Dec 2009
Posts: 6
linuxfedorakonqueror
I'm bumping this because I added more information to the original post. I also tried installing using non LVM partitions, but that did not help. Anyone know why grub isn't working properly?
Reply With Quote
  #3  
Old 7th December 2009, 07:34 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Quote:
Originally Posted by bergt2

...when I reboot it stops at the grub console.
Quote:
Originally Posted by bergt2

At the grub console when I type root it says "(hd0,0) Unknown partition type 0x0" or something along those lines.
Hello bergt2,

So booting stops at a working grub> prompt. And as far as GRUB is concerned, (hd0,0) is not the boot partition. But you still may be able to start the system from there, and then re-install the GRUB boot loader from a terminal in the running system. Try this idea at that grub> prompt...
Code:
grub> find /grub/stage1
I'm hoping that produces a result that is your Fedora boot partition. If so, then use that partition in this at the next grub> prompt...
Code:
grub> configfile (hdx,y)/grub/grub.conf
You, of course, change x & y to what you learned from the find command. It might boot the system. If it boots, then re-installing the GRUB boot loader might correct all of this.

P.S.: If it doesn't boot, but you did get a result from the find command, then you may need to edit the grub.conf file because it thinks (hd0,0) is the Fedora boot partition. I don't know how this could happen, really. Have you changed the drive order in BIOS or with cables?

Last edited by stoat; 7th December 2009 at 07:38 PM.
Reply With Quote
  #4  
Old 7th December 2009, 08:26 PM
bergt2 Offline
Registered User
 
Join Date: Dec 2009
Posts: 6
windows_xp_2003firefox
Thanks for the reply stoat,
When I enter find /grub/stage1 at the grub console it returns "error 15: file not found" which is strange because when I boot in rescue mode with my usb-drive that file is in /boot/grub/.

And, no I have not changed anything in the bios or hardware since the install.

Also, in case this info helps, this is the result of fdisk -l:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d72de

Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 14593 117013441 8e Linux LVM

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x01920192

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2497 20057121 7 HPFS/NTFS
/dev/sdb2 2498 19930 140029375+ 83 Linux

Disk /dev/dm-0: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 117.7 GB, 117704753152 bytes
255 heads, 63 sectors/track, 14310 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-3 doesn't contain a valid partition table

My two hard drives show up properly as sda and sdb, but I don't know what all those /dev/dm-x are, could they be causing a problem?
Reply With Quote
  #5  
Old 7th December 2009, 08:39 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Quote:
Originally Posted by bergt2

but I don't know what all those /dev/dm-x are, could they be causing a problem?
No, those are normal in the fdisk when an LVM physical volume is present. Those represent the logical volumes in the PV.

Now, back to the problem. So the grub> thing was a bust. I recommend that you download and create a Super Grub Disk. It's a free utility that can boot a GRUB-booted Linux when the only thing wrong with it is the boot loader. It works by finding the grub.conf file (like you tried to do) and launching it configfile style (like I wanted you to do). Anyway, even when that fails for some reason (bad or missing grub.conf), the Super Grub Disk can still attempt to directly boot the kernel (which you can also do manually, but a lot more typing involved). The Super Grub Disk can do some other useful things. It's not a beautiful GUI app. It's a menu-driven thing with menu choices that could have been named better IMO. But it's still handy to have around.

P.S.: I'm still wondering why the grub.conf thinks (hd0,0) is the Fedora boot partition, but commands at the grub> prompt don't agree. Make sure your external drives are not plugged in when doing things like that.

Last edited by stoat; 8th December 2009 at 03:03 AM.
Reply With Quote
  #6  
Old 8th December 2009, 02:31 AM
cornelius785 Offline
Registered User
 
Join Date: Mar 2008
Posts: 17
windows_xp_2003ie
I experience this exact same problem and new it was grub, based on my loooong ordeal (to say the least) in going from fedora 9 to fedora 10. In my case I booted from a live KDE disk, mounted various filesystems, and reinstalled grub using the <grub> command instead of the <grub-install> command (as that failed). In my particular system, the commands were:

mkdir -p /mnt/sysroot
mount /dev/VolGroup00/LogVol00 /mnt/sysroot
mount -o bind /dev /mnt/sysroot/dev
mount -t proc none /mnt/sysroot/proc
mount -t sysfs none /mnt/sysroot/sys
mount /dev/sda1 /mnt/sysroot/boot
chroot /mnt/sysroot
grub
root (hd0,0)
setup (hd0)


If I'm remember correctly, this should also allow 'mkinitrd' (in the event that needs to be rebuilt..., but not in this case) and 'yum' (which may not be a bad idea to run, provided networking works) to functionally normally. you should verify that 'hd0' is where grub is located. I also had trouble finding stage_1, but I seem to remember changing the path that grub command prompt was looking into.

One last thing, I noticed my /etc/mtab file (and/or /etc/fstab) was different after the upgrade to fedora 12 before it was fixed. Since I make backups of various directories (from my ordeal of going from fedora 9 to 10) including /etc/*, I reverted to the old file, but I'm not sure if you keep a backup of that directory and wouldn't recommend 'blindly' following me before trying something similar to the commands I suggested earlier.
Reply With Quote
  #7  
Old 8th December 2009, 02:35 AM
bergt2 Offline
Registered User
 
Join Date: Dec 2009
Posts: 6
linuxfedorakonqueror
I don't have any external drives, just the two sata drives, but my bios recognizes my usb-drive as a hard drive. Do you think that that would be causing the problem?

I made a super grub disk on my usb-drive, and I'm having some problems with it. When I try to boot the kernel directly like you suggested it gives an error 15 because it cannot find /etc/fstab. Any other options I try to do also result in an error 15. So, I went to the show partitions option and it only showed my usb-drive and 160gb hard drive and not the hard drive that fedora is installed on.
Reply With Quote
  #8  
Old 8th December 2009, 02:54 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Quote:
Originally Posted by bergt2

...but my bios recognizes my usb-drive as a hard drive. Do you think that that would be causing the problem?
Maybe. I've read posts describing how even an SD card in a card reader changed the enumeration of the drives enough to foul up booting. For example why would your grub.conf name the Fedora partition (hd0,0) and the Windows partition (hd2,0) while you have only two hard drives (supposedly sda and sdb)? It makes me wonder anyway. Did you have that thing plugged in when you installed Fedora? But still, that shouldn't stop the find command or the Super Grub Disk from finding the Fedora boot partition. I'm still thinking about that, too.
Reply With Quote
  #9  
Old 8th December 2009, 03:56 AM
bergt2 Offline
Registered User
 
Join Date: Dec 2009
Posts: 6
linuxfedorakonqueror
Yes, I put the dvd iso on my usb-drive using unetbootin, so that was what I was using to install.
And thanks to cornelius too for the reply.
I booted in rescue mode and started the grub shell. When I ran "find /grub/stage1" it returned (hd0,0), so I successfully completed "setup (hd0)" like cornelius described. Now when I boot it stops before the boot screen with an error 21 and doesn't make it to the grub console.
Reply With Quote
  #10  
Old 9th December 2009, 02:26 AM
bergt2 Offline
Registered User
 
Join Date: Dec 2009
Posts: 6
linuxfedorakonqueror
Well, I think it must have been a problem with my hard drive because I tried installing on my other hard drive and now it's working fine.
Reply With Quote
Reply

Tags
console, grub, install, stuck

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
grub didnt install to teh right place by default...now im stuck.. tnewman1972 Installation, Upgrades and Live Media 2 16th January 2007 01:26 PM
Stuck on GRUB Sam17 Installation, Upgrades and Live Media 4 12th October 2006 04:41 AM
Getting (stuck at) just "GRUB" after FC4 install. lothario EOL (End Of Life) Versions 1 23rd March 2006 08:35 AM
Stuck on Grub Raafi Installation, Upgrades and Live Media 29 9th December 2005 01:24 AM
stuck on GRUB after FC3 install on P3 gog93rpf EOL (End Of Life) Versions 3 1st June 2005 05:20 PM


Current GMT-time: 05:55 (Friday, 22-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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