Help - Search - Members - Calendar
Full Version: GRUB problems on flash drive
The CD Forum > The CD Forum > Multibooting systems
jwei44
I have a Kingston 4GB DataTraveler that I wish to make a multi-boot USB. The OS’s I wish to have are Slax, BackTrack 3, and OphCrack. Yes, I know there is a OphCrack module but I’d like a bootable version. Anyway, I have tried partitioning my USB through Hitachi MicroDrive Filter mod, and split the partitions, but each time I would try and boot from Grub, the choices show up and when I select an OS, it just says “Could not find kernel image: linux” So I tried moving the contents of the boot folder into the OS folder and typed in vmlinuz when I got the error. It started loading but had kernel panic. This is how I had my setup:

1. Formatted and partitioned into 4 partitions.
a. 1 partition = syslinux like in this tutorial (http://www.911cd.net/forums//index.php?showforum=38)
b. And each other for its own OS (Slax, Backtrack, Ophcrack so 3 other partitions)
2. In each OS partition, I extracted the .iso/.tar.gz of the OS to its own partition.
3. I then installed GRUB Bootloader using these commands for each

Title (Slax, Ophcrack, Backtrack)
Root (hd0,1; hd0,2; hd0,3)
Makeactive
Chainloader +1

I then installed GRUB using WinGrub but this did not work. I got the could not find kernel error/kernel panic error. I could not figure out how to do this without multiple partitions so I would appreciate some help. Also, when I ask it to load a picture, nothing is loaded. Sometimes, GRUB will say NO GRLDR. The following file is my menu.lst without OphCrack - it was just a test run. Renamed to txt because I couldnt upload lstClick to view attachment
jaclaz
QUOTE (jwei44 @ Oct 5 2009, 02:07 AM) *
GRUB will say NO GRLDR.

Then it is NOT GRUB, it is grub4dos.

Start reading the guide for it.
http://www.boot-land.net/forums/index.php?showtopic=5187
http://diddy.boot-land.net/grub4dos/Grub4dos.htm

Then browse and search the grub4dos Forum:
http://www.boot-land.net/forums/index.php?showforum=66

Forget about your approach of chainloading (always the same) bootsector.

Generally speaking for Linux distro's, you need a kernel line , a initrd line and parameters passes to the kernel line.

You can translate working syslinux ones into grub4dos syntax, but you cannot "invent" your own syntax. (right now your menu.lst simply makes no sense sad.gif).

jaclaz
FM_81
Especially if you're using only live-linuxes: you do not need multiple partitions in very most cases! This makes things more easy ... smile.gif You must not define a bootloaders 'root' (every loader knows his own), give the correct '/path/file' in your config for kernel and initrd, add parameters to kernel-line and ready ...
And repeat this for every live-system you want, until you have no more space on stick ...

MfG, FM_81
jwei44
Click to view attachment

This is my new menu.lst. I think I wrote it right this time. Now can someone tell me if it is or not, and how to load a picture into GRUB4DOS?


ERROR: I just tried booting it and got an error when it was looking for Slax data directory (a livecd.sgn file)
jaclaz
Sometimes I wonder if I can not write in plain enough English. hmm.gif

You need the appropriate parameters, example:

QUOTE
title Slax
kernel /slax/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw
initrd /slax/initrd.gz


Re-read, this time slowly, my previous post.

READ the guide, search the Forum.

jaclaz
jwei44
QUOTE (jaclaz @ Oct 5 2009, 04:52 PM) *
Sometimes I wonder if I can not write in plain enough English. hmm.gif

You need the appropriate parameters, example:



Re-read, this time slowly, my previous post.

READ the guide, search the Forum.

jaclaz


okay thank you much. I fixed my problem but a new one came up - splash screen. I made my own and i am pretty sure i have the right dimensions and everything. I followed the tut on your link but i just cant seem to load it into menu.lst. Should i extract the gz file and have only the xpm? Right now when I boot, I just see a black screen with no splash image, not even the boot menu though I can still choose options. If i remove the splash image, my boot menu comes back. Click to view attachment
Ed_P
I use a background with my menu. This is what I have in my menu.lst. hth

CODE
# global options
# color <foreground/background> [hilite-fg/hilite-bg] - sans splashimage
# colors:                black       blue       green       cyan       red       magenta   brown    light-gray
#   foreground only: dark-gray light-blue light-green light-cyan light-red light-magenta   yellow   white
# color white/blue  black/light-gray
# color white/green white/blue

# ****ground rrggbb   000000=black  ffffff=white  8-f = bright
# foreground 000099
# background eeeeee
  foreground 000088
  background cccccc
  splashimage=/boot/splash/glogo.xpm.gz
# http://www.schultz-net.dk/grub.html


The path to my splashimage is based on where I have it located, you will need to adjust it for your image's location.
jaclaz
@jwei44
the makeactive command in your menu.lst DOES NOT make any sense. w00t.gif

What it is intended for? unsure.gif

Before testing your own image, try with one pre-made, those on the site from which Ed_P got his:
http://www.schultz-net.dk/grub.html
are allright.

Creating those images is pretty much complex and it is easy to make a mistake. hmm.gif

A Windows quick guide is here:
http://www.msfn.org/board/multiple-partiti...11-page-14.html

Please note that recent grub4dos have reintroduced gfxmenu, which allows for more graphical possibilities.

Some more info here:
http://www.boot-land.net/forums/index.php?...&&st=25

A quick visual comparison is here:
http://www.msfn.org/board/alternative-crea...399-page-5.html

jaclaz
jwei44
okay got splash image working, but now it changed my font color. the menu.lst is still the same, the picture file just wasn't built correctly. so anyone know whats wrong iwth my font?
jaclaz
QUOTE (jwei44 @ Oct 7 2009, 03:27 AM) *
okay got splash image working, but now it changed my font color. the menu.lst is still the same, the picture file just wasn't built correctly. so anyone know whats wrong iwth my font?


Comeon, get real. rolleyes.gif

How do you expect that anyone knows what's wrong with your current settings if you don't tell us which they are, what the heck you have done? w00t.gif

You can have a standard reply #32 wink.gif:
http://www.boot-land.net/forums/?showtopic=2587

jaclaz
Ed_P
I suspect he used the foreground/background parms from my example. Simple solution, delete them.
jwei44
everything is working now except ophcrack happy71.gif

I could not figure out how to organize OphCrack because its not organized like the other OS (boot and OS folder)
How do i organize ophcrack correctly?
jaclaz
QUOTE (jwei44 @ Oct 9 2009, 01:12 AM) *
everything is working now except ophcrack happy71.gif

I could not figure out how to organize OphCrack because its not organized like the other OS (boot and OS folder)
How do i organize ophcrack correctly?


QUOTE (jaclaz @ Oct 5 2009, 07:52 AM) *
Then browse and search the grub4dos Forum:
http://www.boot-land.net/forums/index.php?showforum=66


Comeon, do you need spoon feeding? hmm.gif

Last spoonful:
http://www.boot-land.net/forums/index.php?showtopic=7654

jaclaz
FM_81
AFAIK there exists a more easier way: You have already a running SLAX?
You can simply add only the ophcrack-module from ophcrack.
OK, you must start ophcrack by commandline (there will be no K-Menu entry), but that's the only bad part ...

Greeting, FM_81
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.