[syslinux] OT: Question on running command from boot menu

Michael D. Setzer II mikes at kuentos.guam.net
Thu Jan 1 21:00:07 PST 2009


On 1 Jan 2009 at 16:03, H. Peter Anvin wrote:

Date sent:      	Thu, 01 Jan 2009 16:03:50 -0800
From:           	"H. Peter Anvin" <hpa at zytor.com>
To:             	"Michael D. Setzer II" <mikes at kuentos.guam.net>
Copies to:      	For discussion of Syslinux and tftp-hpa 
<syslinux at zytor.com>
Subject:        	Re: [syslinux] OT: Question on running command from 
boot menu

> Michael D. Setzer II wrote:
> > 
> > I did think of the quote issue, and in the same way that I used CR
> > to represent \n, something like QQ could be used to represent \" in
> > replacement.
> > 
> 
> Doesn't really work too well, as sooner or later you face the fact
> that the string you used is one you need.  In the end, you need an
> escape solution, but in order to process an escape character you need
> something more powerful than a regular expression.
> 

Further info. Rechecked things, and it turns out the && works with syslinux 
and regular grub, but with grub4dos it causes and Error 27: Unrecognized 
command error, and will not load the kernel. Trying \&\& allows it to load, but 
then it doesn't run correctly.  

I had recently seen where riplinux had an option to load it from an ntfs 
partition by just adding g4ldr to the root directory, and adding the line
c:\grldr="Start Grub" to the end of boot.ini on XP.  I only thought it worked on 
FAT32, but seems to work fine. Is there any way to use syslinux from an 
NTFS partition in a similar manner. 

P.S. your sed example was very interesting. Took a little research to figure 
out how it worked. Still very new to sed... Thanks again.


>  -hpa
> 
> -- 
> H. Peter Anvin, Intel Open Source Technology Center
> I work for Intel.  I don't speak on their behalf.
> 


+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes at kuentos.guam.net                            
  mailto:msetzerii at gmail.com
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC at HOME CREDITS
SETI 7,122,242.9956 | EINSTEIN 2,218,390.1109 | ROSETTA 
736,835.9944




More information about the Syslinux mailing list