LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-11-2013, 08:42 AM   #1
Afsar
LQ Newbie
 
Registered: Sep 2013
Location: Banglore
Distribution: CentOS
Posts: 2

Rep: Reputation: Disabled
Red face Screen showing only GRUB


Hello World
i am using dual bootable system as windows xp and CentOS 5.5 system, i partitioned like 50 Gb in each c,d,e drives in windows, after that i installed Centos 5.5 sd /boot 2gb
/home 90gb
/var 40gb
/temp 15 gb
/usr 30 gb
/opt 25 gb
/swap 8 gb
/ 50 gb
i wrongly deleted boot files after...it was showing [Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename]
grub> for i install grub with using linux rescue mode after that i did /sbin/grub-install-/dev/sda7

it showed no error reported installation successful but after booting now it showing only GRUB please let me know how to solve the problem
 
Old 09-11-2013, 10:12 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Change sda7 to sda if you want grub installed to the MBR
 
Old 09-11-2013, 12:57 PM   #3
YellowApple
Member
 
Registered: Mar 2013
Location: Reno, Nevada, United States
Distribution: Slackware, OpenBSD, openSUSE, Android
Posts: 95

Rep: Reputation: 37
Quote:
Originally Posted by colorpurple21859 View Post
Change sda7 to sda if you want grub installed to the MBR
Looks like GRUB already is installed to the MBR if he/she is getting a GRUB prompt.

My guess is that GRUB is installed fine, but it can't find the rest of the necessary files (namely, menu.lst / grub.cfg; I don't remember whether or not CentOS 5.5 has GRUB2, but I don't think it does...).

Afsar: is /dev/sda7 the partition you installed / to? If so, try the following in the GRUB prompt:

Code:
root (hd0,7)
If that command works without shouting at you, then we're in good shape, and can probably run the rest of the steps needed to actually boot:

Code:
kernel /path/to/vmlinuz
initrd /path/to/initrd
boot
If not, then you might want to consider reinstalling with the / (or a separate /boot partition if CentOS 5.5 can use it) having a lower partition number (i.e. sda2 or sda3), since high partition numbers on MBR-formatted drives tend to be problematic as boot partitions for most operating systems, Linux included.
 
Old 09-11-2013, 01:54 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
I was trying to read between the lines on this lol. The op had said that he deleted the boot partition and didn't mention anything about recreating the boot partition. The MBR grub is most likely looking in the wrong partition for the grub files and therefore will need to be reinstalled.

Last edited by colorpurple21859; 09-11-2013 at 01:56 PM.
 
Old 09-11-2013, 05:33 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,537

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
The op had said that he deleted the boot partition
He actually said he deleted the boot 'files'. That sounds like an interesting story for another time?

If the Grub files are on sda7, then the command would be: root (hd0,6) as Grub Legacy counts partitions from zero.

Quote:
/sbin/grub-install-/dev/sda7
If the above command is actually what was used, it won't work. Perhaps just a typo, there should be a space after 'install' and no dash (-). It isn't clear from the original post whether you have a separate /boot partition or if the boot directory was on the / partition which is sda7?

Your partition information is a little confusing. It seems that you resized your windows partitions (c,d and e) by freeing 50GB in each??
You then list what would seem to be several different partitions totally 260GB??

If this is a new install, your best option is to start over and try not to delete boot files.
 
1 members found this post helpful.
Old 09-11-2013, 05:37 PM   #6
YellowApple
Member
 
Registered: Mar 2013
Location: Reno, Nevada, United States
Distribution: Slackware, OpenBSD, openSUSE, Android
Posts: 95

Rep: Reputation: 37
Quote:
Originally Posted by yancek View Post
If the Grub files are on sda7, then the command would be: root (hd0,6) as Grub Legacy counts partitions from zero.
Aw shucks; I had a feeling I experienced an off-by-one error :P
 
  


Reply

Tags
grub config, grub rescue, grubinstall



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
[SOLVED] Screen not showing on laptop but showing on projector when connected someshpr Linux - General 3 04-18-2011 04:58 PM
ubuntu dapper screen stuck showing "grub" _ topcat Ubuntu 4 10-28-2007 03:56 AM
gl program showing nothing on screen nacio Programming 0 04-05-2007 04:16 PM
GRUB not showing the graphical boot screen tuxeedo Linux - Newbie 4 03-17-2007 03:29 AM
How to edit grub? Not showing login screen jolly Linux - Newbie 10 03-11-2003 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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