Booting with grub on usb-flash-pen

I have installed grml-small 0.40 on an usb flash-pen with grml2hd.
When I try to boot it grub answers root (hd1,0) Filesystem unknown, partition type 0x7
Error 17: Cannot mount selected partition
Can any of you help me with, how to identify the flash-pen in grub? I expect to make several lines in the grub/menu, and choose between them depending on, if the PC already has a sata-harddisk or a pata-harddisk.

* Morten Christensen mc-grml@mc.cx [20070701 18:08]:
I have installed grml-small 0.40 on an usb flash-pen with grml2hd.
When I try to boot it grub answers root (hd1,0) Filesystem unknown, partition type 0x7
Error 17: Cannot mount selected partition
Can any of you help me with, how to identify the flash-pen in grub? I expect to make several lines in the grub/menu, and choose between them depending on, if the PC already has a sata-harddisk or a pata-harddisk.
Partition type 0x7 is HPFS/NTFS, looks like you are trying to access the wrong boot device. :)
Try 'root (hd0,0)' instead - does this what you expect it to?
regards, -mika-

Michael Prokop skrev den 01-07-2007 18:16:
- Morten Christensen mc-grml@mc.cx [20070701 18:08]:
I have installed grml-small 0.40 on an usb flash-pen with grml2hd. When I try to boot it grub answers root (hd1,0) Filesystem unknown, partition type 0x7 Error 17: Cannot mount selected partition Can any of you help me with, how to identify the flash-pen in grub? I expect to make several lines in the grub/menu, and choose between them depending on, if the PC already has a sata-harddisk or a pata-harddisk.
Partition type 0x7 is HPFS/NTFS, looks like you are trying to access the wrong boot device. :)
Try 'root (hd0,0)' instead - does this what you expect it to?
Yes, that did the trick. Now with (hd0,0) it boots on sdb1, where (hd1,0) tries to boot on sda1 - the sata-harddisk.
Maybee (hd0, ) is just the first disk in the boot-sequence.
Next question to someone : can I get this grub to boot from an iso-file like grml1.0 or even Knoppix or BartPE on the flash-pen ?

On Sun, 01 Jul 2007 20:46:02 +0200, Morten Christensen wrote:
can I get this grub to boot from an iso-file like grml1.0 or even Knoppix or BartPE on the flash-pen ?
Sure. Piece of cake. Ref:
http://xpt.sourceforge.net/techdocs/nix/live/grml/grml03-Cheatcodes/index.ht...
Use the bootfrom cheatcodes eg,
bootfrom=/dev/hda1/GRML.iso

- Tong - skrev den 03-07-2007 04:55:
On Sun, 01 Jul 2007 20:46:02 +0200, Morten Christensen wrote:
can I get this grub to boot from an iso-file like grml1.0 or even Knoppix or BartPE on the flash-pen ?
Sure. Piece of cake. Ref:
http://xpt.sourceforge.net/techdocs/nix/live/grml/grml03-Cheatcodes/index.ht...
Use the bootfrom cheatcodes eg,
bootfrom=/dev/hda1/GRML.iso
I don't think it is quite that easy.
AFAIK this bootfrom cheatcode only works with iso's, that use the same kernel. That does not go very well together with my idea of having GRML and Knoppix on the same usb-pen.
Because of that problem, I tried an grml2hd install on the flashpen, and now I have en ordinary grub bootmanager to work with and not syslinux.
-- Morten Christensen

On Wednesday 04 July 2007 23:20:57 Morten Christensen wrote:
Because of that problem, I tried an grml2hd install on the flashpen, and now I have en ordinary grub bootmanager to work with and not syslinux.
To have grub on a boot cd just read http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD-... and have fun. This works pretty forward.
-- Morten Christensen
Uli

On Sun, 01 Jul 2007 20:46:02 +0200, Morten Christensen wrote:
can I get this grub to boot from an iso-file like grml1.0 or even Knoppix or BartPE on the flash-pen ?
Using grml1.0 to boot from grml1.0's iso is easy, just use the bootfrom cheat code, or check this out:
boot grml_iso from HD http://xpt.sourceforge.net/techdocs/nix/live/grml/grml04-Boot/ar01s02.html
Grub on USB Stick http://xpt.sourceforge.net/techdocs/nix/live/grml/grml04-Boot/ar01s05.html
To locate the booting USB is more difficult than HD, so you might want to check out grml's booting with UUID option:
http://xpt.sourceforge.net/techdocs/nix/live/grml/grml14-ReleaseRelatedIssue...
To use grub or grml as a general purpose iso-file boot loader, I doubt that it is possible, but I'm ready to listen.
FYI, you might also find the following urls helpful.
A GRUB Tutorial http://xpt.sourceforge.net/techdocs/nix/disk/boot/boot06-Grub/ar01s06.html
Pen Drives under Linux http://xpt.sourceforge.net/techdocs/nix/disk/pen/
thanks
participants (4)
-
- Tong -
-
Michael Prokop
-
Morten Christensen
-
Ulrich Dangel