Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had one of my two mirrored sata disk die on me. Now when grub boots it doesn't load the menu. So I have reloaded the grub onto the /dev/sda. My configuration is:
/dev/sda1 is /boot
/dev/sda2 is swap
/dev/sda3 is /
I have run both grub-install and grub to reinstall grub. I am running version .97 of grub.
I have run grub:
grub
grub> root (hd0,2)
grub> setup (hd0,0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/grub.conf "... succeeded
Done.
> quit
reboot
I can get the menu to load once grub has loaded and is at the command prompt by typing:
configfile /grub/menu.lst
my device.map looks like:
[root@calvin grub]# cat device.map
(hd0) /dev/sda
my grub.conf looks like:
# 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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/md2
# initrd /initrd-version.img
#boot=/dev/md0
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.20-1.2952.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2952.fc6 ro root=/dev/md2 rhgb quiet
initrd /initrd-2.6.20-1.2952.fc6.img
title Fedora Core (2.6.20-1.2948.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2948.fc6 ro root=/dev/md2 rhgb quiet
initrd /initrd-2.6.20-1.2948.fc6.img
I should be getting a replacement drive soon to get md re mirrored. But I can't figure out whyt he menu isn't loading.
Bigrigdriver you gave me enough to figure out the rest... I typed:
grub
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2
/boot/grub/grub.conf"... succeeded
Done
grub> install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /grub/grub.conf
grub> reboot
....
Jon
I am having a similar problem here... only when I attempt to:
configfile /boot/grub/menu.lst
it clears the screen - attempting to load something and comes immediately back to the grub> prompt. I checked out menu.lst and it exists... so I have no clue what could be wrong here.
I am trying to boot to Fiesty on (hd0,1) this what I did:
grub> root (hd0,1)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
so I attempt like above:
grub> install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst
and now either grub> reboot doens't fix it or grub> configfile /boot/grub/menu.lst clears the screen bringing me back to the grub> prompt...
From your description it sounds like grub is not finding menu.lst or the other files it needs keep going. As a result grub goes to the grub> prompt to give you a chance to boot manually.
At the prompt enter: grub> find /boot/grub/stage1, the result will be something like (hd0, 1). Where hd0 is the drive and 1 is the partition that has all the files that grub needs to work. If instead you get Error 15: File not found, then you probably have a boot partition and should try grub> find /grub/stage1 which will return the drive and partition information.
This becomes your root drive, not to be confused with /. All it takes to install grub after that is two commands.
grub> root (hd0,1)
grub> setup (hd0)
You don't need to type the install command, that is done automatically for you as part of the setup command. At this point you should be able to get a menu after entering the reboot command.
When you were using the configfile command it was not finding menu.lst which is actually a symlink to grub.conf. Not finding it causes grub to go back to the grub> prompt.
If you still have trouble, post the results of fdisk -l /dev/sda. If you are using multiple drives, let us know what the others look like too.
From your description it sounds like grub is not finding menu.lst or the other files it needs keep going. As a result grub goes to the grub> prompt to give you a chance to boot manually.
At the prompt enter: grub> find /boot/grub/stage1, the result will be something like (hd0, 1). Where hd0 is the drive and 1 is the partition that has all the files that grub needs to work. If instead you get Error 15: File not found, then you probably have a boot partition and should try grub> find /grub/stage1 which will return the drive and partition information.
This becomes your root drive, not to be confused with /. All it takes to install grub after that is two commands.
grub> root (hd0,1)
grub> setup (hd0)
You don't need to type the install command, that is done automatically for you as part of the setup command. At this point you should be able to get a menu after entering the reboot command.
When you were using the configfile command it was not finding menu.lst which is actually a symlink to grub.conf. Not finding it causes grub to go back to the grub> prompt.
If you still have trouble, post the results of fdisk -l /dev/sda. If you are using multiple drives, let us know what the others look like too.
setup (hd1) or setup (hd3) both succeed, but once again ultimately do not give me a menu. I can't post the results of fdisk because I can't get a unix like console. please see: http://www.linuxquestions.org/questi...nu.lst-601794/
The amount of time I have spent on this is aggravating.. I could've already re-installed the ubuntu system and had it up and running by now....
hey, i know this thread is a bit outdated but i have a similar issue with grub 1.98. however when i run the find /boot/grub/stage1 command i receive an error "unknown command 'find'." i am new to linux and grub and im not sure what to do. any help is appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.