Bug#275506: installation-reports: grub misconfigured in presence of LVM
Package: installation-reports
Severity: normal
INSTALL REPORT
Debian-installer-version: pre-rc2 from people.d.o/~joeyh/d-i/images/pre-rc2/
uname -a: Linux kamoun 2.6.8-1-686 #1 Tue Sep 14 00:22:58 EDT 2004 i686 GNU/Linux
Date: 8 Oct 2004
Method: netboot and ftp.easybet.be, no proxy
Machine: IBM Thinkpad X40
Processor: Pentium M 1.2 GHz
Memory: 512 MB
Root Device: IDE, /dev/hda
Root Size/partition table:
Disk /dev/hda: 77520 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 0+ 74369 74370- 37482479+ 5 Extended
/dev/hda2 0 - 0 0 0 Empty
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 74370 77519 3150 1587600 a0 IBM Thinkpad hibernation
/dev/hda5 0+ 519 520- 262079 83 Linux
/dev/hda6 520+ 7777 7258- 3658031+ 82 Linux swap
/dev/hda7 7778+ 9858 2081- 1048823+ 8e Linux LVM
/dev/hda8 9859+ 11939 2081- 1048823+ 8e Linux LVM
/dev/hda9 11940+ 14020 2081- 1048823+ 8e Linux LVM
/dev/hda10 14021+ 16101 2081- 1048823+ 8e Linux LVM
/dev/hda11 16102+ 18182 2081- 1048823+ 8e Linux LVM
/dev/hda12 18183+ 20263 2081- 1048823+ 8e Linux LVM
/dev/hda13 20264+ 22344 2081- 1048823+ 8e Linux LVM
/dev/hda14 22345+ 24425 2081- 1048823+ 8e Linux LVM
/dev/hda15 24426+ 26506 2081- 1048823+ 8e Linux LVM
/dev/hda16 26507+ 28587 2081- 1048823+ 8e Linux LVM
/dev/hda17 28588+ 30668 2081- 1048823+ 8e Linux LVM
/dev/hda18 30669+ 32749 2081- 1048823+ 8e Linux LVM
/dev/hda19 32750+ 34830 2081- 1048823+ 8e Linux LVM
/dev/hda20 34831+ 36911 2081- 1048823+ 8e Linux LVM
/dev/hda21 36912+ 38992 2081- 1048823+ 8e Linux LVM
/dev/hda22 38993+ 41073 2081- 1048823+ 8e Linux LVM
/dev/hda23 41074+ 43154 2081- 1048823+ 8e Linux LVM
/dev/hda24 43155+ 45235 2081- 1048823+ 8e Linux LVM
/dev/hda25 45236+ 47316 2081- 1048823+ 8e Linux LVM
/dev/hda26 47317+ 49397 2081- 1048823+ 8e Linux LVM
/dev/hda27 49398+ 51478 2081- 1048823+ 8e Linux LVM
/dev/hda28 51479+ 53559 2081- 1048823+ 8e Linux LVM
/dev/hda29 53560+ 55640 2081- 1048823+ 8e Linux LVM
/dev/hda30 55641+ 57721 2081- 1048823+ 8e Linux LVM
/dev/hda31 57722+ 59802 2081- 1048823+ 8e Linux LVM
/dev/hda32 59803+ 61883 2081- 1048823+ 8e Linux LVM
/dev/hda33 61884+ 63964 2081- 1048823+ 8e Linux LVM
/dev/hda34 63965+ 66045 2081- 1048823+ 8e Linux LVM
/dev/hda35 66046+ 68126 2081- 1048823+ 8e Linux LVM
/dev/hda36 68127+ 70207 2081- 1048823+ 8e Linux LVM
/dev/hda37 70208+ 72288 2081- 1048823+ 8e Linux LVM
/dev/hda38 72289+ 74369 2081- 1048823+ 8e Linux LVM
All LVM partitions in one VG, one LV for /. /boot is on /dev/hda5.
Output of lspci and lspci -n:
0000:00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 02)
0000:00:00.1 System peripheral: Intel Corp. 855GM/GME GMCH Memory I/O Control Registers (rev 02)
0000:00:00.3 System peripheral: Intel Corp. 855GM/GME GMCH Configuration Process Registers (rev 02)
0000:00:02.0 VGA compatible controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02)
0000:00:02.1 Display controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 01)
0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01)
0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
0000:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
0000:02:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 8d)
0000:02:00.1 0805: Ricoh Co Ltd: Unknown device 0822 (rev 13)
0000:02:01.0 Ethernet controller: Intel Corp. 82541GI Gigabit Ethernet Controller
0000:02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
0000:00:00.0 0600: 8086:3580 (rev 02)
0000:00:00.1 0880: 8086:3584 (rev 02)
0000:00:00.3 0880: 8086:3585 (rev 02)
0000:00:02.0 0300: 8086:3582 (rev 02)
0000:00:02.1 0380: 8086:3582 (rev 02)
0000:00:1d.0 0c03: 8086:24c2 (rev 01)
0000:00:1d.1 0c03: 8086:24c4 (rev 01)
0000:00:1d.2 0c03: 8086:24c7 (rev 01)
0000:00:1d.7 0c03: 8086:24cd (rev 01)
0000:00:1e.0 0604: 8086:2448 (rev 81)
0000:00:1f.0 0601: 8086:24cc (rev 01)
0000:00:1f.1 0101: 8086:24ca (rev 01)
0000:00:1f.3 0c05: 8086:24c3 (rev 01)
0000:00:1f.5 0401: 8086:24c5 (rev 01)
0000:00:1f.6 0703: 8086:24c6 (rev 01)
0000:02:00.0 0607: 1180:0476 (rev 8d)
0000:02:00.1 0805: 1180:0822 (rev 13)
0000:02:01.0 0200: 8086:1077
0000:02:02.0 0200: 168c:1014 (rev 01)
Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it
Initial boot worked: [O]
Configure network HW: [O] (wired ethernet, e1000)
Config network: [O] (DHCP)
Detect CD: [O] (machine doesn't have a CD drive)
Load installer modules: [O]
Detect hard drives: [O]
Partition hard drives: [ ] (done manually in shell on tty2)
Create file systems: [O]
Mount partitions: [O]
Install base system: [E]
Install boot loader: [E]
Reboot: [E]
Comments/Problems:
I did the partitioning proper in the shell on tty2. Then, used the
partman in debian-installer to create filesystems, LVM VG and LV,
etc.
The mkinitrd of postrm of the kernel fails because only hda1 through
hda20 are created in /target/dev. After manual creation of hda21
through hda63 and 'rm -r' of everything except dev and var/cache/apt
in /target, base system install works OK.
Then, grub install finished without error, but grub is misconfigured:
Its groot was at (hd0,0) instead of (hd0,4) and the root= option
passed to the kernel was at /dev/hda1. The path to the kernel and
initrd image were also incorrect: They contain a /boot prefix which
shouldn't be there (/boot on separate partition).
This all leads to grub being unable to boot Linux.
/etc/fstab isn't created either; it contains only:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
(Hmm... I'm starting to think that maybe the /etc/fstab was created by
the "partition" step, not "install base system" and that I thus
deleted it when I shouldn't. But the original reason I started to
delete things in /target/ is that the "install base system" step is
not idempotent. This would be better for robustness and manual
fiddling.)
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US, LC_CTYPE=en_US
Reply to: