LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-23-2010, 02:19 AM   #1
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Rep: Reputation: 31
How do I need to format grub entry to boot from grub2 into grub legacy?


Okay, so I currently run Ubuntu9.10, I installed Fedora12 to sda3 and wrote grub-legacy (during Fedora install process) to its local partition. How should my menu entry in 40_Custom look so that I can boot into it, I have tried the following:

Quote:
menuentry "Grub 1"
{
set root = (hd0,3)
chainloader + 1
}
and

Quote:
menuentry "Grub 1"
{
set root = (hd0,2)
chainloader + 1
}
Thanks for your help,
MJ
 
Old 03-23-2010, 03:38 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
I think that part of your 40_custom needs to read as
Code:
menuentry "Grub-legacy" {
set root=(hd0,3)
chainloader (hd0,3)+1
}
Make sure there are no trailing spaces on any of those lines.

Then sudo update-grub and reboot.
 
Old 03-23-2010, 04:12 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
I believe the third partition is (hd0,2) in grub.
Did they get rid of noverify ?

This guy reckons update-grub will sort it -
http://swiss.ubuntuforums.org/showpo...06&postcount=9
 
Old 03-23-2010, 04:21 AM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
I believe the third partition is (hd0,2) in grub.
No, he's booting grub2, and the numbering has changed.
 
Old 03-23-2010, 04:26 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Seems odd to just change the style for partitions and leave disks zero based.
 
Old 03-23-2010, 04:40 AM   #6
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
Seems odd to just change the style for partitions and leave disks zero based.
There's a lot about grub2 that is "odd", but in this case the numbering is now the same as the output from fdisk -l where partitions are numbered from 1 so I think it is a change for the better, even if we have all got used to subtracting 1 from the partition number for grub-legacy.
 
Old 04-03-2010, 03:03 AM   #7
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
Well, I did some working with my system, and decided to use grub legacy as my primary grub, which launches Win7, Fedora, or Grub2 which is now on its own partition. So much easier to chain from legacy to grub2, someday I might have to try to work it out the other way around.

Thanks for all the responses BTW
 
  


Reply

Tags
fedora, grub, legacy, ubuntu


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
GRUB2 (not grub legacy) included in what dist? (expect ubuntu) kocoman Linux - Newbie 3 03-12-2010 07:38 AM
[SOLVED] How do I boot up In Grub2 If It is using grub legacy now ? obnascar Linux - Software 2 10-22-2009 12:08 PM
Legacy Grub and Grub2 wars crash my Ferrari and Kubuntu 9.10 minrich Linux - Software 2 10-12-2009 06:20 AM
Help converting grub-legacy to grub2 ssenuta Linux - General 4 08-29-2009 10:04 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 09:43 AM


All times are GMT -5. The time now is 07:35 PM.

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