LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to start Grub2-bootloader from extlinux-bootloader? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-start-grub2-bootloader-from-extlinux-bootloader-912037/)

floppy_stuttgart 11-05-2011 12:03 PM

How to start Grub2-bootloader from extlinux-bootloader?
 
Hello,
what is the syntax for doing it?
Thanks.

rng 11-05-2011 12:37 PM

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

kernel /boot/grub/core.img

Try something similar and it may work for you.

rng 11-06-2011 09:06 AM

Hey, did you try it and did it work?

floppy_stuttgart 11-08-2011 01:36 PM

I will.. thanks. but having other things to do (making firefox running again etc.). I will post the result here.

floppy_stuttgart 11-11-2011 03:31 PM

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:

rng 11-12-2011 01:21 AM

I think it may work if grub2 is properly installed on SD drive. After that it may become loadable from extlinux.

floppy_stuttgart 11-12-2011 03:30 PM

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.

rng 11-12-2011 07:44 PM

It will make question clear if you could mention what exactly you want to do. What are you trying to boot and from where?

Larry Webb 11-13-2011 03:49 AM

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.)?

rng 11-13-2011 08:20 AM

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

Larry Webb 11-13-2011 10:48 AM

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.

rng 11-13-2011 10:59 AM

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.

floppy_stuttgart 11-13-2011 02:03 PM

Quote:

Originally Posted by rng (Post 4522588)
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)

rng 11-13-2011 06:43 PM

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


All times are GMT -5. The time now is 11:41 PM.