LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2014, 06:57 PM   #1
pounsfos
LQ Newbie
 
Registered: Jul 2014
Location: NZ
Posts: 13

Rep: Reputation: Disabled
chainloading syslinux from grub2


Hey guys

Been searching for months by myself and turned up nothing

1x usb
1x fat32 partition
has grub, grub4dos, syslinux, on it
can't figure out how to chainload syslinux from grub.cfg

or alternatively, how can I get grub2 to load a wim file or the windows BCD file

they al reside on the same partition, so chainloading just doesn't work, I pretty much need to be able to physically point it at a file

Anyone know or can help
 
Old 09-05-2014, 01:40 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,509

Rep: Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114
Chainloading basically points to the IPL of a partition and the first bootloader turns booting over to the second bootloader at that location. You have three bootloaders on the same partition? Why. Grub/Grub2 chainload windows and do not boot windows directly and I don't think you will have much luck booting it directly. If you do come up with a way, I'm sure there will be kudos all around. I'm curious about your setup and why the multiple bootloaders on one partition and what are you trying to boot with them, other than another bootloader.

Last edited by yancek; 09-05-2014 at 04:45 PM. Reason: Clarify my ?
 
Old 09-05-2014, 04:06 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,176

Rep: Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436
If you have grub, why do you want syslinux?




menuentry "Syslinux root drive" {

set root=(hd1,3)

chainloader +1

}



From here maybe. http://unix.stackexchange.com/questi...linux-cfg-menu
 
Old 09-09-2014, 09:56 PM   #4
pounsfos
LQ Newbie
 
Registered: Jul 2014
Location: NZ
Posts: 13

Original Poster
Rep: Reputation: Disabled
so I have my boot drive with multpiple OS's, windows PE environments, testing tools etc....

My syslinux file is highly modified, and trying to get it over to grub would just be a right nightmare......

Syslinux did it all for me and I used grub as a kernal to boot Iso's, (but from the syslinux cfg file
(eg:# HDClone
label hdc
menu label ^HDClone
kernel /bootprog/grub.exe
append --config-file="find --set-root /iso/hdclone.iso; map /iso/hdclone.iso (hd32); map --hook; chainloader (hd32)"
)

anyway with the new UEFI bootloaders finally taking over, I need to move to a EFI bootloader, introducing GRUB2, unfortunatly GRUB2 seems VERY limited in what it can do compared to syslinux, (it can't boot PE Environments, older kernals it has problems with etc...), so the need to still be able to boot from syslinux on a EFI machine is necessary, otherwise we have to go in and enable CSM mode in the bios which wastes time

I can boot 5 linux distros, 4 PE environements and a bunch of other stuff from Syslinux (which it's EFI is still in beta with little progress)
I can boot 3 linux environments, 0 Pe environments and not much of anything else

I may need more training on Grub2 but I have a pretty good grasp already

I also boot Macs using grub for testing them as well

Last edited by pounsfos; 09-09-2014 at 10:09 PM.
 
Old 09-10-2014, 09:38 PM   #5
pounsfos
LQ Newbie
 
Registered: Jul 2014
Location: NZ
Posts: 13

Original Poster
Rep: Reputation: Disabled
*****************update**************

I have gotten the PE environments to load........ kinda

maybe there is hope for grub2 after all
 
Old 09-11-2014, 03:22 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,176

Rep: Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436
Thanks for the update.

Syslinux has been a fantastic work for a long time. Grub and Grub2 (and oddities like gru4dos etc) have been in the works also. At one time there were some great boot loaders all gui driven that maybe should have been used but we are stuck with what we have and the complexities of hardware and software and changes.

I wrote an example on how to chainload in prior message.
 
Old 09-11-2014, 04:51 PM   #7
pounsfos
LQ Newbie
 
Registered: Jul 2014
Location: NZ
Posts: 13

Original Poster
Rep: Reputation: Disabled
your way didnt work, but i really apreciate you helping me as it led me to this discovery

After alot of modifying to efi files I have it kinda booting

I load grub2 from the usb
I then go
"Chainloader /path/to/bootmgfw.efi"
this loads up the BCD data with all my WIM info stored
but after selecting the Wim image I want
It loads it into memory but "black screens" with an error about Winload.exe and for my 8.1 wim an error about "the signature beeing invalid"
This might be because of a BCD setting in the .WIm file but that is where I am now
So technically it grub boots it, but on UEFI it doesn't get all the way into the .WIM
*big sigh* back to google

Last edited by pounsfos; 09-11-2014 at 07:30 PM.
 
Old 09-11-2014, 08:25 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,176

Rep: Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436
I haven't had time to look at this but may be of some help. efilinux loader.

And
http://www.easy2boot.com/add-payload...g-uefi-images/

Last edited by jefro; 09-11-2014 at 08:36 PM.
 
Old 09-16-2014, 07:12 PM   #9
pounsfos
LQ Newbie
 
Registered: Jul 2014
Location: NZ
Posts: 13

Original Poster
Rep: Reputation: Disabled
*********update**************

It looks like this whole chainloading thing is just not going to happen

but, I have figured out how to boot my .wim images in grub (or more so a pure EUFI environment)

the problem wasnt grub the problem was that inside the bcd, I had the "application path" set to "/windows/system32/winload.exe"
this needed to be changed to "/windows/system32/winload.EFI"

I have my wims back, (woohoo), I guess I will have to start writing, looks like syslinux will never be fully UEFI *touchwood*
 
Old 09-17-2014, 10:09 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,176

Rep: Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436
Thanks for the update.

Peter Anvin is a guru way beyond my humble abilities. He has worked on Syslinux and some other projects for years.
 
Old 10-13-2016, 10:04 AM   #11
Steve6375
LQ Newbie
 
Registered: Mar 2013
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by pounsfos View Post
so I have my boot drive with multpiple OS's, windows PE environments, testing tools etc....

My syslinux file is highly modified, and trying to get it over to grub would just be a right nightmare......

Syslinux did it all for me and I used grub as a kernal to boot Iso's, (but from the syslinux cfg file
(eg:# HDClone
label hdc
menu label ^HDClone
kernel /bootprog/grub.exe
append --config-file="find --set-root /iso/hdclone.iso; map /iso/hdclone.iso (hd32); map --hook; chainloader (hd32)"
)
Errm - that is a syslinux menu entry which is running grub.exe. grub.exe is grub4dos NOT grub! Commands such as find --set-root are in grub4dos syntax, not grub or grub2.
So actually it is booting via grub4dos.
You may find
http://www.rmprepusb.com/tutorials/chainload-syslinux
useful too.
 
Old 10-14-2016, 09:18 PM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
have you ever tried supergrub2 off a USB seeings how you can only boot one os at a time?
 
  


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
Grub2 chainloading to syslinux and isolinux for a multi-boot flash drive kav Linux - Software 4 03-18-2013 11:24 PM
Chainloading Syslinux on a USB drive with multiple partitions snak Linux - Newbie 0 07-11-2012 06:11 PM
Chainloading from Grub2 to syslinux on a USB drive Yotefn Linux - Newbie 7 04-04-2011 04:15 AM
[SOLVED] chainloading with grub and grub2 houndhen Linux - General 3 12-20-2010 01:39 PM
GRUB chainloading a logical partition installed with SYSLINUX whho Linux - Software 5 07-11-2009 10:40 PM

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

All times are GMT -5. The time now is 01:37 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
Open Source Consulting | Domain Registration