From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N4IHZ-0007Nf-Tj for mharc-grub-devel@gnu.org; Sat, 31 Oct 2009 14:02:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4IHY-0007NM-3h for grub-devel@gnu.org; Sat, 31 Oct 2009 14:02:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4IHT-0007Mu-Fb for grub-devel@gnu.org; Sat, 31 Oct 2009 14:02:31 -0400 Received: from [199.232.76.173] (port=47159 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4IHT-0007Mo-CK for grub-devel@gnu.org; Sat, 31 Oct 2009 14:02:27 -0400 Received: from sif.is.scarlet.be ([193.74.71.28]:34338) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4IHS-0004To-Ou for grub-devel@gnu.org; Sat, 31 Oct 2009 14:02:27 -0400 Received: from [213.49.126.237] (ip-213-49-126-237.dsl.scarlet.be [213.49.126.237]) (authenticated bits=0) by sif.is.scarlet.be (8.14.2/8.14.2) with ESMTP id n9VI2LKQ023729; Sat, 31 Oct 2009 19:02:22 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=scarlet.be; s=scarlet; t=1257012143; bh=VmBgWXw2uhd4ygrGjAaWOKmpk4gT4cH9XjsgQ0iK9X4=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=2rdvEF8HsqApJkRM43xPTq2kCb5knhvu8/rApNuV++z0U1BOHp5JJaN0E1pwoks2B yM6wpWmw8JlUDbzUCBP5PPo9frKtE7UYBdsrfbxtS6ou9ieyX70kNEjeVFssiTE1yv 7ocrcmUJP6n47PRT0cGaFj63jjfDWz8afIiFlqHw= Message-ID: <4AEC7BAD.3020903@scarlet.be> Date: Sat, 31 Oct 2009 18:02:21 +0000 From: rubisher User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <57a6d2110910290758i23de79c1y2b87513f674023b@mail.gmail.com> <20091030185759.GA30150@thorin> <57a6d2110910301219w236e2472oa28e726d7876e4ae@mail.gmail.com> <20091030224639.GA32482@thorin> <57a6d2110910302344x4209dcb4mb745e30487ad7428@mail.gmail.com> <1256983491.3186.2.camel@fz.local> In-Reply-To: <1256983491.3186.2.camel@fz.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: sif 20001; Body=2 Fuz1=2 Fuz2=2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [patch] grub incorrectly identifies ext3 as fat 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: Sat, 31 Oct 2009 18:02:32 -0000 Hello Felix, Felix Zielcke wrote: > Am Samstag, den 31.10.2009, 02:44 -0400 schrieb Andrew Clausen: >> Hi, >> >> 2009/10/30 Robert Millan : >>>> What about probing in the boot-loader? >>> It's too late then. grub-install needs to know which filesystem module has >>> to be included in core.img. >> What if the core.img contains modules for 2 or more file systems? >> > > That only happens if you use grub-install with --modules or you directly > create it with grub-mkimage. > By default there's just one module and there only needs to be one. > The one to access /boot/grub. > It doestn't make sense to include more then one fs module into core.img > With grub.efi the situation seems to be different though. But IMO it's a > bug there. > > To boot my debian installation on an ibm p5 lpar, I am trying to install grub2 i.e. working with grub-ieee1275. I try first to rebuild grub-1.97~beta4 but it was failing. I finaly find out that I can build and boot grub2 (only) with another gcc optimization option (-O0 in place of default -Os). But it still failed to boot the linux kernel after grub-install: 1/ here is the chrooted mount points: /dev/sdb6 on /mnt/NewInst type ext3 (rw) /dev/sdb3 on /mnt/NewInst/boot type ext3 (rw) /dev/sdb1 on /mnt/NewInst/boot/grub type vfat (rw) /dev/mapper/p5tst001vg-var on /mnt/NewInst/var type ext3 (rw) ps: /mnt/NewInst/boot/grub have to be a mount point for grub-install; if it wasn't: # grub-install hd1 /boot/grub must be a mount point. and must be a fat16 (or iirc hfs) for ofs 2/ a typical menu entry: ### BEGIN /etc/grub.d/10_linux ### menuentry "Debian GNU/Linux, with Linux 2.6.30-2-powerpc64" { insmod ext2 set root=(hd1,3) search --no-floppy --fs-uuid --set 16ef0754-c845-46e9-a948-b9669ee68329 linux /vmlinux-2.6.30-2-powerpc64 root=UUID=3c51c43e-63a7-4ff1-9b1c-cf98addcb7ed ro quiet initrd /initrd.img-2.6.30-2-powerpc64 } and at the grub sh prompt, ls doesn't report any disk? Even thought: # more /boot/grub/device.map (hd0) /dev/sda (hd1) /dev/sdb Could it be for the reason you explained above? I am worry of it because when I copy vmlinux-2.6.30-2-powerpc64 and initrd.img-2.6.30-2-powerpc64 in the /mnt/NewInst/boot/grub fs and this simple menuentry: ### BEGIN /etc/grub.d/10_linux ### menuentry "Debian GNU/Linux, with Linux 2.6.30-2-powerpc64" { linux /vmlinux-2.6.30-2-powerpc64 root=UUID=3c51c43e-63a7-4ff1-9b1c-cf98addcb7ed ro sysrq=1 insmod=sym53c8xx insmod=ipr quiet initrd /initrd.img-2.6.30-2-powerpc64 } the debian installation finaly boot fine ;<) The problem is that this vfat fs afaik must be < then 24Mb and btw couldn't contained more then one kernel image (and its initrd), though. Tia for further advise, J.