From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N4VFo-0006wu-3r for mharc-grub-devel@gnu.org; Sun, 01 Nov 2009 02:53:36 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4VFl-0006wd-Sk for grub-devel@gnu.org; Sun, 01 Nov 2009 02:53:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4VFg-0006w8-Aj for grub-devel@gnu.org; Sun, 01 Nov 2009 02:53:32 -0500 Received: from [199.232.76.173] (port=46243 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4VFg-0006w5-4U for grub-devel@gnu.org; Sun, 01 Nov 2009 02:53:28 -0500 Received: from mx20.gnu.org ([199.232.41.8]:46910) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4VFf-0001Bl-Ir for grub-devel@gnu.org; Sun, 01 Nov 2009 02:53:27 -0500 Received: from mail-ew0-f211.google.com ([209.85.219.211]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4VFe-0007sV-K0 for grub-devel@gnu.org; Sun, 01 Nov 2009 02:53:26 -0500 Received: by ewy7 with SMTP id 7so1938769ewy.31 for ; Sun, 01 Nov 2009 00:53:24 -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=JPv+n15G/rj+pQnoIAg68M5KEDI//mQuta8ztR1YEDI=; b=BuBAQI75xsg0gG+aUBxnEcZNNE96VwnBor8G2NsGjRvyb09nf8f5IPtqnOXODaeFzc 6v8SHag4Uxergw2KNpo9dHdnaitzXNPrV11/W1Au/RWZcQW5ErN2iWSCKcP+sYte8KbY utr8e5qnuerVOKuH8hcG2I3QzBCoLhVDgOJlY= 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=LpbbOIDe2nBCcnnPBmhMSI1QRB8ktTvWyQSLjAAajaYWMPSVJZw2cDRkVY7e06fVGr an2n8/0uM6PwFGLJcH//VXIfBSw6VNxclk0e2fV9hAc20qKk1hJaMO8sLTI8wpTNurFN KsrGIAlQDB30Ef2hydPe+TUqZlngBHnZgHUDQ= Received: by 10.216.87.147 with SMTP id y19mr2672112wee.12.1257062004642; Sun, 01 Nov 2009 00:53:24 -0700 (PDT) Received: from debian.bg45.phnet (eduroam127094.aire.ucm.es [147.96.127.94]) by mx.google.com with ESMTPS id 23sm12781540eya.20.2009.11.01.00.53.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Nov 2009 00:53:23 -0700 (PDT) Message-ID: <4AED3E71.9030300@gmail.com> Date: Sun, 01 Nov 2009 08:53:21 +0100 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: <1257008516.3149.45.camel@ron-desktop> <20091031173046.GA25795@thorin> <1257033022.4329.58.camel@ron-desktop> In-Reply-To: <1257033022.4329.58.camel@ron-desktop> 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: "error: invalid magic number" when booting from ISO loopback 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: Sun, 01 Nov 2009 07:53:34 -0000 Ron wrote: > On Sat, 2009-10-31 at 18:30 +0100, Robert Millan wrote: > >> On Sat, Oct 31, 2009 at 06:01:56PM +0100, Ron wrote: >> >>> Hi, >>> >>> I was playing around with Grub2 (latest svn version) and its loopback >>> feature and had some problems to boot an ISO. The ISO file is the 32Bit >>> version of Ubuntu 9.10 which is located on a 8GB USB flash drive with >>> one FAT32 partition. I've tried to boot it with the following menu >>> entry: >>> >>> menuentry "Ubuntu" { >>> set isofile="/boot/isos/ubuntu-9.10-desktop-i386.iso" >>> >>> loopback loop $isofile >>> linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile >>> quiet splash noprompt -- >>> initrd (loop)/casper/initrd.lz >>> } >>> >>> This entry fails silently and when the commands were executed one by one >>> the linux command shows the error message "error: invalid magic number". >>> >> This error means vmlinuz wasn't read correctly. >> >> This could be either a problem in loopback/iso9660 or a problem in the >> partition that contains ubuntu-9.10-desktop-i386.iso. >> >> Can you figure out which applies? For example, if you put a physical CD >> with ubuntu-9.10-desktop-i386.iso in the drive and access it from >> GRUB (via ata.mod), are you able to load Linux this way? >> >> > > I'm sorry but right now I can't burn a CD. But I made some more test > with the ISO file that doesn't work and the copy from it that does work. > As I've mentioned both files shows the same correct MD5 sum under Linux. > Also GRUB shows with the ls command the same file size of 723488768 > Bytes (690 MiB) for both of them. But the output of the blocklist > command is looking wrong. > > blocklist output for the ISO that doesn't work: > 11833144+161304, 13766112+8, 13853680+218800, 14072488+118288 > > blocklist output for the ISO that does work: > 15128592+328728, 11652008+16, 11654088+1792, 11655888+8,11655912+440, > 12089440+16, 12404120+126080, 12530256+99464, 12629728+761984, 13413432 > +94536 > > So if you sum up the sectors from the ISO that doesn't work and multiply > it with 512 you get only 255180800 Bytes (243 MiB). It looks like the > blocklist command encounters an error and exits before it is done, but > no error message is visible. > > Can you disable offset checking in kern/disk.c and retry? > Some more info that may help. > > blocklist output from the vmlinuz file from the mounted ISO file (both > ISO files show the same output): > 1384372+7598, 1391970[0-224] > > fdisk -lu output from the USB flash drive: > Disk /dev/sdb: 8086 MB, 8086618112 bytes > 255 heads, 63 sectors/track, 983 cylinders, total 15794176 sectors > Units = sectors of 1 * 512 = 512 bytes > Disk identifier: 0x2c6b7369 > > Device Boot Start End Blocks Id System > /dev/sdb1 * 63 15791894 7895916 b W95 FAT32 > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git