LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-19-2010, 04:27 PM   #1
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Rep: Reputation: 17
Booting different partitions on a usb drive with syslinux


Hello,

I have an 8gb usb flash drive that I had high aspirations of using for a recovery/install/messing around multipurpose drive.

fdisk shows:

Code:
$ sudo fdisk -l /dev/sdb
[sudo] password for woodnt: 

Disk /dev/sdb: 8036 MB, 8036285952 bytes
255 heads, 63 sectors/track, 977 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002815d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          65      522081    b  W95 FAT32
Partition 1 does not end on cylinder boundary.
/dev/sdb2              66         977     7325640    5  Extended
/dev/sdb5             913         977      522081   82  Linux swap / Solaris
/dev/sdb6   *          66         161      771057    b  W95 FAT32
/dev/sdb7             162         249      706828+   b  W95 FAT32
I have used unetbootin to install a Linux mint LXDE liveCD iso which works great on sdb6

On sdb7, I have a regular Linux mint 64 bit liveCD iso.

It will boot into the LXDE environment no problem.

What I'm wanting to do is figure out how to "daisy-chain" the syslinux boot menu to the linux mint 64bit livecd's isolinux.cfg menu.

I see in syslinux, there is a syntax that will allow you to use a different .cfg file as so:

Code:
LABEL othermenu
	MENU LABEL Another Menu
	KERNEL menu.c32
	APPEND othermenu.conf
However, it will be on a different partition. I can't find a way to reference partitions from within syslinux .cfg syntax.

Can anyone help? Do I need to abandon syslinux and try something else? If so what?

Yours,
Narnie

below is the current syslinux.cfg file with an example of what I'm trying to do at the end (which I know won't work), but I need it to go to the filesystem on another partition:

Code:
default vesamenu.c32
prompt 0
menu title UNetbootin
timeout 100

label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/mint.seed boot=casper quiet splash --

label ubnentry0
menu label Start Linux Mint LXDE
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper  quiet splash --

label ubnentry1
menu label Start Linux Mint LXDE (compatibility mode)
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper xforcevesa  ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --

label ubnentry2
menu label Check the integrity of the CD
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check  quiet splash --

label ubnentry3
menu label Memory Test
kernel /isolinux/memtest
append initrd=/ubninit 

label ubnentry4
menu label Boot from local drive
kernel /ubnkern
append initrd=/ubninit 

label ubnentry5
menu label Boot Linux Mint 64 bit
kernel /isolinux/vesamenu.c32
append isolinux/isolinux.cfg root=/dev/sdb7/

Last edited by narnie; 03-19-2010 at 08:43 PM.
 
Old 03-21-2010, 10:13 AM   #2
digitalis_2001
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Rep: Reputation: 0
I did similar experiments with Slax time ago. I remember syslinux was a struggle (perhaps I also did not undertand how to put it all together) so I ended with lilo. The grub should work well too.

Here I have found some examples with iso boot: http://dirk.eddelbuettel.com/quantia..._lilogrub.html
 
Old 03-21-2010, 10:21 AM   #3
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Here is what I'd do:-
Install UNetBootin: sudo aptitude install unetbootin
Install GParted: sudo aptitude install gparted
Then open up GParted and partition the media in preparation for multi boot environment.
Use UNetBootin to install the desired distributions to the prepared partitions.
Use UnetBootin to install just the bootloader to the device.

Hopefully this helps.
Good luck!
 
Old 03-22-2010, 01:12 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 leopard View Post
Here is what I'd do:-
Install UNetBootin: sudo aptitude install unetbootin
Install GParted: sudo aptitude install gparted
Then open up GParted and partition the media in preparation for multi boot environment.
Use UNetBootin to install the desired distributions to the prepared partitions.
Use UnetBootin to install just the bootloader to the device.

Hopefully this helps.
Good luck!
This is what I have already done, except this last step. How does one use unetbootin to install just the bootloader to the device. I don't see that as an option.

Thanks,
Narnie
 
Old 03-22-2010, 04:05 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,360

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
I think unetbootin runs syslinux to install a boot loader.(that being syslinux)
 
  


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
syslinux and multiple partition usb drive zytsef Linux - Software 3 03-14-2010 06:26 PM
booting multiple partitions on usb v1nsai Linux - Software 14 05-11-2009 08:42 PM
Mounting USB external drive with multiple partitions, USB bluetooth mouse xmeson Slackware 7 12-17-2006 09:00 AM
syslinux error on USB flash drive downinthemine Linux - Distributions 3 12-12-2004 08:00 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM

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

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