LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-02-2011, 05:37 PM   #1
bigt95
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
"Grubrescue>"


I have a laptop running windows 7 with (one hard drive with 2 partitions) and tried to create a dualboot flash win7/linux when I finished I found that I could no longer boot from the hard drive, but get "Unknown Device <avery long hex numer here>" and then the prompt "Grubrescue>"

I have learned enough to at least us the "ls" command and it yeilds:
(hd0) (hd0,msdos2) (hd0,msdos1) (hd31) (fd0) (fd1)

Could someone comment on what this means, and what I can do to get the system booting from the HD


\Thanks

Last edited by bigt95; 06-02-2011 at 05:39 PM.
 
Old 06-03-2011, 05:37 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Sounds like the Grub configuration file got blown out or the drives got re ordered in the bios. Grub reads from the bios first connections starting at number 0. So hd0 is the first drive connected.


Since it is confused you need to tell it what to do. You need to define the root device, kernel, initrd filename then tell it to boot.

So

root device -- at the prompt : root (hd0,0)
-- this would be physical drive 1 partition 1

kernel -- Next Prompt : kernel /vmliuz-2.6.38.dmz.1-liquorix-amd64 ro root=/dev/hda1

-- this is mine, not sure if at this prompt you have auto-completion if you are unsure of the naming convention. After typing your best guess hit the tab key and see if it gives you a hint.


initrid filename -- third prompt : initrd /initrd.img-2.6.38-4.dmz.1-liquorix-amd64

-- again try using auto-completion to get the correct naming convention.

boot -- last prompt : boot

-- just type boot & hit enter.


-----If you get stuck with this option you could also use a live cd to boot and reinstall grub.-----


If all works out you should boot at which time you should reinstall grub.

http://www.gnu.org/software/grub/manual/grub.html

Here is a link on the grub manual which should help. You can also go to a command prompt & type info grub for an offline manual.


I am no expert (actually a bit of a newbie) so if a another member sees a better way to approach please offer some input.



Hope this helps
 
Old 06-03-2011, 05:45 AM   #3
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 240

Rep: Reputation: 14
post the output of following::

-- cat /boot/grub/menu.lst or /boot/grub/grub.conf
-- geometry (hd0)
 
Old 06-03-2011, 11:00 AM   #4
bigt95
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
grub rescue

the code below fixed the problem

Code:
Cd boot
Bootrec /fixmbr
Bootrec /fixboot
thanks tony
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Multicolumn" or "tiles", or even "list" icon view on desktop, in any DE? the dsc Linux - Desktop 3 02-20-2010 10:25 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 08:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM

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

All times are GMT -5. The time now is 08:58 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