It is currently Wed Nov 26, 2014 1:24 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: chainload using ubcd prgrm
PostPosted: Fri Sep 03, 2010 7:00 pm 
Offline

Joined: Thu Jun 18, 2009 4:32 pm
Posts: 15
is there a program on ubcd that can boot another partition on the same device?
i only need it because i have ubcd 5 on the first partition of my memory stick, and ubuntu 9.10 on the next. right now what im doing and whats a big pain is using ubuntu as my default boot (by changing the boot flag to second partition in gparted), then if i want to boot ubcd i change the boot flag from ubuntu to the ubcd partition. it takes ages and i remember i somehow used super grub disk or something else once to boot into the next partition so i would not have to change the boot flags every time.

thx


Top
 Profile  
 
 Post subject: Re: chainload using ubcd prgrm
PostPosted: Sat Sep 04, 2010 3:11 am 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
You can use chain.c32 for that:
Code:
LABEL ubuntu
MENU LABEL Boot Ubuntu on partition 2
COM32 /boot/syslinux/chain.c32
APPEND hd0,2

Add this code to one of the syslinux config files in /ubcd/menus/syslinux/ (or to the custom syslinux config file: /ubcd/custom/custom.cfg)

_________________
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/


Top
 Profile  
 
 Post subject: Re: chainload using ubcd prgrm
PostPosted: Sat Sep 04, 2010 10:42 am 
Offline

Joined: Thu Jun 18, 2009 4:32 pm
Posts: 15
i didnt work at first (it didnt display the entry)
what i did was i added what u said to the syslinux.cfg, then i added MENU INCLUDE /boot/syslinux/syslinux.cfg into /ubcd/menus/syslinux/menu.cfg

now i have
main
ubuntu
.
.
.

the others that are there by default. i dont need the main label, is it necessary or can i just take it out. when i select it it takes me to the same place, which makes me think i need it.


Top
 Profile  
 
 Post subject: Re: chainload using ubcd prgrm
PostPosted: Sat Sep 04, 2010 5:38 pm 
Offline

Joined: Thu Jun 18, 2009 4:32 pm
Posts: 15
sorry i didnt read what you said properly now that i look over it again i see that u said essentially what i did...
i changed it to what u said now

thanks

could u also explain how all the menus work? i guess at first syslinux is the bootloader, then it displays main.cfg in /boot/syslinux/ or does it go to /ubcd/boot/syslinux/menus.cfg


Top
 Profile  
 
 Post subject: Re: chainload using ubcd prgrm
PostPosted: Sat Sep 04, 2010 11:58 pm 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
Quote:
could u also explain how all the menus work? i guess at first syslinux is the bootloader, then it displays main.cfg in /boot/syslinux/ or does it go to /ubcd/boot/syslinux/menus.cfg

When SYSLINUX boots, it will look for its configuration file 'syslinux.cfg', in /boot/syslinux, /syslinux and / (SYSLINUX 4 first looks in the directory where Syslinux is installed (where ldlinux.sys is located)). In the case of UBCD, /boot/syslinux/syxlinux.cfg gets read by SYSLINUX and will load /ubcd/menus/syslinux/main.cfg.

You can read more about the Syslinux syntax at:
http://syslinux.zytor.com/wiki/index.php/SYSLINUX
menu.c32 specific: http://syslinux.zytor.com/wiki/index.ph ... t/menu.c32

_________________
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/


Top
 Profile  
 
 Post subject: Re: chainload using ubcd prgrm
PostPosted: Sun Sep 05, 2010 8:13 am 
Offline

Joined: Thu Jun 18, 2009 4:32 pm
Posts: 15
thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group