Bug#285898: Debian installer RC2: GRUB installation fails
Package: installation-reports
INSTALL REPORT
Debian-installer-version: netinst CD image RC2
24/11/2004 www.debian.org
uname -a: Linux solaria 2.4.27-1-386 #1 Fri Sep 3
06:24:46 UTC 2004 i686 GNU/Linux
Date: 15/12/2004
Method: How did you install? from network
What did you boot off? cdrom
If network install, from where? ftp.it.debian.org
Proxied? No
Machine: Assembled
Processor: Intel P3 800MHz
Memory: 512 Mb
Root Device: IDE IBM Deskstar 30 Gb IC35L030AVER07-0
Root Size/partition table:
Disk /dev/hda: 30.7 GB, 30738677760 bytes
255 heads, 63 sectors/track, 3737 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/hda1 * 1 382 3068383+ 7
HPFS/NTFS
/dev/hda2 383 3737 26949037+ 5
Extended
/dev/hda5 383 996 4931923+ 7
HPFS/NTFS
/dev/hda6 997 1573 4634721 83
Linux
/dev/hda7 1574 1765 1542208+ 83
Linux
/dev/hda8 1766 1831 530113+ 82
Linux swap
/dev/hda9 1832 3106 10241406 7
HPFS/NTFS
/dev/hda10 3107 3358 2024158+ 83
Linux
/dev/hda11 3359 3609 2016126 83
Linux
/dev/hda12 3610 3736 1020096 7
HPFS/NTFS
/dev/hda13 3737 3737 8001 78
Unknown
with /dev/hda6 mounted as / and /dev/hda7 mounted as
/home
Output of lspci and lspci -n:
solaria:~# lspci
0000:00:00.0 Host bridge: Intel Corp. 82815 815
Chipset Host Bridge and Memory Controller Hub (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset
AGP Bridge (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge
(rev 02)
0000:00:1f.0 ISA bridge: Intel Corp. 82801BA ISA
Bridge (LPC) (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801BA IDE
U100 (rev 02)
0000:00:1f.2 USB Controller: Intel Corp. 82801BA/BAM
USB (Hub #1) (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev
02)
0000:00:1f.4 USB Controller: Intel Corp. 82801BA/BAM
USB (Hub #2) (rev 02)
0000:01:00.0 VGA compatible controller: Matrox
Graphics, Inc. MGA G400 AGP (rev 82)
0000:02:0a.0 Multimedia audio controller: Creative
Labs SB Live! EMU10k1 (rev 05)
0000:02:0a.1 Input device controller: Creative Labs SB
Live! MIDI/Game Port (rev 05)
0000:02:0c.0 FireWire (IEEE 1394): VIA Technologies,
Inc. IEEE 1394 Host Controller (rev 46)
0000:02:0e.0 Ethernet controller: 3Com Corporation
3c905B 100BaseTX [Cyclone] (rev 30)
solaria:~# lspci -n
0000:00:00.0 0600: 8086:1130 (rev 02)
0000:00:01.0 0604: 8086:1131 (rev 02)
0000:00:1e.0 0604: 8086:244e (rev 02)
0000:00:1f.0 0601: 8086:2440 (rev 02)
0000:00:1f.1 0101: 8086:244b (rev 02)
0000:00:1f.2 0c03: 8086:2442 (rev 02)
0000:00:1f.3 0c05: 8086:2443 (rev 02)
0000:00:1f.4 0c03: 8086:2444 (rev 02)
0000:01:00.0 0300: 102b:0525 (rev 82)
0000:02:0a.0 0401: 1102:0002 (rev 05)
0000:02:0a.1 0980: 1102:7002 (rev 05)
0000:02:0c.0 0c00: 1106:3044 (rev 46)
0000:02:0e.0 0200: 10b7:9055 (rev 30)
Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] =
didn't try it
Initial boot worked: [O]
Configure network HW: [O]
Config network: [O]
Detect CD: [O]
Load installer modules: [O]
Detect hard drives: [O]
Partition hard drives: [O]
Create file systems: [O]
Mount partitions: [O]
Install base system: [O]
Install boot loader: [E]
Reboot: [O]
Comments/Problems:
The only recurring problem I have with Sarge installer
is with the GRUB installation step.
Since I use XOSL or NT boot loader as my boot manager,
I always choose not to install GRUB on the MBR,
but I install it on the root partition instead.
It fails when trying to install for the first time on
the root partition, no matter if
I specify the partition in kernel format (/dev/hdaX)
or in GRUB format (hd0,X-1).
After a few retries (sometimes just one), it works
correctly if I specify the partition
in a format different than the one I used the first
time. For example:
first try : using /dev/hda6 -> GRUB install fails
second try: using (hd0,5) -> GRUB installs
successfully
or
first try : using (hd0,5) -> GRUB install fails
second try: using /dev/hda6 -> GRUB installs
successfully
That's quite weird!!
Having a look at the installer logs, grub errors with
the following message:
Error 6: Mismatched or corrupt version of
stage1/stage2
I am sure I can replicate the error at will and on
different machines.
Here an excerpt from the debian installer messages log
file:
---------------------------
The following NEW packages will be installed:
grub
0 upgraded, 1 newly installed, 0 to remove and 0 not
upgraded.
Need to get 0B/350kB of archives.
After unpacking 750kB of additional disk space will be
used.
Selecting previously deselected package grub.
(Reading database ... 10002 files and directories
currently installed.)
Unpacking grub (from
.../grub_0.95+cvs20040624-10_i386.deb) ...
Setting up grub (0.95+cvs20040624-10) ...
Probing devices to guess BIOS drives. This may take a
long time.
GNU GRUB version 0.95 (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,5)
Filesystem type is reiserfs, partition type 0x83
grub> setup --stage2=/boot/grub/stage2
--prefix=/boot/grub (hd0,5)
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,5)"... 18 sectors are embedded.
succeeded
Running "install --stage2=/boot/grub/stage2
/boot/grub/stage1 (hd0,5) (hd0,5)1+18 p
(hd0,5)/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.
Probing devices to guess BIOS drives. This may take a
long time.
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)
Searching for splash image... none found, skipping...
Found kernel: /boot/vmlinuz-2.4.27-1-386
Updating /boot/grub/menu.lst ... done
---------------------------
Install logs and other status info is available in
/var/log/debian-installer/.
Once you have filled out this report, mail it to
submit@bugs.debian.org.
Regards,
Paolo Marzucco
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica? Scaricalo ora!
http://it.messenger.yahoo.it
Reply to: