LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 02-12-2010, 12:57 PM   #1
jenaniston
LQ Newbie
 
Registered: Jan 2010
Location: Malibu, California
Distribution: Fedora 13 KDE
Posts: 16

Rep: Reputation: 0
grub rescue> commands are unix ?


Well maybe the forum category needed to be outside the individual distributions as I am stuck in grub . . . mods please move if need be . . .

Are the commands for
Code:
grub rescue>
(a prompt you really don't want to see, btw) after an install of Ubuntu Karmic 9.10
are they unix based . . . ?

I need to point the boot from this command prompt I get . . .
to the (hd0,1)/boot/grub/menu.lst but I think the (hd0,1)/boot/grub/device.map was corrupted by grub2 or otherwise installed wrong.

So first question is grub rescue> uses unix commands ?

Thank you very much if you happen to know anything about this grub rescue> command - not alot yet from google searches.

Last edited by jenaniston; 02-12-2010 at 01:00 PM. Reason: category ?
 
Old 02-12-2010, 01:20 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
It's not unix although in its more normalized mode it supports a few shell commands, you can attempt to tell grub what hard drive to look at and what files to load (kernel for example.)

Type 'help' to get a listing of the commands and generally try searching the individual commands on google instead of a more general search.

Review the /boot/menu.cfg (nee grub.cfg/conf) and ensure everything looks acceptable there.
 
Old 02-12-2010, 02:37 PM   #3
jenaniston
LQ Newbie
 
Registered: Jan 2010
Location: Malibu, California
Distribution: Fedora 13 KDE
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rweaver View Post
It's not unix although in its more normalized mode it supports a few shell commands, you can attempt to tell grub what hard drive to look at and what files to load (kernel for example.)

Type 'help' to get a listing of the commands and generally try searching the individual commands on google instead of a more general search.

Review the /boot/menu.cfg (nee grub.cfg/conf) and ensure everything looks acceptable there.
Thanks for the interest . . .
Code:
grub rescue>
is some kind of a different monster - immediately pops up . . .
no booting going on behind some "quiet" splash progress bar screen.

Something got mapped wrong with grub2 . . . maybe an easy fix with the right command.
I had tried to install Xubuntu 9.10 which uses grub 2 - and am now trying to just get back Ubuntu 9.04 (with legacy grub 0.97)
I of course tried entering help to list commands and get . . .

Code:
grub rescue> help
Unknown command 'help'
grub rescue>
I can use ls . . . making me think unix from my FreeBSD use.

Code:
grub rescue> ls
(hd0) (hd0,5) (hd0,1) (hd1) (hd1,5) (hd1,4) (hd1,3) (hd1,1)
grub rescue>
grub rescue> ls (hd0,1)/boot
./ ../ System.map-2.6.28-11-generic abi-2.6.28-11-generic confi
g-2.6.28-11-generic memtest+.bin vmcoreinfo-2.6.28-11-generic 
vmlinuz-2.6.28-11-generic grub/ initrd.img-2.6.28-11-generic
grub rescue>
and going into grub/ directory . . .
Code:
grub rescue> ls (hd0,1)/boot/grub
./ ../ device.map stage1 stage2 e2fs_stage1_5 fat_stage1_5 jfs_
stage1_5 minix_s
tage1_5 reiserfs_stage1_5 xfs_stage1_5 default installed-versio
n menu.lst
grub rescue>
How can I tell grub rescue> how to load the correct file
/module . . . insmod ?
http://linux.about.com/od/commands/l/blcmdl8_insmod.htm

Thank you very much for any suggestions or criticism.

Last edited by jenaniston; 02-12-2010 at 02:40 PM.
 
Old 02-12-2010, 04:40 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,448

Rep: Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069
Have a read of this
 
Old 02-12-2010, 09:15 PM   #5
jenaniston
LQ Newbie
 
Registered: Jan 2010
Location: Malibu, California
Distribution: Fedora 13 KDE
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Have a read of this
yeah, I was getting closer piecing together info from google searches . . . but i needed that.

15. Booting from the Rescue Mode
I had done up to this command . . .

insmod /boot/grub/linux.mod

Thank you very much for a great link . . .
 
Old 02-26-2010, 07:57 AM   #6
Brian34
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by jenaniston View Post
Well maybe the forum category needed to be outside the individual distributions as I am stuck in grub . . . mods please move if need be . . .

Are the commands for
Code:
grub rescue>
(a prompt you really don't want to see, btw) after an install of Ubuntu Karmic 9.10
are they unix based . . . ?

I need to point the boot from this command prompt I get . . .
to the (hd0,1)/boot/grub/menu.lst but I think the (hd0,1)/boot/grub/device.map was corrupted by grub2 or otherwise installed wrong.

So first question is grub rescue> uses unix commands ?

Thank you very much if you happen to know anything about this grub rescue> command - not alot yet from google searches.
I have the same problem,
some days ago my linux Netbook Remix 9.10 crashed and I turned the computer off keeping pushed the start button.
Since then when I try to boot the system appears:

Code:
GRUB loading.
error: biosdisk read error
grub rescue>
if I type the ls command it returns:

Code:
grub rescue> ls
(hd0) (hd0,5) (hd0,1) (hd1) (hd1,1)
end if I try to read the (hd0,1) it returns:

Code:
grub rescue> ls (hd0,1)/
error: biosdisk read error
any idea?
Thanks
 
  


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 error: unknown filesystem, grub rescue magnecticfield Linux - Newbie 28 07-30-2013 04:35 AM
Unix Commands runnerpaul Solaris / OpenSolaris 3 06-16-2008 09:34 AM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM
unix commands help Tinku Linux - General 9 01-09-2006 03:25 AM
rescue system commands jessj Suse/Novell 2 05-27-2005 06:32 PM


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