IPB

Welcome Guest ( Log In | Register )

Recommended
BootDisk.com

Active Users

2 Pages V   1 2 >  
Reply to this topicStart new topic
Multiboot Flash Drive UBCD
basnet2
post Oct 5 2008, 08:09 PM
Post #1


Newbie
*

Group: Members
Posts: 8
Thank(s): 0
Joined: 5-October 08
Member No.: 18,853


United States


Hello everyone,

This past week I have been working on a project for myself to turn my 8GB Sandisk Cruzer into a multitool. I wanted capacity to carry all my files around and then have sections partitioned off for a couple tools; namely Backtrack 3, Knoppix, and Ultimate Boot CD.

So this is how I've started. I partitioned my flash drive into a large 5.5GB primary partition for all my data. The remaining space I divided up into a 25MB Grub Primary partition and then the remaining in an extended partition broken up into smaller logical partitions for each tool (total 5 partitions). Just this morning I got Backtrack and Knoppix up and running booting from GRUB when my flash drive is inserted, however I cannot figure out how to write the menu.lst to properly boot UBCD. Here is my menu.lst so far:

CODE
title        Ultimate Boot CD
root        (hd0,4)
kernel        /boot/baslinux root=/dev/ram0
initrd        /boot/baslinux.gz
boot

title        Knoppix
root        (hd0,5)
kernel         /boot/isolinux/linux ramdisk_size=100000 init=/etc/init lang=pt apm=power-off             vga=791 initrd=minirt.gz nomce quiet pci=nommconf BOOT_IMAGE=knoppix
initrd         /boot/isolinux/minirt.gz
boot


title        Backtrack 3
root        (hd0,6)
kernel        /boot/vmlinuz vga=791 root=/dev/ram0 rw initrd=/boot/initrd.gz init=linuxrc
initrd         /boot/initrd.gz


I completely made up the bit about UBCD hoping that magically it would work lol. Any guidance on this issue would be much aprreciated! Thanks.
Go to the top of the page
 
+Quote Post
ilko
post Oct 5 2008, 08:30 PM
Post #2


Advanced Member
***

Group: Members
Posts: 124
Thank(s): 2
Joined: 27-May 07
Member No.: 7,732


Bulgaria


Have a look here:
http://www.boot-land.net/forums/index.php?showtopic=4486

In post #12 (the attachment) and bellow you will find most of what you need.
What version of UBCD ?
Go to the top of the page
 
+Quote Post
basnet2
post Oct 5 2008, 08:41 PM
Post #3


Newbie
*

Group: Members
Posts: 8
Thank(s): 0
Joined: 5-October 08
Member No.: 18,853


United States


QUOTE (ilko @ Oct 5 2008, 04:30 PM) *
Have a look here:
http://www.boot-land.net/forums/index.php?showtopic=4486

In post #12 (the attachment) and bellow you will find most of what you need.
What version of UBCD ?


UBCD 4.11

That information I believe is for a different bootloader. I have already gotten so far with Grub and I feel like I am right there. I am not booting from the .iso I have extracted the contents onto one of the partitions. It must be possible to direct grub to the right directory to run UBCD if you can do it from an iso, when you burn a disc it is in its uncompressed format so to me it only makes sense.

Thanks
Go to the top of the page
 
+Quote Post
ilko
post Oct 5 2008, 08:51 PM
Post #4


Advanced Member
***

Group: Members
Posts: 124
Thank(s): 2
Joined: 27-May 07
Member No.: 7,732


Bulgaria


Hmm, I think you overlooked the posts.
There is a menu.lst with the submenus, which you can use, and it's for grub4dos, exactly what you need. Ignore the first part of post #12, the ISO part, just open the attachment.
Look at the posts bellow as well, ktp has modified some of the entries.
Go to the top of the page
 
+Quote Post
basnet2
post Oct 5 2008, 09:13 PM
Post #5


Newbie
*

Group: Members
Posts: 8
Thank(s): 0
Joined: 5-October 08
Member No.: 18,853


United States


I seem to be confused.. Is Grub (http://www.gnu.org/software/grub/) the same as Grub4Dos (https://gna.org/projects/grub4dos/)? I installed Grub onto my flash drive using the guide here (http://www.justlinux.com/forum/showthread.php?t=150643). I chose this because it seemed easy to configure the menu.lst for my needs (or so I thought).

So do I need to remove Grub and replace it with Grub4Dos? Or can I simply somehow integrate the code in that attachment into my Grub installation?

Thanks
Go to the top of the page
 
+Quote Post
ilko
post Oct 5 2008, 09:31 PM
Post #6


Advanced Member
***

Group: Members
Posts: 124
Thank(s): 2
Joined: 27-May 07
Member No.: 7,732


Bulgaria


It's me who overlooked (IMG:../forums/style_emoticons/default/chair.gif)

Grub4dos is similar to GNU GRUB, but has many handy options, especially for multiboot, plus the fact that is actively developed.
In PM reply posted a link with some information about both.

I guess many of the menus will still work with GNU GRUB, not tried though.
Go to the top of the page
 
+Quote Post
basnet2
post Oct 6 2008, 12:19 AM
Post #7


Newbie
*

Group: Members
Posts: 8
Thank(s): 0
Joined: 5-October 08
Member No.: 18,853


United States


Alright well sounds like Grub4Dos is the way to go. I went ahead and removed all of the old grub but now I need help installing Grub4Dos. I searched but I am new to this stuff and am having trouble. I copied everything from the Grubinst into my flash drive but now when it boots all I get is something that says grub over and over again, seemingly indefinately. Also if I use this method how do I code in the menu.lst for running iso from different partitions? And do I have to do this for my Backtrack 3 and Knoppix as well as the UBCD or can I leave those as is?

Thanks
Go to the top of the page
 
+Quote Post
ilko
post Oct 6 2008, 02:38 AM
Post #8


Advanced Member
***

Group: Members
Posts: 124
Thank(s): 2
Joined: 27-May 07
Member No.: 7,732


Bulgaria


You need to install grub4dos either in MBR or in the bootsector of the active partition if there is such. In both cases what you already got on the stick remains untouched. You may use grubinst_GUI or the command line grubinst.exe. Next you have to have menu.lst in root with your entries and copy the distributions you want to use to the USB stick, ensuring you don't overwrite existing folders/files.

Grub4dos guide, simple and step-by-step with screenshots etc. etc.:

http://diddy.boot-land.net/grub4dos/Grub4dos.htm

Easiest way to get UBCD working, without playing too much with grub4dos is to make a file with syslinux bootsector, and invoke it if possible from GRUB or if not- from grub4dos:

CODE
title Start SysLinux bootsector from partition 0
root (hd0,0)
chainloader (hd0,0)/syslin.dat


To make syslinux bootsector from windows, where J: is the desired partition letter:
Get syslinux.exe from SysLinux package and do:
CODE
syslinux.exe -f j: j:\syslin.dat

Next is to copy contents of the UBCD ISO in J:.

Sorry about the scattered pieces of information. If you give detailed picture what you already got, I can help you what exactly has to be done. Are you preparing all that from Windows OS?
Go to the top of the page
 
+Quote Post
basnet2
post Oct 7 2008, 08:51 PM
Post #9


Newbie
*

Group: Members
Posts: 8
Thank(s): 0
Joined: 5-October 08
Member No.: 18,853


United States


Hmm well after doing some looking Grub4Dos doesn't seem to fit for me just right because I'm doing all this from a Ubuntu machine. I did it this way because windows cannot (easily) partition a flash drive, and I wanted all the OSes on a seperate partition, just to keep it organized.

Here is exactly what I have:

8GB Flash Drive Paritioned as follows:
Primary - (hd0,0) - Data, not bootable 5.5GB
Primary - (hd0,1) - Boot Grub 25MB
Logical - (hd0,4) - UBCD extracted from ISO 140MB
Logical - (hd0,5) - Knoppix extracted from ISO 830MB
Logical - (hd0,6) - Backtrack 3 extracted from ISO 900MB

on the primary boot partition I have only one directory (/boot/grub) and it contains menu.lst stage1 and stage2
here is my complete menu,lst
CODE
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default        -1

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title        Windows 95/98/NT/2000
# root        (hd0,0)
# makeactive
# chainloader    +1
#
# title        Linux
# root        (hd0,1)
# kernel    /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=219bcb05-ad23-4a7b-9409-596f1e993a2f ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=3

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title        Ultimate Boot CD
root        (hd0,4)
kernel        /boot/baslinux root=/dev/ram0 init=baslinux
initrd        /boot/baslinux.gz
boot

title        Knoppix
root        (hd0,5)
kernel         /boot/isolinux/linux ramdisk_size=100000 init=/etc/init lang=pt apm=power-off             vga=791 initrd=minirt.gz nomce quiet pci=nommconf BOOT_IMAGE=knoppix
initrd         /boot/isolinux/minirt.gz
boot


title        Backtrack 3
root        (hd0,6)
kernel        /boot/vmlinuz vga=791 root=/dev/ram0 rw initrd=/boot/initrd.gz init=linuxrc
initrd         /boot/initrd.gz        




### END DEBIAN AUTOMAGIC KERNELS LIST


Thats all the information on what I am doing. From your previous post I gather I need to install syslinux somewhere and have that booted from grub, and from there I can run UBCD? Or is this wrong, is there someway I can directly boot UBCD from GNU Grub.

Also I want to add a boot to disk option, that when selected would boot to the primary hard disk if possible (IMG:../forums/style_emoticons/default/biggrin.gif)
Thank you so much for all your help so far!
Go to the top of the page
 
+Quote Post
ilko
post Oct 8 2008, 02:12 AM
Post #10


Advanced Member
***

Group: Members
Posts: 124
Thank(s): 2
Joined: 27-May 07
Member No.: 7,732


Bulgaria


A few options:

I. (Safest)
1. Make primary partition for UBCD, format it FAT16 or 32, extract UBCD there and install syslinux on it. Command from linux should be like "syslinux /dev/sdaX". Change sdaX accordingly.
2. Add do grub's menu.lst
CODE
title  Start UBCD
rootnoverify (hd0,2)
chainloader +1

Assuming you installed syslinux on 3rd partition. Change (hd0,2) accordingly.

II. (Experimental)
Same as I. but try to install syslinux on the logical partition. Not sure at all will it install and whether GRUB can chainload it:
http://bugs.gentoo.org/show_bug.cgi?id=230905
Change (hd0,2) in menu.lst accordingly.

III. (Most flexible 1, not tested)
1. Extract grub.exe from the latest package to your boot partition.
2. Add this entry to /boot/grub/menu.lst

CODE
title Start Grub4Dos
kernel /grub.exe --config-file="root (hd0,4); configfile /menus/main.cfg"

3. Extract the attachment from this post into the UBCD partition root.
You may need to edit some of the menus in /menus. Tested many of them, but not all. Look at ktp's edits later in that thread.

IV. (Most flexible 2, clean start)
1. Install Grub4Dos bootsector in (hd0,1) using bootlace.com. You will find example syntax in readme_grub4dos.txt.
2. Copy grldr from grub4dos package to hd0,1
3. Create menu.lst in root of hd0,1 and copy what you have in /boot/grub/menu.lst in it.
4. You should already know how to boot UBCD, we just replace GRUB with GRUB4Dos avoiding the extra step in III.

The reason behind IV- grub4dos can mount and read from NTFS, FAT16/32 and EXT2/3 partitions.
For example you can do direct chainloading of files, residing on such partitions, rather than the limited chainloading of a partition.

GNU GRUB:
CODE
title Load Windows XP from NTFS partition
rootnoverify (hd0,0)
chainloader +1
You are limited to whatever the bootsector at hd0,0 loads.

Grub4Dos- you can either chainload the partition as above or much more flexible:
CODE
title chainload NTLDR
root (hd0,0)
chainloader /ntldr

title Start Vista
root (hd0,0)
chainloader /bootmgr
See the first advantages we came across?

Note- you don't have to use "boot" in menu.lst entries.

QUOTE
title Ultimate Boot CD
root (hd0,4)
kernel /boot/baslinux root=/dev/ram0 init=baslinux
initrd /boot/baslinux.gz
boot


Let us know how it went (IMG:../forums/style_emoticons/default/smile.gif)




Go to the top of the page
 
+Quote Post
« Next Oldest · Linux and other OS flavours · Next Newest »
 

2 Pages V   1 2 >
Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 17th October 2008 - 08:07 AM

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS