From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IjH2f-0004QD-AI for mharc-grub-devel@gnu.org; Sat, 20 Oct 2007 12:19:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjH2d-0004NH-JO for grub-devel@gnu.org; Sat, 20 Oct 2007 12:19:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjH2a-0004J6-GR for grub-devel@gnu.org; Sat, 20 Oct 2007 12:19:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjH2a-0004Iw-6o for grub-devel@gnu.org; Sat, 20 Oct 2007 12:19:08 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IjH2a-0000qY-4s for grub-devel@gnu.org; Sat, 20 Oct 2007 12:19:08 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IjH2V-0000DR-KZ for grub-devel@gnu.org; Sat, 20 Oct 2007 18:19:06 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1IjGBC-0006Db-Bt for grub-devel@gnu.org; Sat, 20 Oct 2007 17:23:58 +0200 Date: Sat, 20 Oct 2007 17:23:58 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20071020152358.GA23769@thorin> References: <471949E7.1060607@casema.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <471949E7.1060607@casema.nl> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: grub2 i386 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, 20 Oct 2007 16:19:11 -0000 update-grub isn't intended to generate a grub.cfg that you can use on a standalone rescue floppy. For that you can write it manually or just use grub-mkrescue. On Sat, Oct 20, 2007 at 02:20:55AM +0200, willem wrote: > hello, > > the next script solved my problem partially. > > #!/bin/bash > #This will create a GRUB2 boot floppy that supports GPT system. > #Make sure you have updated /boot/grub completely to ensure proper > floppy creation > #last updated for grub2 1.95 > > grub-mkimage -d /boot/grub -v -o /boot/grub/core.img ls ext2 gpt pc > linux _linux boot chain configfile fshelp help > mke2fs /dev/fd0 > mount -o loop -t ext2 /dev/fd0 /mnt/ > mkdir -p /mnt/boot/grub > cp /boot/grub/boot.img /boot/grub/core.img /boot/grub/*.mod /mnt/boot/grub > cp -f /boot/grub/grub.cfg /mnt/boot/grub > grub-mkdevicemap -m /boot/grub/device.map > grub-setup -d /mnt/boot/grub -v -r '(fd0)' -m /boot/grub/device.map '(fd0)' > umount /mnt/ > > If I then boot from the floppy then the system hangs. > > I have the following grub.cfg : > > # > # DO NOT EDIT THIS FILE > # > # It is automaticaly generated by ././update-grub using templates > # from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub > # > > ### BEGIN /usr/local/etc/grub.d/00_header ### > set default=0 > set timeout=5 > set root=(hd0,1) > terminal console > ### END /usr/local/etc/grub.d/00_header ### > > ### BEGIN /usr/local/etc/grub.d/10_hurd ### > ### END /usr/local/etc/grub.d/10_hurd ### > > ### BEGIN /usr/local/etc/grub.d/10_linux ### > menuentry " GNU/Linux, linux 2.6.22-14-generic" { > linux (hd0,1)/boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro > initrd (hd0,1)/boot/initrd.img-2.6.22-14-generic > } > menuentry " GNU/Linux, linux 2.6.22-14-generic (single-user mode)" { > linux (hd0,1)/boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro > single > initrd (hd0,1)/boot/initrd.img-2.6.22-14-generic > } > menuentry " GNU/Linux, linux 2.6.22-13-generic" { > linux (hd0,1)/boot/vmlinuz-2.6.22-13-generic root=/dev/sda1 ro > initrd (hd0,1)/boot/initrd.img-2.6.22-13-generic > } > menuentry " GNU/Linux, linux 2.6.22-13-generic (single-user mode)" { > linux (hd0,1)/boot/vmlinuz-2.6.22-13-generic root=/dev/sda1 ro > single > initrd (hd0,1)/boot/initrd.img-2.6.22-13-generic > } > menuentry " GNU/Linux, linux 2.6.22-12-generic" { > linux (hd0,1)/boot/vmlinuz-2.6.22-12-generic root=/dev/sda1 ro > initrd (hd0,1)/boot/initrd.img-2.6.22-12-generic > } > menuentry " GNU/Linux, linux 2.6.22-12-generic (single-user mode)" { > linux (hd0,1)/boot/vmlinuz-2.6.22-12-generic root=/dev/sda1 ro > single > initrd (hd0,1)/boot/initrd.img-2.6.22-12-generic > } > ### END /usr/local/etc/grub.d/10_linux ### > > If I remove grub.cfg and I enter the commands manual then I can boot. > > > The Problem is in line 12 of grub.cfg which is automatically generated. > The commands terminal console seem not to be implemented yet. > > or does my script is missing a required module ? > > regards > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)