All of lore.kernel.org
 help / color / mirror / Atom feed
* grub2 i386
@ 2007-10-18 21:31 willem
  2007-10-19 11:55 ` Robert Millan
  0 siblings, 1 reply; 6+ messages in thread
From: willem @ 2007-10-18 21:31 UTC (permalink / raw)
  To: The development of GRUB 2

hello,
i checked out grub2 from cvs and compiled it.
I tried update-grub , but it failed because it cannot find the path to 
device hda.
In the latest kernels this name is changed to sda.

how can i change that in grub2 ?

regards



^ permalink raw reply	[flat|nested] 6+ messages in thread
* grub2 i386
@ 2007-10-20  0:20 willem
  2007-10-20  7:43 ` Vesa Jääskeläinen
  2007-10-20 15:23 ` Robert Millan
  0 siblings, 2 replies; 6+ messages in thread
From: willem @ 2007-10-20  0:20 UTC (permalink / raw)
  To: The development of GRUB 2

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




^ permalink raw reply	[flat|nested] 6+ messages in thread
* grub2 i386
@ 2007-10-20 11:48 willem
  0 siblings, 0 replies; 6+ messages in thread
From: willem @ 2007-10-20 11:48 UTC (permalink / raw)
  To: The development of GRUB 2

hello,

With an editor I did remove the entry console from grub.cfg on my floppy.
Now I can boot grub2 from the floppy.

So in the grub2 templates the entry console must be removed.

regards.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-20 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-18 21:31 grub2 i386 willem
2007-10-19 11:55 ` Robert Millan
  -- strict thread matches above, loose matches on Subject: below --
2007-10-20  0:20 willem
2007-10-20  7:43 ` Vesa Jääskeläinen
2007-10-20 15:23 ` Robert Millan
2007-10-20 11:48 willem

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.