LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-05-2011, 01:03 PM   #1
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
How to start Grub2-bootloader from extlinux-bootloader?


Hello,
what is the syntax for doing it?
Thanks.
 
Old 11-05-2011, 01:37 PM   #2
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
From one grub menu, I can load another grub2 thru:

kernel /boot/grub/core.img

Try something similar and it may work for you.

Last edited by rng; 11-06-2011 at 10:06 AM.
 
Old 11-06-2011, 10:06 AM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
Hey, did you try it and did it work?
 
Old 11-08-2011, 02:36 PM   #4
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
I will.. thanks. but having other things to do (making firefox running again etc.). I will post the result here.
 
Old 11-11-2011, 04:31 PM   #5
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
I copied the grub2 files from a archbang linux cd on the SD ext2 drive (core.img etc. files).
The result of the extlinux command is

invalid or corrupt kernel error
boot:
 
Old 11-12-2011, 02:21 AM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
I think it may work if grub2 is properly installed on SD drive. After that it may become loadable from extlinux.
 
Old 11-12-2011, 04:30 PM   #7
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
how? I loaded the grub-1.99 tar file from the GNU page, but could not find the core.img etc.
So, I will now google in order to know how to manually install grub2 (without messing up my SD8GB with extlinux).
In any case, any advice is welcome.
 
Old 11-12-2011, 08:44 PM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
It will make question clear if you could mention what exactly you want to do. What are you trying to boot and from where?
 
Old 11-13-2011, 04:49 AM   #9
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
Use a ubuntu or mint live cd and follow the directions in Section 12 "Reinstalling GRUB2"

grub2

or did you mean to chainload grub2 from which bootloader (lilo, legacy, grub2, or etc.)?

Last edited by Larry Webb; 11-13-2011 at 04:59 AM.
 
Old 11-13-2011, 09:20 AM   #10
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
From the title and initial post it appears that floppy_stuttgart wants to chainload grub2 (on SD ext2 drive) from extlinux.

Last edited by rng; 11-13-2011 at 09:22 AM.
 
Old 11-13-2011, 11:48 AM   #11
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 one of my entries

menuentry "Suse @ sdb6" {
set root=(hd0,6)
chainloader +1

If you want specific directions we will need more information.
 
Old 11-13-2011, 11:59 AM   #12
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
Apparently the requirement is loading grub2 from extlinux, not from another grub2 (as suggested by you). Extlinux code is required so that grub2 can be loaded/chainloaded.
 
Old 11-13-2011, 03:03 PM   #13
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by rng View Post
It will make question clear if you could mention what exactly you want to do. What are you trying to boot and from where?
Here is the background of my small project....
I have 2 travel devices: CF8GB and SD8GB (both extlinux multibooting; same content: knoppix,tinycorelinux,partedmagic,slitaz,puppy, warry,slicko,hwlist,ubcd,keyboard changes, start grub4dos boot, start plop bootmanager...).
Both devices can be mounted on PCs (when travelling; showing linux to friends; installing Linux on a colleague PC).
In particularly the SD card: I have it in everytime my pocket, with an USB multiadapter and a DSL-USB-Modem (www.fonic.de): I can use nearly any PC I have in my hands anywhere and go into the internet.
I want to extend these CF and SD devices with salix live.
SD: can be mounted on an USB adapter. In this case a USB booting PC can start with one of the linux distro.
can be placed in an SD port. Possible on newer PCs.
CF: can be mounted on an IDE adapter or on an USB adapter. I can nearly start any PC with it (IDE is good in case the PC is not USB booting)

For the reason, I dont achieve a proper booting of salixlive in extlinux (the CD is with grub2; and I dont understand all grub2 entries); see http://www.linuxquestions.org/questi...format-911876/, the Idea I have now is (example the SD8GB):
- boot a PC with the SD8GB (on USB adapter or direct in the PC)
- in the extlinux menue of the SD, choose the submenue "start grub2"
- start grub2 placed on this SD card (ext2!)
- grub2 should then find the salixlive data and start (hopefully..).
If I chainload the entry "start grub2" to the SD, then I will probably be again in the extlinux menue.
For example, on this SD, I can start grub4dos (not chainloading), then this allow all grub4dos functionality (use of memdisk for example).
The same is perhaps possible with grub2? (for start of salix live)
 
Old 11-13-2011, 07:43 PM   #14
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
From your other post:

Quote:
It boots .. but stop in the middle ..
looking for 'salixlive' data directory (searching file livecd.sgn file)
Fatal error occured: salixlive not found
It means salix is starting to boot all right, so you don't need to link to grub2. This is a common problem with slax (distro similar to salix) also. Search their active forum or ask there: http://www.slax.org/forum.php

Last edited by rng; 11-13-2011 at 08:17 PM.
 
  


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
adding files extracted from an ISO to GRUB2 bootloader OverKll Linux - Software 3 02-22-2010 08:35 AM
Replace GRUB Bootloader with WIN NT Bootloader wombat53 Linux - Software 1 09-04-2009 09:56 AM
How to "translate" grub bootloader to extlinux? atkfossiili Linux - General 5 03-21-2008 03:31 AM
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 09:53 AM


All times are GMT -5. The time now is 04:18 AM.

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