All of lore.kernel.org
 help / color / mirror / Atom feed
* Still unable to install grub 2 on my lvm setup
@ 2008-07-07 14:50 Jean-Christophe Haessig
  2008-07-07 15:05 ` Bean
  2008-07-12 14:29 ` Robert Millan
  0 siblings, 2 replies; 7+ messages in thread
From: Jean-Christophe Haessig @ 2008-07-07 14:50 UTC (permalink / raw)
  To: The development of GRUB 2

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

Hello,

I'm still trying to build and use the latest GRUB cvs version when there
seems to be some movement in the LVM field. There was a thread in the ML
three weeks ago and I tried it again, but I still get the same errors as
I got, back in January.

The system can be booted with a floppy where the latest GRUB was
installed, but the same version is unable to install itself on the hard
drive. It tries to «embed» the «core.img» because the root is on LVM,
but reports that there is not enough space to do this.

I'm still puzzled about where GRUB wants to embed this image (after the
boot sector, it seems), but looking at the LVM structures it doesn't
seem to be any room there... Last January I couldn't get a clear answer
about this, neither if what I'm trying to do is even supported.

Thanks,
JC

[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Still unable to install grub 2 on my lvm setup
  2008-07-07 14:50 Still unable to install grub 2 on my lvm setup Jean-Christophe Haessig
@ 2008-07-07 15:05 ` Bean
  2008-07-07 17:26   ` jean-christophe.haessig
  2008-07-12 14:29 ` Robert Millan
  1 sibling, 1 reply; 7+ messages in thread
From: Bean @ 2008-07-07 15:05 UTC (permalink / raw)
  To: The development of GRUB 2

On Mon, Jul 7, 2008 at 10:50 PM, Jean-Christophe Haessig
<jean-christophe.haessig@dianosis.org> wrote:
> Hello,
>
> I'm still trying to build and use the latest GRUB cvs version when there
> seems to be some movement in the LVM field. There was a thread in the ML
> three weeks ago and I tried it again, but I still get the same errors as
> I got, back in January.
>
> The system can be booted with a floppy where the latest GRUB was
> installed, but the same version is unable to install itself on the hard
> drive. It tries to «embed» the «core.img» because the root is on LVM,
> but reports that there is not enough space to do this.
>
> I'm still puzzled about where GRUB wants to embed this image (after the
> boot sector, it seems), but looking at the LVM structures it doesn't
> seem to be any room there... Last January I couldn't get a clear answer
> about this, neither if what I'm trying to do is even supported.

Hi,

You need to use the lzma patch, which reduces the size of core.img.

-- 
Bean



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

* Re: Still unable to install grub 2 on my lvm setup
  2008-07-07 15:05 ` Bean
@ 2008-07-07 17:26   ` jean-christophe.haessig
  2008-07-07 17:46     ` Pavel Roskin
  0 siblings, 1 reply; 7+ messages in thread
From: jean-christophe.haessig @ 2008-07-07 17:26 UTC (permalink / raw)
  To: The development of GRUB 2

On Mon, 7 Jul 2008 23:05:33 +0800, Bean <bean123ch@gmail.com> wrote:

> You need to use the lzma patch, which reduces the size of core.img.

Thanks for the suggestion, I'll give it a try... But I'd still like
to have an answer to the following question : where the hell does
grub want to store that image ? Looking at the lvm specs, there's
barely 1 or 2KiB of free space just after the boot sector. The lzma
algorithm might be very good at compression but I doubt it will be
enough...

Thanks,
JC





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

* Re: Still unable to install grub 2 on my lvm setup
  2008-07-07 17:26   ` jean-christophe.haessig
@ 2008-07-07 17:46     ` Pavel Roskin
  2008-07-08  5:18       ` Jean-Christophe Haessig
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Roskin @ 2008-07-07 17:46 UTC (permalink / raw)
  To: The development of GRUB 2

On Mon, 2008-07-07 at 19:26 +0200, jean-christophe.haessig@dianosis.org
wrote:
> On Mon, 7 Jul 2008 23:05:33 +0800, Bean <bean123ch@gmail.com> wrote:
> 
> > You need to use the lzma patch, which reduces the size of core.img.
> 
> Thanks for the suggestion, I'll give it a try... But I'd still like
> to have an answer to the following question : where the hell does
> grub want to store that image ? Looking at the lvm specs, there's
> barely 1 or 2KiB of free space just after the boot sector. The lzma
> algorithm might be very good at compression but I doubt it will be
> enough...

If the first partition starts on cylinder 0 (which is the most common),
it starts on head 1.  All space on head 0, cylinder 0 is available.  The
maximal number on sectors per track is 63, and that's what is normally
used (old drives may use less sectors).  The first sector is the MBR.
That gives 62 sectors available to the bootloader, i.e. 31k.

-- 
Regards,
Pavel Roskin



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

* Re: Still unable to install grub 2 on my lvm setup
  2008-07-07 17:46     ` Pavel Roskin
@ 2008-07-08  5:18       ` Jean-Christophe Haessig
  2008-07-08  5:56         ` Michael Guntsche
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-Christophe Haessig @ 2008-07-08  5:18 UTC (permalink / raw)
  To: The development of GRUB 2

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

Le lundi 07 juillet 2008 à 13:46 -0400, Pavel Roskin a écrit :

> If the first partition starts on cylinder 0 (which is the most common),
> it starts on head 1.  All space on head 0, cylinder 0 is available.  The
> maximal number on sectors per track is 63, and that's what is normally
> used (old drives may use less sectors).  The first sector is the MBR.
> That gives 62 sectors available to the bootloader, i.e. 31k.

Er... There are no partitions on my disks. I create them like this :

pvcreate /dev/hda

Since the whole disk is used for LVM and LVM is some kind of
partitioning scheme, I didn't find useful to make one big partition on
each disk.

JC

-- 
AVIS : Falsifier le contenu et usurper l'identité des auteurs des courriers
électroniques étant simplissime, j'exhorte mes correspondants à utiliser un
logiciel de signature électronique. Lire : http://openpgp.vie-privee.org/

[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Still unable to install grub 2 on my lvm setup
  2008-07-08  5:18       ` Jean-Christophe Haessig
@ 2008-07-08  5:56         ` Michael Guntsche
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Guntsche @ 2008-07-08  5:56 UTC (permalink / raw)
  To: The development of GRUB 2



On Tue, 08 Jul 2008 07:18:59 +0200, Jean-Christophe Haessig
<jean-christophe.haessig@dianosis.org> wrote:
> Er... There are no partitions on my disks. I create them like this :
> 
> pvcreate /dev/hda
> 
> Since the whole disk is used for LVM and LVM is some kind of
> partitioning scheme, I didn't find useful to make one big partition on
> each disk.

Initially I had a similar setup on one of my older machines. If the whole
disk is used as a PV there is no place for GRUB at all to embed the
core.img. If you really want to boot this system you could use a floppy or
USB stick to do that. Back then I created one big partition on each PV-disk
to solve this.

Kind regards,
Michael




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

* Re: Still unable to install grub 2 on my lvm setup
  2008-07-07 14:50 Still unable to install grub 2 on my lvm setup Jean-Christophe Haessig
  2008-07-07 15:05 ` Bean
@ 2008-07-12 14:29 ` Robert Millan
  1 sibling, 0 replies; 7+ messages in thread
From: Robert Millan @ 2008-07-12 14:29 UTC (permalink / raw)
  To: The development of GRUB 2

On Mon, Jul 07, 2008 at 04:50:22PM +0200, Jean-Christophe Haessig wrote:
> Hello,
> 
> I'm still trying to build and use the latest GRUB cvs version

We moved to svn.  The cvs version is not under development anymore.

-- 
Robert Millan

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



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

end of thread, other threads:[~2008-07-12 14:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-07 14:50 Still unable to install grub 2 on my lvm setup Jean-Christophe Haessig
2008-07-07 15:05 ` Bean
2008-07-07 17:26   ` jean-christophe.haessig
2008-07-07 17:46     ` Pavel Roskin
2008-07-08  5:18       ` Jean-Christophe Haessig
2008-07-08  5:56         ` Michael Guntsche
2008-07-12 14:29 ` Robert Millan

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.