grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub2 i386


From: Robert Millan
Subject: Re: grub2 i386
Date: Sat, 20 Oct 2007 17:23:58 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
> 

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]