All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Anton Mitterer <christoph.anton.mitterer@physik.uni-muenchen.de>
To: grub-devel@gnu.org
Subject: GRUB1 on USB-Stick
Date: Thu, 31 Jan 2008 10:40:55 +0100	[thread overview]
Message-ID: <1201772455.3262.5.camel@etppc19> (raw)

Hello.

I've just tried to install grub1 on an USB-stick in order to boot from
it, but it continues to fail:

Following situation:
-BIOS is definitely able to boot from USB
-the system has one harddisk /dev/sda
-USB-stick has one partition /dev/sdb1, type 0x83, filesystem ext3
-Debian sid => grub 0.97
-Installation of grub on /dev/sda works with both grub-install and the
grub shell

The stick is mounted on /mnt/
-/boot/grub/device.map shows:
(hd0) /dev/sda
This is also automatically generated by grub-install --recheck /dev/sda

-/mnt/boot/grub/device.map shows:
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
Automatically generated, too (via grub-install --recheck
--root-directory=/mnt /dev/sdb)
btw: this is strange, because the notebook doesn't have an floppy dr

I really tried every combination I could think of: Via grub-install,
grub-shell, with and without device.map, with hd0 and hd1, from a chroot
and not, etc. etc.


Some of them look like the following:

via grub-install:
# grub-install --recheck --root-directory /mnt /dev/sdb
Probing devices to guess BIOS drives. This may take a long time.
The file /mnt/boot/grub/stage1 not read correctly.

or:

via grub-install:
# grub-install --root-directory /mnt /dev/sdb
The file /mnt/boot/grub/stage1 not read correctly.


via grub shell:
grub> device (hd0) /dev/sdb
grub> root (hd0,0)
FIlesystem type is ext2fs. partition type 0x83
grub> setup (hd0)
setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type
grub>


From chroot into /mnt/
grub-install --recheck --root-directory /mnt /dev/sdb (with and without
--recheck) seems to work,.. at least grub-install reports no error,
BUT...

When I now boot from the stick (it actually seems to use the grub on the
stick, and not that on the HDD, because it "works" even, when I
deactivate the HDD in the BIOS) grub loads,... but it uses the menu.lst
from the hdd (/dev/sda) and not from the stick. (I can see this because
I've renamed the entries).

Perhaps you have some ideas :-)

Note, that switching to grub2 is not really an option for me,... on
reason are still missing features in grub2 like password protection.


Best wishes,
Chris.

btw: Please CC me, as I'm currently not subscribed.




             reply	other threads:[~2008-01-31  9:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-31  9:40 Christoph Anton Mitterer [this message]
2008-01-31  9:51 ` GRUB1 on USB-Stick Marco Gerards
2008-01-31 10:01   ` Christoph Anton Mitterer
2008-01-31 10:31     ` Marco Gerards
2008-01-31 11:01     ` Robert Millan
2008-01-31 11:12       ` Christoph Anton Mitterer
2008-01-31 11:20         ` Marco Gerards
2008-01-31 12:50         ` Robert Millan
2008-01-31 11:00   ` Robert Millan
2008-01-31 11:11     ` Marco Gerards
2008-02-01  1:32 ` walt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1201772455.3262.5.camel@etppc19 \
    --to=christoph.anton.mitterer@physik.uni-muenchen.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.