LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 01-24-2011, 04:54 AM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
How to load grub2 from grub legacy or grub4dos


Hello
I want to load grub2 from grub legacy or grub4dos ( I think they use the same commands)
I want to load directly the grub2 core. I know how to load first 512 bytes from some patition by chainloader and load grub2, but what I need is to load directly grub2 core without passing by bootstriping code (first 512 bytes).

I tried this ways, but no luck at this moment.

Code:
title grub2
find (hd0,7) /boot/grub/core.img
kernel /boot/grub/core.img
Code:
title grub2
root (hd0,7) /boot/grub/core.img
kernel /boot/grub/core.img
In hdd 0,7 (sda8) I have Ubuntu 10.10.

Any idea?

Last edited by miros84; 01-24-2011 at 04:59 AM.
 
Old 01-24-2011, 05:46 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I am not sure if I understand

You want to boot a grub2 distro from grub legacy direct instead of chainloading?

Grub legacy will not work with ext4 file systems without a lot of changes that I am not capable of doing. If it was easy, would not the GNU team have modified grub legacy?

You are better off learning grub2 and directly booting from it.

I can not speak for grub4dos.

Last edited by Larry Webb; 01-24-2011 at 05:49 AM.
 
Old 01-24-2011, 05:48 AM   #3
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
grub4dos do can boot directly from ext4. but I dont know the command to load core.img.
What's why i ask how to load directly core.img.
 
Old 01-24-2011, 05:54 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Here is a good tutorial on grub2

grub2

Last edited by Larry Webb; 01-24-2011 at 05:55 AM.
 
Old 01-24-2011, 06:22 AM   #5
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
The idea is to boot grub2 grom grub4dos.

The example I have is:
Code:
title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
So, my first boot manager is grub4dos, then I can load grub2 and later I load Ubuntu. But I think I have to edit --set-root
What I dont know is how.
Any idea?
 
Old 01-24-2011, 07:40 PM   #6
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,139

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Your entry for grub legacy to boot Ubuntu on sda8 is incomplete. It should be:

Quote:
title Ubuntu 10.10
root (hd0,7)
kernel /boot/grub/core.img
savedefault
boot
This works for me booting Ubuntu 10.10 from PCLinux-2010 which uses Grub Legacy. See this tutorial under section 5.B. You will need to scroll down the page a little to get the information.

http://www.dedoimedo.com/computers/g...mozTocId982259

Last edited by yancek; 01-24-2011 at 07:42 PM. Reason: forgot link
 
1 members found this post helpful.
Old 01-26-2011, 10:51 AM   #7
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
This works for me.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 03:03 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 10:06 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