GRUB hanging when trying to boot from pendrive.


Forum: USB booting
Topic: GRUB hanging when trying to boot from pendrive.
started by: Zombie13

Posted by Zombie13 on Mar. 05 2008,18:43
I've done an install from the LiveCD to my pendrive using the option under "Apps -> Tools". However, when my PC tries to boot from the USB device, the word "GRUB" appears but then the PC hangs.

Can anyone give me any pointers as to why this might be happening?

Cheers.

Posted by curaga on Mar. 05 2008,20:40
I'm guessing it can't find it's fat_stage1_5 file. The automatic script sometimes doesn't work properly.
You can try this from inside DSL livecd:

Get a root console. Then create a file with these contents (if your usb stick isn't sda, change that)
Quote
(hd0) /dev/sda
Name it whatever you want, but I'll use "device.map".
Then you will install grub manually, using that file to point to the device.

The commands are
Quote
grub --device-map=device.map
root (hd0,0)
setup (hd0)
quit

Posted by Zombie13 on Mar. 07 2008,19:08
Many thanks for the reply, but after doing "grub --device-map=device.map", then "root(hd0,0)", I get "Error 27: Unrecognized command".
Posted by ^thehatsrule^ on Mar. 07 2008,21:45
Try adding a space after root, and probably for setup as well
Posted by curaga on Mar. 08 2008,05:51
Indeed. Thanks ^hats^. Fixed my original post.
Posted by Zombie13 on Mar. 11 2008,19:07
Thanks guys, but now I get another problem...

Code Sample
   GRUB  version 0.91  (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported.  For the first word, TAB
  lists possible command completions.  Anywhere else TAB lists the possible
  completions of a device/filename. ]

grub> root (hd0,0)
Filesystem type is fat, partition type 0xb

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found


:(

EDIT: OK, I spotted the obvious - partition 0 is FAT. I tried "root (hd0,1)" instead, and then the setup part gave some output that looked promising (can't paste it now, I've since rebooted). However, now when trying to boot from the pendrive I get "GRUB Hard Disk Error". At least I get three more words out of it before everything grinds to a halt. Any more suggestions?

Posted by Zombie13 on Mar. 14 2008,06:41
OK, thought I'd post some info about the pendrive...

Output from fdisk...
Code Sample
Disk /dev/sda: 1026 MB, 1026555904 bytes
32 heads, 62 sectors/track, 1010 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         956      948351+   b  W95 FAT32
/dev/sda2   *         957        1010       53568   83  Linux


Contents of /boot/grub/device.map
Code Sample
(hd0) /dev/sda


Contents of /boot/grub/menu.lst...
Code Sample
default 0
timeout 10
title DSL
root (hd0,1)
kernel /linux24 ramdisk_size=100000 lang=us quiet vga=791 frugal    lang=uk
initrd /minirt24.gz


Can nobody help me on this? :(

Cheers.

Posted by sheldonisaac on Mar. 14 2008,13:47
Quote

kernel /linux24 ramdisk_size=100000 lang=us quiet vga=791 frugal    lang=uk

initrd /minirt24.gz


Maybe linux24 and minirt24.gz are in /boot, not in /

Posted by Zombie13 on Mar. 15 2008,10:45
Just checked... both linux24 and minirt24.gz are in /
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.