Still unable to install grub 2 on my lvm setup
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
Quoted 12 lines · Jean-Christophe Haessig
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.
Quoted 4 lines
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.
Signature · 1 line
Bean
Quoted 1 line · Bean
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
Quoted 10 lines · On Mon, 2008-07-07 at 19:26 +0200, [email protected] wrote:
Quoted 1 line · Bean
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.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 5 lines · Pavel Roskin
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
Signature · 3 lines
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/
Quoted 7 lines · Jean-Christophe Haessig
Er... There are no partitions on my disks. I create them like this :
pvcreate
/dev/hdaSince 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
Quoted 3 lines · Jean-Christophe Haessig
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.
Signature · 5 lines
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 /.)