LinuxQuestions.org
Review your favorite Linux distribution.
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 09-04-2008, 08:58 AM   #16
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Mint, Backtrack, OpenSuse
Posts: 560

Original Poster
Rep: Reputation: 36

I don't think the problem was the HD because my HD is not even 4 months old. I really don't know what caused the problem but I'm glad my system is up and running. I was just not patience enough to wait for an answer and I re-install linux. lol
 
Old 09-05-2008, 03:52 AM   #17
wvanes
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Agrouf View Post
Ouch! That's like using a nuclear bomb to kill a fly!
You just had 2 commands to type:

grub>root(hd0,0)
grub>setup(hd0)

Just had to know if grub was on hd0,0 or somewhere else. If you didn't know, you just had one additional command to find it.
That would have took 2 seconds, maybe up to 10 seconds if you type slow.
Hi,
I am a brand new user of Linux (openSUSE 10.3). I try to learn as much of Linux as I can, also by reviewing questions and answers.I am intrigued by your answer, as I don't understand the commands. Perhaps you could give me some sort of explanation. (At the moment I am studying bash)
The reason for asking is the following: I am migrating from Windows XP to Linux (which will take at least one year). At this moment I cannot miss the use of Windows. For that reason I use Grub as a bootmanager. I am on the verge of upgrading to Linux openSUSE 11.0. However I dread the situation, in which, after installing, Grub should not work anymore as it used to do.
Look forward to your answer.
Regards,
Wim van Es (Holland)
 
Old 09-05-2008, 04:20 AM   #18
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Hello,
grub has a command line which can be used even before you boot linux. If your mbr is out of order, you can still access grub command line from a liveCD or pretty much anything that can boot. From bash, the grub command launches grub command line. grub prompt is 'grub>'
man grub will give you a lot of informations about grub commands.
grub has a different naming convention than linux for drives. hd0 is the first BIOS drive, HD1 the second, etc.. (hd0,0) is the first partition of the first drive and (hd1,4) is the 5th partition of the 2nd drive.
grub has several stages. The first stage is located in the mbr (on the boot drive). This stage just tries to read the hard drive to find the configuration and boot. The configuration is located in the filesystem on a partition.
So, when you write: root(hd0,0) at grub prompt, you tell grub that the configuration is located in the filesystem of the 1st partition of the 1st drive.
Then, when you type setup(hd0), you tell grub to install itself in the mbr of the first drive (the one that is supposed to boot from your BIOS) and that it can read the configuration on (hd0,0).
if you erase your mbr, typing those 2 commands restore it. Also, if you move your grub configuration to another drive, you have to type those 2 commands so grub finds it.
The trick if you don't know where your configuration is is to use the find command, as explained in this thread.

Last edited by Agrouf; 09-05-2008 at 04:22 AM.
 
Old 09-05-2008, 09:24 AM   #19
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Mint, Backtrack, OpenSuse
Posts: 560

Original Poster
Rep: Reputation: 36
I didn't update windows either but I recall connecting a Virus infected HD to my machine and installing AVG free edition to clean up the infected HD using windows. Maybe AVG detected GRUB as a threat on the MBR? I also recall booting to Linux after I installed AVG.
 
Old 09-05-2008, 09:30 AM   #20
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Mint, Backtrack, OpenSuse
Posts: 560

Original Poster
Rep: Reputation: 36
If I would've known that to fix my grub issue was as simple as typing grub>root(hd0,0)
grub>setup(hd0)
. I took a note of it and I really HOPE it would happen again to try both commands!!!
 
Old 09-06-2008, 06:24 AM   #21
wvanes
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Agrouf View Post
Hello,
grub has a command line which can be used even before you boot linux. If your mbr is out of order, you can still access grub command line from a liveCD or pretty much anything that can boot. From bash, the grub command launches grub command line. grub prompt is 'grub>'
man grub will give you a lot of informations about grub commands.
grub has a different naming convention than linux for drives. hd0 is the first BIOS drive, HD1 the second, etc.. (hd0,0) is the first partition of the first drive and (hd1,4) is the 5th partition of the 2nd drive.
grub has several stages. The first stage is located in the mbr (on the boot drive). This stage just tries to read the hard drive to find the configuration and boot. The configuration is located in the filesystem on a partition.
So, when you write: root(hd0,0) at grub prompt, you tell grub that the configuration is located in the filesystem of the 1st partition of the 1st drive.
Then, when you type setup(hd0), you tell grub to install itself in the mbr of the first drive (the one that is supposed to boot from your BIOS) and that it can read the configuration on (hd0,0).
if you erase your mbr, typing those 2 commands restore it. Also, if you move your grub configuration to another drive, you have to type those 2 commands so grub finds it.
The trick if you don't know where your configuration is is to use the find command, as explained in this thread.
Thanks a lot! This is just the information I was looking for.
Regards,
Wim
 
Old 07-29-2009, 02:09 PM   #22
jeroach
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
GRUB loading, please wait ERROR 15

I get this error but I have no options from there. hitting any key does nothing. My only option is to turn it off.

Help!
 
Old 07-29-2009, 02:17 PM   #23
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,060

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
jeroach
Welcome to LQ!

If you wish, start a new thread in newbie forum
about your issue
grub error?

and please give all info on your pc, what distro(s)
whether you have a cd drive, a livecd, etc?

we need to know all info about your specific situation?
 
  


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
Grub Loading, Please Wait......Error 18 Braytac Linux - Hardware 19 06-16-2013 02:16 AM
GRUB Loading starge 1.5... GRUB Loading please wait ERROR 21 davidjames Linux - Newbie 2 03-03-2008 10:01 AM
GRUB Loading, Please wait.. error 17 shooglelux Ubuntu 5 10-02-2007 01:48 PM
Grub Loading, Please Wait Error 18 peterfc Linux - Desktop 1 09-17-2006 10:01 AM
GRUB loading, please wait.... Error 17 superfly1031 Linux - Software 2 12-07-2005 04:22 PM


All times are GMT -5. The time now is 07:51 AM.

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