From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MssYn-0004kf-Pc for mharc-grub-devel@gnu.org; Wed, 30 Sep 2009 02:21:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MssYk-0004j5-VF for grub-devel@gnu.org; Wed, 30 Sep 2009 02:21:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MssYf-0004gS-6X for grub-devel@gnu.org; Wed, 30 Sep 2009 02:21:05 -0400 Received: from [199.232.76.173] (port=60845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MssYe-0004gF-Vu for grub-devel@gnu.org; Wed, 30 Sep 2009 02:21:01 -0400 Received: from mx20.gnu.org ([199.232.41.8]:10850) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MssYe-0003V0-HP for grub-devel@gnu.org; Wed, 30 Sep 2009 02:21:00 -0400 Received: from fg-out-1718.google.com ([72.14.220.158]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MssYd-0000xa-48 for grub-devel@gnu.org; Wed, 30 Sep 2009 02:20:59 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1133089fga.12 for ; Tue, 29 Sep 2009 23:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xQekof9Tk6ftc9KNjxmVusD0VygnC9iBAjmUcvh6Hv8=; b=vljTTGCk5pjlyUECNnvIyBzT50VwjnKwpz47buPrAgS8nboej7mkxc8kBN2X+IKbi5 RsMWrdz8m41S2MV57KvqWxo7zN+j+k2KZ1rBysas/ltvggYlVSHcvMSiq9NKc5sREuRV dfCprzS1/ptyZ3+RZwpwbXHyzOYID2j7STGTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=efI0xZ2XMimNAME4HuVQiDPvyA1lA+Q0hGGe+VEPFSG5qttsMnzkXu4nmrJ/6qT7n6 hNegY7RyPLpvyRs3TZGbm3xv2IF7sHCEsIhxqOJOAe7XL8JcFoPop+WXP52Rw+WhzdU6 D4U3P/u4PcraqOGOHE/5tbrDTfK50N5Il2q/M= Received: by 10.86.232.5 with SMTP id e5mr5051618fgh.27.1254291656755; Tue, 29 Sep 2009 23:20:56 -0700 (PDT) Received: from ?82.130.80.57? (hg-public-dock-57-dhcp.ethz.ch [82.130.80.57]) by mx.google.com with ESMTPS id 12sm237558fgg.28.2009.09.29.23.20.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Sep 2009 23:20:55 -0700 (PDT) Message-ID: <4AC2F8C4.3000909@gmail.com> Date: Wed, 30 Sep 2009 08:20:52 +0200 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <4AC2B06F.5020302@impulze.org> In-Reply-To: <4AC2B06F.5020302@impulze.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Faulty BIOS or GRUB issue (USB Stick won't boot) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2009 06:21:07 -0000 Daniel Mierswa wrote: > Hey list, > in January this year I got my hands dirty with a laptop and tried > booting it via USB stick. The thing is that, when installed to the MBR > of the stick, the BIOS just won't detect it and print "Operating > system not found" and skips to reading the MBR from HDD. If I install > it into the active boot partition of the stick, it will show me the > "GRUB " notification_string (boot/i386/pc/boot.S). I'm currently > booting this stick via syslinux which then loads a GRUB image I > created with lnxboot.img. However I find this very impractical, as I > need to find the UUID of the stick (which GRUB then sees as fd0) and > load a configuration which itself loads the real GRUB configuration. I > received quite a few help during that time of year by Robert and > daChaac via IRC, and I also posted this on help-grub@ but got no > answer there. I bring this up again, because someone else faced the > same issue with another USB stick (until that point I seemed to be the > only one facing it). I "debug"ed as good as I could by putting the > output of the notification string in the boot.S file to several places > and reboot. It comes to the point where it executes `jmp > *(kernel_address)`. > If anyone has any idea how to go on with this issue, I'd welcome it. > Thanks in advance. > This behaviour is probably caused by BIOS exposing first partition as a disk. I would consider this a BIOS bug. A workaround could be following: losetup /dev/loop0 /dev/sdb1 mount /dev/loop0 /mnt/usb grub-install --root-directory=/mnt/usb /dev/loop0 Don't forget to apply fezie's bugfix for root-directory Does anyone know a better workaround?