LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SUSE - Grub Problem (https://www.linuxquestions.org/questions/linux-newbie-8/suse-grub-problem-176624/)

Harryc 05-01-2004 06:56 AM

SUSE - Grub Problem
 
I've just (network) installed the latest version of SUSE on an IBM Thinkpad. I let SUSE partition and setup my hard drive. The last part of the installation I left unattended so I am not sure what happened, but when I came back to the machine grub was attempting to boot from floppy. The only boot choice in fact is floppy. How do I fix Grub to boot from my hard drive. All I have access to at the present time is the SUSE installation CD that I created.

Edit: I was able to boot into SUSE using the installation CD...now how do I repair Grub? Thanks in advance!

grcunningham 05-01-2004 09:13 AM

OK, I dont know SUSE, but I can tell you how to
do this on RedHat, maybe it works the same in
Suse

Boot from the installation CD
when the screen comes up asking whether you want
a graphical or text install, type: linux rescue

this searches your machine and finds your current filesysten,
and mounts it on /mnt/sysimage
from here you can change your root to the image:
chroot /mnt/sysimage

now you can edit your /etc/grub.conf to install to /dev/hda1

and run
/sbin/grub-install

make sure you read everything thats on the screen, maybe
Suse mounts the filesystem at a different point...im not sure

hope this helps

grcunningham 05-01-2004 09:15 AM

i just noticed that you can boot into linux using
the CD

in this case, it is easy

just check your /etc/grub.conf

edit if necessary, which it probably is

and run
/sbin/grub-install

reboot, and you're IN THE HOUSE.....

Harryc 05-01-2004 12:32 PM

Thanks for the reply. Here's my current grub.conf


root (hd0,0)
install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0) /grub/stage2 0x8000
(hd0,0)/grub/menu.lst
quit


So, given your advice, I erase all of that and then replace it with;

and run
/sbin/grub-install


Is this correct?

Thanks!

Edit: BTW, here is the contents of menu.lst

color white/blue black/light-gray
default 0
timeout 8
gfxmenu(hdo,0)/message

title Floppy
root(fd0)
chainloader +1





All times are GMT -5. The time now is 10:06 AM.