LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-20-2010, 09:46 PM   #1
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Rep: Reputation: 17
How to get grub to launch isolinux/syslinux boot menu.


Hello,

I'm trying to get a multi-boot setup going for a USB.

I have different vfat-32 partitions I have copied ISOs of several linux distros.

The first one I installed using unetbootin, which works great and uses syslinux, but syslinux can't boot other partitions. So, I have grub installed.

I have gotten so far as to be able to get the grub menu up, but trying to load the partition's isolinux (which is how the Linux Mint LDXE distro boots) gives me an grub error 13.

Here is my menu.1st:

Code:
default		0

gfxmenu=/boot/gfxmenu/linuxmint.message

timeout		5

color cyan/blue white/blue


title 		Linux
root		(hd0,5)
kernel		/isolinux/vesamenu.c32
Not exactly sure what to call for the kernel.

I have also tried the isolinux.bin, but still get the grub error 13.

Can anyone help me figure how to get grub to boot an isolinux menu?

Here is the listing of the /isolinux directory:
Code:
$ ls isolinux/
boot.cat  isolinux.bin  isolinux.cfg  memtest  splash.jpg  vesamenu.c32
And the /boot/grub/:
Code:
$ ls boot/grub/
default        fat_stage1_5       jfs_stage1_5    reiserfs_stage1_5  xfs_stage1_5
device.map     installed-version  menu.lst        stage1
e2fs_stage1_5  iso9660_stage1_5   minix_stage1_5  stage2
Thanks,
Narnie
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-21-2010, 03:37 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
err...
I dont think grub can do that

But, Grub2 can be installed to usb and boot fat32 partitions
I accidently installed grub2 to my fat32 usb and it works great

Many have tried to get to syslinux menu via grub
it doesn't work as far as I know

and see all this about grub4dos and syslinux

http://grub4dos.sourceforge.net/wiki...Disk_emulation

http://syslinux.zytor.com/wiki/index.php/MEMDISK

http://knowhowbyromiz.blogspot.com/2...-and-back.html

http://aronzak.wordpress.com/2008/09...one-usb-drive/
 
Old 03-21-2010, 11:21 PM   #3
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by linus72 View Post
err...
I dont think grub can do that

But, Grub2 can be installed to usb and boot fat32 partitions
I accidently installed grub2 to my fat32 usb and it works great

Many have tried to get to syslinux menu via grub
it doesn't work as far as I know

and see all this about grub4dos and syslinux

http://grub4dos.sourceforge.net/wiki...Disk_emulation

http://syslinux.zytor.com/wiki/index.php/MEMDISK

http://knowhowbyromiz.blogspot.com/2...-and-back.html

http://aronzak.wordpress.com/2008/09...one-usb-drive/
Thanks for the info. I was beginning to think that is what was the case. I just couldn't find anything. I'm surprised that hasn't been worked out.

I was trying to do the "easy way" by not having to hand-code/recode the menues from isolinux to grub for each distro I want to install. Guess I need to not be lazy and start doing it. hehe.

Yours,
Narnie
 
Old 03-22-2010, 01:07 AM   #4
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by narnie View Post
Thanks for the info. I was beginning to think that is what was the case. I just couldn't find anything. I'm surprised that hasn't been worked out.

I was trying to do the "easy way" by not having to hand-code/recode the menues from isolinux to grub for each distro I want to install. Guess I need to not be lazy and start doing it. hehe.

Yours,
Narnie
PS

Evidently, Grub 2 has the ability to somehow reliably boot iso images. I'll explore this and rethink my strategy to including those isos on one partition perhaps and see how I might be able to boot those. which is all I really need, anyway. This will allow me to use the "native" distro's menu.
 
Old 03-22-2010, 04:08 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,010

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I don't think you need to use grub and syslinx. You should be able to use one or the other.

See this for a way for some distros. http://www.pendrivelinux.com/boot-mu...multiboot-usb/

Or here http://blog.mycroes.nl/2009/01/creat...ick-using.html
 
Old 03-23-2010, 09:13 PM   #6
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by jefro View Post
I don't think you need to use grub and syslinx. You should be able to use one or the other.

See this for a way for some distros. http://www.pendrivelinux.com/boot-mu...multiboot-usb/

Or here http://blog.mycroes.nl/2009/01/creat...ick-using.html
The reason to use both is this:

1)
The distros that I'm wanting use isolinux as the boot menu. I would prefer to have virtually "drop-in" use of these as I add distros rather than having to rewrite the menu structure (for grub) for each to give all options available on each.

2)
Isolinux (and therefore syslinux) can't boot across multiple partitions. Hence the desire to use a combo of Grub (so that I may access other partitions) and Isolinux (so that I can retain the original menu structures and options without having to recode them for grub.

I'll check that link, though, so see what I can learn

Thanks,
Narnie
 
Old 03-23-2010, 09:16 PM   #7
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by jefro View Post
I don't think you need to use grub and syslinx. You should be able to use one or the other.

See this for a way for some distros. http://www.pendrivelinux.com/boot-mu...multiboot-usb/

Or here http://blog.mycroes.nl/2009/01/creat...ick-using.html
I see the first is using grub4dos. I was actually looking at using this the other day as a work-a-round.

I'll look into this further because I think this will be my

Narnie
 
Old 02-07-2011, 06:25 PM   #8
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 174
Blog Entries: 5

Rep: Reputation: 18
Good news

Hey guys, I can see you've given up on this one?
Too bad ))

OK, just in case you should be considering in the future using GRUB2 and SYSLINUX in combination, here is how I do it.
First, let me explain WHY this can by needed.
In my example I created a multiboot USB stick, containing SysRescueCD, Knoppix, Ubuntu and a couple of other useful LiveCD images to boot.
Now with Ubuntu there was no problem booting its ISO with GRUB2, which has that amazing new functionality. It also worked with SysRescueCD after I extracted the ISO into a folder.
But with Knoppix it just don't work this way!!! ...However, Knoppix has the option, after you boot from its LiveCD to install it onto a USB stick WITHOUT disturbing the data there (given you have enough space left on the device). You just call a shell script `flash-knoppix` and it does all the thing.
But the script installs SYSLINUX into the USB stick BOOT SECTOR...
So, here is the dilemma: I need GRUB2 to boot ISO images, yet I need SYSLINUX to boot Knoppix.

SOLUTION -- how we can use multiple bootloaders on one disk:
after the SYSLINUX loader is installed into the USB-stick's MBR, we just copy the BOOT SECTOR with good old DD command:
Code:
sudo dd if=/dev/sdc of=/media/$my-mounted-USB-stick/boot/syslinux.boot bs=512 count=1
after which I reinstall GRUB2:
Code:
grub2-setup --force --directory=/media/MULTIBOOT/boot/grub2 /dev/sdc
Here `/media/MULTIBOOT` is where my USB-stick is mounted, and `boot/grub2` is where GRUB2 installation files reside on the stick. There we also have a `grub.cfg` file, where we add a menuentry for the SYSLINUX loader for Knoppix:
Code:
menuentry "My SYSLINUX bootable OS" {
set root=(hd0,1)
chainloader=/boot/syslinux.boot
}
(Note the slight changes in the config file format)
You see, I'm using that backup SYSLINUX bootsector `syslinux.boot`, created with DD, as a chainloader used by GRUB2. Which works just fine after the real boot sector is overwritten by GRUB2.
I think, SYSLINUX can't do this "chainloading"? Well if it can, you can do the same backing up GRUB2 boot sector etc.

Oh, and if you're seriously interested in HOW TO create a multiboot USB-stick with a SINGLE partition on it, just read
here.

Note, too, that this approach widens multiboot possibilities significantly.
At present, in addition to this multiboot USB, I have 6 OS's on my GPT partitioned HDD, including FREEBSD, all of them booting with GRUB2.

Hope this helps??
Think I'll export this into a little HOW-TO...

PS: This solution has been around for quite some time now. I borrowed it from one FreeBSD guy, who wanted to multiboot it with other OS's is some nearly "impossible" combination.

Last edited by kostya; 02-07-2011 at 06:32 PM.
 
2 members found this post helpful.
Old 02-02-2021, 02:17 PM   #9
Gemu
Member
 
Registered: Nov 2017
Posts: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by kostya View Post
Hey guys, I can see you've given up on this one?
Too bad ))

OK, just in case you should be considering in the future using GRUB2 and SYSLINUX in combination, here is how I do it.
First, let me explain WHY this can by needed.
In my example I created a multiboot USB stick, containing SysRescueCD, Knoppix, Ubuntu and a couple of other useful LiveCD images to boot.
Now with Ubuntu there was no problem booting its ISO with GRUB2, which has that amazing new functionality. It also worked with SysRescueCD after I extracted the ISO into a folder.
But with Knoppix it just don't work this way!!! ...However, Knoppix has the option, after you boot from its LiveCD to install it onto a USB stick WITHOUT disturbing the data there (given you have enough space left on the device). You just call a shell script `flash-knoppix` and it does all the thing.
But the script installs SYSLINUX into the USB stick BOOT SECTOR...
So, here is the dilemma: I need GRUB2 to boot ISO images, yet I need SYSLINUX to boot Knoppix.

SOLUTION -- how we can use multiple bootloaders on one disk:
after the SYSLINUX loader is installed into the USB-stick's MBR, we just copy the BOOT SECTOR with good old DD command:
Code:
sudo dd if=/dev/sdc of=/media/$my-mounted-USB-stick/boot/syslinux.boot bs=512 count=1
after which I reinstall GRUB2:
Code:
grub2-setup --force --directory=/media/MULTIBOOT/boot/grub2 /dev/sdc
Here `/media/MULTIBOOT` is where my USB-stick is mounted, and `boot/grub2` is where GRUB2 installation files reside on the stick. There we also have a `grub.cfg` file, where we add a menuentry for the SYSLINUX loader for Knoppix:
Code:
menuentry "My SYSLINUX bootable OS" {
set root=(hd0,1)
chainloader=/boot/syslinux.boot
}
(Note the slight changes in the config file format)
You see, I'm using that backup SYSLINUX bootsector `syslinux.boot`, created with DD, as a chainloader used by GRUB2. Which works just fine after the real boot sector is overwritten by GRUB2.
I think, SYSLINUX can't do this "chainloading"? Well if it can, you can do the same backing up GRUB2 boot sector etc.

Oh, and if you're seriously interested in HOW TO create a multiboot USB-stick with a SINGLE partition on it, just read
here.

Note, too, that this approach widens multiboot possibilities significantly.
At present, in addition to this multiboot USB, I have 6 OS's on my GPT partitioned HDD, including FREEBSD, all of them booting with GRUB2.

Hope this helps??
Think I'll export this into a little HOW-TO...

PS: This solution has been around for quite some time now. I borrowed it from one FreeBSD guy, who wanted to multiboot it with other OS's is some nearly "impossible" combination.
Did you ever write a tutorial for this Kostya? Maybe with some example boot scripts?
 
  


Reply



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
Grub, isolinux, and syslinux questions?? linus72 Linux - Newbie 4 03-31-2012 12:18 AM
Posible convert syslinux,isolinux to GRUB? hocheetiong Linux - Newbie 2 12-18-2008 11:05 PM
Can FreeBSD be booted from Syslinux or ISOlinux ? lumix *BSD 0 11-18-2008 09:45 AM
need installer iso built using syslinux, not isolinux scheidel21 Linux - General 3 05-31-2007 01:31 PM
how to compile the Syslinux(isolinux) Source code? isilinux Linux - Software 1 05-30-2006 11:02 AM

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

All times are GMT -5. The time now is 01:05 PM.

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