LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-26-2018, 06:33 AM   #16
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063

Quote:
Originally Posted by colorpurple21859 View Post
It is coded in the mbr. even if the partition is deleted and you get a grub-rescue prompt if you enter set at the grub prompt it will tell you what the partition grub is looking for the grub files in.
Exactly what I was thinking, thanks for confirming that!
 
Old 05-26-2018, 09:16 AM   #17
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
That means the 'set root' command specifies what partition the grub.cfg file is in (of course, within that partition the path is /boot/grub/ assuming)?
 
Old 05-26-2018, 09:22 AM   #18
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
All grub does initially, is to boot up to menu. It doesn't know which system you will choose and therefore which grub.cfg it needs until you choose it. Even from a rescue you have to tell it which partition and where is the root before it will find your system and boot it.
 
Old 05-26-2018, 09:27 AM   #19
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Excuse me. Assuming it all begins in the MBR (that famous 0XEB90 jump) at some time the loader will have to read the grub.cfg file, am I right? But it has to know what partition it is in then?
 
Old 05-26-2018, 11:04 AM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
The code in the Mbr is set to look for the rest of the grub modules needed to access the grub.cfg in a particular partition The grub modules are usually located in /boot/grub/i386-pc If the partition/files doesn't exist you get a grub rescue prompt
 
Old 05-26-2018, 01:11 PM   #21
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
You might take a look at the link below to the SuperGrubDisk forums. The initial post give a dd command to use which should give you this information. I would suggest you continue reading the comments from the other person who appears to be one of the developers/maintainers of the software who mentions some of the possible problems with using it. Note, the posts are 10 years old and refer only to Grub Legacy. If you want to run the commands and do them correctly all they do is output info to a terminal but always take care with typing using dd.

http://www.supergrubdisk.org/forum/i...hp?topic=105.0
 
  


Reply



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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
12.4 new install grub 2 boot problem with grub put on it's own partition not on MBR james2b Ubuntu 14 12-07-2012 09:34 AM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM
grub to mbr rekaye1005 Linux - General 1 10-18-2005 07:20 PM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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