LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 10-29-2006, 10:27 AM   #1
lord_cedrich
LQ Newbie
 
Registered: Sep 2006
Posts: 23

Rep: Reputation: 15
Need help on Grub


I need help on how to reinstall grub im using Suse 10.1 at first i have a 2 OS Windows Xp and Linux Suse I have a Dual boot....My Windows got corrupted then i install the Winxp then my Suse grub is already gone how can i install the grub i hope somebody could help me thanks a lot
 
Old 10-29-2006, 11:34 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I think this article may help you out.
 
Old 10-29-2006, 05:59 PM   #3
lord_cedrich
LQ Newbie
 
Registered: Sep 2006
Posts: 23

Original Poster
Rep: Reputation: 15
I cant find grub.conf

/boot/grub/grub.conf

and how do i know where my kernel is ?

Last edited by lord_cedrich; 10-29-2006 at 06:01 PM.
 
Old 10-29-2006, 06:11 PM   #4
lord_cedrich
LQ Newbie
 
Registered: Sep 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Device Boot
/dev/hda1 * HPFS/NTFS
/dev/hda2 W95
/dev/hda5 w95fat32
/dev/hda6 linux
/dev/hda7 linux
/dev/hda8 linux Swap/Solaris
/dev/hda9 linux
/dev/hda10 linux


i also see my computer says

Booting from hda9

Im wondering where i can found my kernel ?

Im completely new in linux i hops somebody could help me to fix my boot thanks
 
Old 10-29-2006, 07:33 PM   #5
lord_cedrich
LQ Newbie
 
Registered: Sep 2006
Posts: 23

Original Poster
Rep: Reputation: 15
error occured while installing grub

I have a dual boot OS my linux distro is SUSE 10.1 and a Windows Xp at first my boot loader is ok but when i reinstalled Windows Xp my boot loader gone ...
Code:
My Disk Partition 
Device Boot
/dev/hda1 * HPFS/NTFS
/dev/hda2 W95
/dev/hda5 w95fat32
/dev/hda6 linux
/dev/hda7 linux
/dev/hda8 linux Swap/Solaris
/dev/hda9 linux
/dev/hda10 linux
i also see my computer says
Booting from hda9

Code:
My grub.conf
setup --stage2=/boot/grub/stage2 (hd0,6)(hd0,6)
setup --stage2=/boot/grub/stage2 (hd0)(hd0)

quit
Code:
/boot/grub/device.map=(hd0) /dev/hda
Code:
Modifies by Yast2 last confgiuration on Oct 31 4:10:36 PHT 2006
color white/blue black/light-gray
default 0
timeout 8
gfx menu (hd0,6) message

#####
Title SUSE 10.1
root (hd0,6)
kernel /vmlinuz root=/dev/hda9 resume=/dev/hda8
splash=silent show opts
initrd /initrd
title failsafe --SUSE linux 10.1
root (hd0, 6)
kernel /vmlinuz root = /dev/hda9 show opts ide=nodma apm=off
no resume nosmp noapic max opus=0 edd=off 3
init /initrd
How can i repair my boot loader so that i can dual boot i hope somebody could help me thanks in advance
 
Old 10-29-2006, 09:46 PM   #6
lord_cedrich
LQ Newbie
 
Registered: Sep 2006
Posts: 23

Original Poster
Rep: Reputation: 15
error occured while installing grub

Im wondering im receiving an error on installation of grub
at first i have a dual OS and also has a dual boot in one hard drive
then i reinstalled my Windows xp coz its got corrupted but the grub loader didnt load anymore so i decided to configure the grub but this was the error occured .. I hope somebody could help me thanks


Quote:
GNU Grub version 0.97 (640k lower / 3072 uppermemory
[minimal bash -like editing is supported for the first word, tab list possible command completions. Anywhere else TAB list the possible completions of a device/filename.]
Recovery "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,6)(hd0,6)1+18p (hd0,6)/bootgrub/stage2 /boot/grub/menu.lst" ...succeeded
done

grub setup --"/boot/grub/stage1" exists ... yes
grub setup --"/boot/grub/stage2" exists ... yes
grub setup --"/boot/grub/reiserfs_stage1-5(hd0)"... 18 sectors are embedded
succeeded

Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0)1+18p (hd0,6)/bootgrub/stage2 /boot/grub/menu.lst" ...succeeded
done

grub > quit
 
Old 10-29-2006, 09:47 PM   #7
lord_cedrich
LQ Newbie
 
Registered: Sep 2006
Posts: 23

Original Poster
Rep: Reputation: 15
error occured while installing grub

Im wondering im receiving an error on installation of grub
at first i have a dual OS and also has a dual boot in one hard drive
then i reinstalled my Windows xp coz its got corrupted but the grub loader didnt load anymore so i decided to configure the grub but this was the error occured .. I hope somebody could help me thanks


Quote:
GNU Grub version 0.97 (640k lower / 3072 uppermemory
[minimal bash -like editing is supported for the first word, tab list possible command completions. Anywhere else TAB list the possible completions of a device/filename.]
Recovery "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,6)(hd0,6)1+18p (hd0,6)/bootgrub/stage2 /boot/grub/menu.lst" ...succeeded
done

grub setup --"/boot/grub/stage1" exists ... yes
grub setup --"/boot/grub/stage2" exists ... yes
grub setup --"/boot/grub/reiserfs_stage1-5(hd0)"... 18 sectors are embedded
succeeded

Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0)1+18p (hd0,6)/bootgrub/stage2 /boot/grub/menu.lst" ...succeeded
done

grub > quit
 
Old 10-29-2006, 09:56 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I don't see any errors from what you posted.
I normally do something like this to use grub in my mbr....

Code:
grub
grub> root (hd0,6)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
....
.... bunch of stuff here
....

grub> quit
 
Old 10-29-2006, 10:03 PM   #9
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Sorry if I missed it, but ... where's the error? It looks like it completed sucessfully.
 
Old 10-30-2006, 03:54 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by lord_cedrich
I cant find grub.conf

/boot/grub/grub.conf

and how do i know where my kernel is ?
On most distros the grub configuration file is /boot/grub/menu.lst. Your kernel should be in /boot on whichever partition you are using as the root partition.

Quote:
Originally Posted by lord_cedrich
Device Boot
/dev/hda1 * HPFS/NTFS
/dev/hda2 W95
/dev/hda5 w95fat32
/dev/hda6 linux
/dev/hda7 linux
/dev/hda8 linux Swap/Solaris
/dev/hda9 linux
/dev/hda10 linux


i also see my computer says

Booting from hda9

Im wondering where i can found my kernel ?

Im completely new in linux i hops somebody could help me to fix my boot thanks
You are the one who is supposed to know your partitioning layout and which partition you used for / or /boot where the kernel normally resides.

Anyway you shouldn't even need to mess around with your grub or kernel settings. Just boot the system in rescue mode and do "grub-install /dev/hda".
 
Old 10-30-2006, 04:40 AM   #11
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 10-30-2006, 04:41 AM   #12
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 10-30-2006, 04:41 AM   #13
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 10-30-2006, 04:47 AM   #14
shaman66
Member
 
Registered: Jul 2004
Location: Poland, Bydgoszcz
Distribution: KUbuntu 5.10, Slack 10.2
Posts: 40

Rep: Reputation: 15
Boot from some live distro.
mount your root partition
chroot to that mount point
as a root:
grub-install /dev/hda (or any other HD u want to boot from)

AND THATS ALL

cheers
 
Old 10-30-2006, 04:55 AM   #15
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by shaman66
Boot from some live distro.
mount your root partition
chroot to that mount point
as a root:
grub-install /dev/hda (or any other HD u want to boot from)

AND THATS ALL

cheers
He already has had similar replies elsewhere and thats why this thread is waiting to be closed. Cheers.
 
  


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
An RPC error occured fdservices Linux - Networking 0 02-08-2006 11:40 AM
An error occured during the installation of SB Live maparus Linux - Newbie 1 01-05-2006 06:44 PM
An Error Occured jjorloff1 Linux - Hardware 0 10-14-2005 10:59 AM
a disk error has occured :( reborn Linux - Newbie 3 05-16-2005 03:50 PM
An error occured while installing xine kesara3k Fedora 1 08-01-2004 02:51 PM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration