LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2008, 01:16 AM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
Syslinux doesn't correctly interpret kernel="/foo/bar" command


I've seen other references to this problem, but no solution. When, for example, I type either

Code:
/casper/vmlinuz
or

Code:
kernel=/casper/vmlinuz
It complains that it can't find "/casper/.vml".

I've figured out that it is interpreting this as one long file name, and not a path to a file (i.e. called "vmlinuz"), and furthermore it is limited to 8 character file names. I believe this is why it foolishly inserts a period after the eighth character, and cuts of the entire string after the 3rd extension char.

Any idea why it's doing this? It isn't that syslinux will always do this, because some methods for creating iso-to-usb live-boot images will successfully use "/casper/vmlinuz", without the above problem.
 
Old 06-18-2008, 12:41 PM   #2
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
Anyone have any thoughts on this? I guess what I'm saying is, bump?
 
Old 06-18-2008, 02:24 PM   #3
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I guess that you have to name your kernel differently,so that kernel image extension will have maximum three characters and those characters must not be already reserved characters,for example .bs which is Boot sector and it's reserved for SYSLINUX only,meaning that you can use this extension for ISOLINUX but it want work with SYSLINUX,that's way the methods you were talking about were successful.
It's known that
Quote:
there isn't a standard extension used for Linux kernels, and that none of the commonly loaded data formats (except perhaps COM32) have reliable magic numbers.
so it's reccomended that
Quote:
If you want to name your kernel images something that will avoid confusion, use the extension .zi (zImage/bzImage).
.
Also,one thing to have in mind is
Quote:
When using SYSLINUX or ISOLINUX, make sure that the real name of kernels and other files are the ones you actually specify.

Last edited by alan_ri; 06-18-2008 at 02:25 PM.
 
Old 06-19-2008, 09:24 AM   #4
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
I'm still confused as to why sometimes

Code:
/casper/vmlinuz
is perfectly acceptable to syslinux, but other times syslinux tries to read this fullpath as an 8.3 filename.

For example, when I used "unetbootin" (a downloadable iso-to-usb utility), this worked--but only when unetbootin was run from windows. run from linux I ran into the 8.3 file name issue again.
 
Old 06-19-2008, 01:15 PM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by lumix View Post
For example, when I used "unetbootin" (a downloadable iso-to-usb utility), this worked--but only when unetbootin was run from windows. run from linux I ran into the 8.3 file name issue again.
That is what I was trying to explain in my first post here.
 
  


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
How to get kernel to recognize "root=LABEL=foo" parameter? TSquaredF Slackware 16 11-07-2009 03:58 PM
BASH get marked RegEx result: "foo s bar" | /foo(.*)bar/ 1 -> " s " hansschmucker Programming 6 10-23-2007 11:34 PM
"Installing non-distro Linux on USB key" or "Using syslinux to boot a jffs2" lymae Linux - Newbie 6 12-31-2006 11:00 PM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 04:58 AM
How to use "useradd" command correctly? hus Linux - Newbie 3 05-12-2004 02:20 PM


All times are GMT -5. The time now is 09:53 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