LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-01-2004, 07:56 AM   #1
Harryc
Member
 
Registered: Dec 2002
Location: New York, USA
Distribution: OpenSUSE 10.0
Posts: 220

Rep: Reputation: 32
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!

Last edited by Harryc; 05-01-2004 at 09:15 AM.
 
Old 05-01-2004, 10:13 AM   #2
grcunningham
Member
 
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103

Rep: Reputation: 15
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
 
Old 05-01-2004, 10:15 AM   #3
grcunningham
Member
 
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103

Rep: Reputation: 15
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.....
 
Old 05-01-2004, 01:32 PM   #4
Harryc
Member
 
Registered: Dec 2002
Location: New York, USA
Distribution: OpenSUSE 10.0
Posts: 220

Original Poster
Rep: Reputation: 32
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




Last edited by Harryc; 05-01-2004 at 01:40 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE 10.0- GRUB boot loader problem soc_kev SUSE / openSUSE 1 10-25-2005 07:52 PM
problem reinstalling grub in suse thearchitect Linux - Newbie 1 08-21-2005 05:33 PM
Problem with GRUB (lilo also) in SuSE (as well as others) Kelvie Linux - Newbie 22 05-25-2004 03:12 AM
SuSE 9.1 multiboot GRUB Problem???? orco Linux - Newbie 2 05-05-2004 07:48 AM
SuSE boot problem grub and 2.6.3 deuce868 Linux - General 1 03-01-2004 04:44 AM


All times are GMT -5. The time now is 11:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration