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

Bug#229128: grub install to non-MBR fails the first time [was: Debian-Installer trouble]



Hi!

On 2004-05-04  0:49 -0500, Brian R Drell wrote:
> I have now installed with beta 4 twice today, the first with linux 2.4 
> and the second on linux 2.6.  I submitted a report earlier, and to update:
> 
> Grub installation fails the first time I try it, whether I use the Grub 
> partition format or the /dev node format.  I can go back to the main 
> menu after it fails, and try it again with success.  I am installing 
> Grub on the boot sector of a logical partition on an IDE disk, if that 
> makes any difference.

I can confirm that; I tried that yesterday with the same result: it
failed at the first attempt and magically succeeded at the second.

Maybe the according log entry (of the installed system) helps here:

------------------ /var/log/debian-installer/messages -------------------
[...]
The following NEW packages will be installed:
  grub
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 283kB of archives.
After unpacking 647kB of additional disk space will be used.
Get:1 http://ftp.de.debian.org sarge/main grub 0.93+cvs20031021-8 [283kB]
Fetched 283kB in 3s (73.5kB/s)
Selecting previously deselected package grub.
(Reading database ... 10046 files and directories currently installed.)
Unpacking grub (from .../grub_0.93+cvs20031021-8_i386.deb) ...
Setting up grub (0.93+cvs20031021-8) ...
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.94  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> root (hd0,0)
 Filesystem type is reiserfs, partition type 0x83
grub> setup  --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0,0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
 Running "embed /boot/grub/reiserfs_stage1_5 (hd0,0)"...  18 sectors are embedded.
succeeded
 Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,0) (hd0,0)1+18 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed

Error 6: Mismatched or corrupt version of stage1/stage2
grub> quit
Reading Package Lists...
Building Dependency Tree...
grub is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/hda
Searching for GRUB installation directory ... found: /boot/grub .
Testing for an existing GRUB menu.list file...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) Found kernel: /boot/vmlinuz-2.6.3-1-k7
Updating /boot/grub/menu.lst ... done

Reading Package Lists...
--------------------------------------------------------------------------

The "mismatched or corrupt version of stage1/stage2" may be the point here.

I can send you the whole log directory if that helps.

Thanks,

Martin

-- 
Martin Pitt                 Debian GNU/Linux Developer
martin@piware.de                      mpitt@debian.org
http://www.piware.de             http://www.debian.org

Attachment: pgpPdfvlU1Et1.pgp
Description: PGP signature


Reply to: