PDA

View Full Version : USB-Installation with mkbootdev - How to boot with grub?



nitric
04-03-2007, 06:52 PM
Hello,

I've installed Knoppix with mkbootdev. My USB-Stick isn't bootable, so I've tried to start knoppix with grub?

GRUB> root (hd1,0)
Filesystem type is fat, partition type 0xb - Nice! (hd1,0) is in my case the USB-Stick...
GRUB> kernel /linux root=/dev/sda1 ro vga=792
[Linux-bzImage...] - Nice!
GRUB> initrd /minirt.gz
[Linux-initrd...] - Nice!
GRUB>boot
let's go!

And the kernel ring buffer says:
RAMDSIK: Compressed image found at Block 0
RAMDISK: incomplete write (-28 != 32768) 4194304
VFS: Cannot open root device "sda1" or unknown block(0,0)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Outch! It seems that I need a ramdisk, however, I don't have the slightest clue how to make this with grub... Is there any other possibility?

nitric

nitric
04-03-2007, 07:54 PM
A grub menu.lst should look like this one:

default 0
timeout 3

title KNOPPIX
root (hd1,0)
kernel /linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet BOOT_IMAGE=/knoppix
initrd /minirt.gz
boot

Or with the Grub-Console:
GRUB> root (hd1,0) - In my case the USB-Stick is (hd1,0).
GRUB> kernel /linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet BOOT_IMAGE=/knoppix
GRUB> initrd /minirt.gz
GRUB> boot

If you need some Cheat-Codes in my-case the resolution of my widescreen 'screen=1280x800' for example:
GRUB> kernel /linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet screen=1280x800 BOOT_IMAGE=/knoppix

Got this from: http://www.knoppix.net/wiki/USB_Based_FAQ