chainload using ubcd prgrm

Try looking for help here if you are having problems with the latest beta of Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
flyingsilverfin
Posts: 15
Joined: Thu Jun 18, 2009 4:32 pm

chainload using ubcd prgrm

#1 Post by flyingsilverfin » Fri Sep 03, 2010 7:00 pm

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

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Re: chainload using ubcd prgrm

#2 Post by Icecube » Sat Sep 04, 2010 3:11 am

You can use chain.c32 for that:

Code: Select all

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/

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

Re: chainload using ubcd prgrm

#3 Post by flyingsilverfin » Sat Sep 04, 2010 10:42 am

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.

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

Re: chainload using ubcd prgrm

#4 Post by flyingsilverfin » Sat Sep 04, 2010 5:38 pm

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

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Re: chainload using ubcd prgrm

#5 Post by Icecube » Sat Sep 04, 2010 11:58 pm

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/

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

Re: chainload using ubcd prgrm

#6 Post by flyingsilverfin » Sun Sep 05, 2010 8:13 am

thanks

Post Reply