All of lore.kernel.org
 help / color / mirror / Atom feed
* grub-install
@ 2005-07-24 18:44 Yoshinori K. Okuji
  2005-07-25  2:04 ` grub-install Hollis Blanchard
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Yoshinori K. Okuji @ 2005-07-24 18:44 UTC (permalink / raw)
  To: The development of GRUB 2

I have mostly implemented grub-install as a shell script. I just copied it 
from GRUB Legacy then adapted it to GRUB 2. This script is much simpler in 
GRUB 2, because grub-setup handles most things.

It has one remaining issue, and I'm not sure what is appropriate for this.  
Since the core image in GRUB 2 is generated dynamically, it is necessary to 
specify what modules should be included in it. When the user uses 
grub-install, I believe that they should be automatically determined.

For now, pc.mod and _chain.mod are hardcoded. I think these are good enough 
for PC. It might be better to add _linux.mod on GNU/Linux, though. I'm not 
sure.

The issue is how to determine a filesystem module which is needed to load more 
modules. I think there are three ways:

1. Shell scripting. Probably it is possible to write a shell function which 
detects a filesystem by using df, mount, etc. I do not like this approach 
very much, because the installation environment can be very minimalistic 
(suppose when you install an OS using a floppy), and the behaviors of 
commands are sometimes not clever enough.

2. Adding an option into grub-mkimage to add a filesystem module 
automatically, depending on the filesystem of a grub directory. This is not  
bad, but this makes grub-mkimage a bit complex.

3. Adding a new utility which detects an appropriate filesystem module for a 
given directory. This is not bad, but this sounds a bit overkill.

What do you think?

Okuji



^ permalink raw reply	[flat|nested] 21+ messages in thread
* grub-install
@ 2008-05-27  5:06 E.R
  2008-05-27 15:40 ` grub-install Pavel Roskin
  2008-05-28  0:54 ` grub-install Gregg Levine
  0 siblings, 2 replies; 21+ messages in thread
From: E.R @ 2008-05-27  5:06 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 108 bytes --]

hi!
i can't install grub2 into sdb hard, it install in sda but dont install in
sdb, how to do  it?

-- 
e.r

[-- Attachment #2: Type: text/html, Size: 141 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread
* grub-install
@ 2008-05-28  6:00 E.R
  0 siblings, 0 replies; 21+ messages in thread
From: E.R @ 2008-05-28  6:00 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

hi!
very thnx Pavel Roskin, i do :

mount /dev/sdb1 /mnt/tmp
grub-install --root-directory=/mnt/tmp /dev/sdb
umount  /mnt/tmp

but grub2 don't install in sdb, i have 2 hard, sda & sdb , & my linux is
into sdb. i want to change my grub-0.97  to grub-1.96, i bulid grub-1.96.rpm
and install it with command :

rpm -ivh grub-1.96.rpm

, but it don't work in sdb . so i install grub-1.96.tar.gz in sdb and use :
grub-install /dev/sda , i see this error:

*welcome in grub!
Enterin into rescue mode ...
grub rescue >

*again thnx a lot for your answer

-- 
e.r

[-- Attachment #2: Type: text/html, Size: 672 bytes --]

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

end of thread, other threads:[~2008-05-28  6:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-24 18:44 grub-install Yoshinori K. Okuji
2005-07-25  2:04 ` grub-install Hollis Blanchard
2005-07-25  9:11   ` grub-install Yoshinori K. Okuji
2005-07-25 10:26     ` grub-install P
2005-07-25 13:12       ` grub-install P
2005-07-26 13:13         ` grub-install P
2005-07-26 19:28           ` grub-install Yoshinori K. Okuji
2005-07-25 15:15       ` grub-install Hollis Blanchard
2005-07-25 16:35         ` grub-install Marco Gerards
2005-07-25 19:16           ` grub-install Yoshinori K. Okuji
2005-07-26 18:41             ` grub-install Vincent Pelletier
2005-07-26 19:34               ` grub-install Yoshinori K. Okuji
2005-07-26 19:56                 ` grub-install Vincent Pelletier
2005-07-25 12:15 ` grub-install Marco Gerards
2005-07-25 19:25   ` grub-install Yoshinori K. Okuji
2005-07-25 13:06 ` grub-install Vincent Pelletier
2005-07-25 19:04   ` grub-install Yoshinori K. Okuji
  -- strict thread matches above, loose matches on Subject: below --
2008-05-27  5:06 grub-install E.R
2008-05-27 15:40 ` grub-install Pavel Roskin
2008-05-28  0:54 ` grub-install Gregg Levine
2008-05-28  6:00 grub-install E.R

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.