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 02-27-2009, 04:14 PM   #1
tokico
Member
 
Registered: Jan 2009
Posts: 49

Rep: Reputation: 18
Making Syslinux boot a different partition also with Syslinux.


I'm trying to make a multi-boot Syslinux USB flash drive. I want to do the following:

/dev/sda1 -> Boot partition, very small, just for Syslinux main menu.
/dev/sda2 -> eg: Damn Small Linux with Syslinux installed.
/dev/sda3 -> eg: Puppy Linux with Syslinux installed.
...

But how can I, from the syslinux installed on sda1 boot sda2 or sda3? And if possible, using "relative paths"? Let me explain: if I go to a computer with a SATA drive, the USB disk will be /dev/sdb* and not sda, so Syslinux can't boot sda2 or 3. Those are partitions of the SATA disk, not of the USB disk.

It could be something like in GRUB:

root(hd0,1)
chainloader +1

And that will boot /dev/sda2, from a GRUB installation on sda1.

Hope anybody understood, ToKico
 
Old 02-27-2009, 06:01 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
you would edit the syslinux.cfg in a similar way that you would edit /boot/grub/grub.conf
although the syntax is probably different, same concept

this is the relevant part of the isolinux.cfg from the lfs live boot cd, which is the same syntactically i believe as syslinux.cfg
Code:
label linux
  kernel linux
  append initrd=initramfs_data_cpio.gz quiet

label linux64
  kernel linux64
  append initrd=initramfs_data64_cpio.gz quiet

Last edited by frieza; 02-27-2009 at 06:03 PM.
 
Old 02-28-2009, 07:32 AM   #3
tokico
Member
 
Registered: Jan 2009
Posts: 49

Original Poster
Rep: Reputation: 18
That's not what I want. I want to boot a kernel/initrd located on another partition, not on the same.
 
Old 02-28-2009, 11:28 AM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
that was an example..
here is some documentation on syslinux
http://syslinux.zytor.com/wiki/index.php/SYSLINUX
 
Old 03-01-2009, 08:49 AM   #5
tokico
Member
 
Registered: Jan 2009
Posts: 49

Original Poster
Rep: Reputation: 18
I've read that and I saw a kernel append option: "root=". Will that solve my problem? And for the "relative drive" I could use by-uuid, right?
 
Old 03-02-2009, 11:00 AM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
probably, wont know for sure until ya try it but that would be my guess, or use the same scheme as grub uses
 
Old 03-04-2009, 09:37 AM   #7
tokico
Member
 
Registered: Jan 2009
Posts: 49

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by frieza View Post
probably, wont know for sure until ya try it but that would be my guess, or use the same scheme as grub uses
Thanks anyway, but I'm going to use GRUB.

Mods: close the topic, please.
 
  


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
Syslinux boot floppy: how do I build it ?? chantal4 Linux - Newbie 6 04-01-2007 10:59 AM
syslinux boot cd eqi Linux - Software 1 02-01-2006 06:55 PM
syslinux can't boot leihsun Linux - General 1 02-01-2006 04:42 PM
Kernel 2.6.11.7 & Syslinux Boot Disc tobyheywood Linux - Newbie 2 04-29-2005 06:17 AM
trouble with syslinux for usb flash boot swipple Linux - Newbie 1 01-07-2005 01:13 AM

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

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