Bug#276100: grub installs to wrong drive or is configured incorrectly
Package: installation-reports
Debian-installer-version:
http://cdimage.debian.org/pub/cdimage-testing/daily/i386/20041009/sarge-i386-netinst.iso
downloaded and burned to cd-r on a winxp system w/
nero 5.
uname -a:
Linux theta 2.6.8-1-386 #1 Mon Sep 13 23:29:55 EDT
2004 i686 GNU/Linux
Date: 10/10/2004
Method: install via boot to cd attached to secondary
slave ide
Network: static ip on private network, connected to
internet via hardware router/firewall
Machine: home built
dfi via-based motherboard (see lspci output for
details)
1 x 512mb ddr333
1 x 80gb wdc sata on first connector
1 x 80gb wdc ide as primary-master
1 x cdrw/dvd ide as secondary-slave
Processor: xp2800+ barton
Memory: 512mb ddr333 1 module
Root Device: /dev/sda sata 80gb
Root Size/partition table:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/sda1 * 1 1023 8217216 b
W95 FAT32
/dev/sda2 1024 9729 69930945 f
W95 Ext'd (LBA)
/dev/sda5 1024 6378 43014006 7
HPFS/NTFS
/dev/sda6 6379 6390 96358+ 83
Linux
/dev/sda7 6391 9612 25880683+ 83
Linux
/dev/sda8 9613 9729 939771 82
Linux swap
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/hda1 2 9729 78140160 f
W95 Ext'd (LBA)
/dev/hda5 2 4865 39070048+ b
W95 FAT32
/dev/hda6 4866 8108 26049366 b
W95 FAT32
/dev/hda7 8109 9729 13020651 b
W95 FAT32
theta:/home/admin# df
Filesystem 1K-blocks Used Available
Use% Mounted on
/dev/sda7 25474252 218508 23961712
1% /
tmpfs 258304 0 258304
0% /dev/shm
/dev/sda6 90297 6476 79004
8% /boot
Output of lspci and lspci -n:
theta:/home/admin# lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc.
VT8378 [KM400] Chipset Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237
PCI Bridge
0000:00:0f.0 RAID bus controller: VIA Technologies,
Inc. VIA VT6420 SATA RAID Controller (rev 80)
0000:00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master
IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc.
VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc.
VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc.
VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc.
VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc.
USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237
ISA bridge [K8T800 South]
0000:00:11.5 Multimedia audio controller: VIA
Technologies, Inc. VT8233/A/8235/8237 AC97 Audio
Controller (rev 60)
0000:00:12.0 Ethernet controller: VIA Technologies,
Inc. VT6102 [Rhine-II] (rev 78)
0000:01:00.0 VGA compatible controller: nVidia
Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
theta:/home/admin# lspci -n
0000:00:00.0 0600: 1106:3205
0000:00:01.0 0604: 1106:b198
0000:00:0f.0 0104: 1106:3149 (rev 80)
0000:00:0f.1 0101: 1106:0571 (rev 06)
0000:00:10.0 0c03: 1106:3038 (rev 81)
0000:00:10.1 0c03: 1106:3038 (rev 81)
0000:00:10.2 0c03: 1106:3038 (rev 81)
0000:00:10.3 0c03: 1106:3038 (rev 81)
0000:00:10.4 0c03: 1106:3104 (rev 86)
0000:00:11.0 0601: 1106:3227
0000:00:11.5 0401: 1106:3059 (rev 60)
0000:00:12.0 0200: 1106:3065 (rev 78)
0000:01:00.0 0300: 10de:0110 (rev b2)
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: [E] see below(1)
Create file systems: [O]
Mount partitions: [O]
Install base system: [O]
Install boot loader: [E] see below(2)
Reboot: [E] see below(3)(4)
Comments/Problems:
(1) any of the guided partition schemes using largest
block of free space wanted to create an active primary
partition for the root filesystem after the extended
partition. i thought that might mess up the existing
98/xp install; so manually partitioned as noted above
knowing that linux can boot from pretty much anywhere.
three partitions, boot root and swap, is what i have
always used for a linux desktop (if linux is sole o/s,
then i use three primaries for them). probably not
much of a concern, it just didn't partition as
expected (i had expected all logical drives, similar
to my manual partitioning, since a parimary and
extended already existed).
(2) first attempt: allowed d-i to install grub on mbr
of 'first drive' as it did properly detect the
existing windows install (1 of them, identified as
2000/xp probably because of the xp bootloader).
however, it must have considered the ide drive as the
'first drive' as that's where it put grub.
second attempt: knowing the above, manually chose
/dev/sda to install grub to mbr of the sata drive. it
installed there as expected, however since d-i saw the
ide as the 'first drive' and sata as the second it
configured grub to boot to hd1,0 for windows and hd1,5
for linux.
(3) which caused grub to not boot anything. had to
manually edit grub paramaters to read hd(0,5) to boot
linux. once to console, had to edit
/boot/grub/menu.lst to read hd(0,0) for windows and
hd(0,5) for linux entries.
(4) during base-config's tasksel, i chose only manual
package selection and got a slew of pre-selected
packages (over 80, totalling 150+mb installed). a
previous install using same netinst image but leaving
all of tasksel's options empty resulted in those same
packages being downloaded and installed
automatically(!!) i had to abort aptitude's download,
clear marked items and package cache in order to
select and install what i wanted (which at this point
is only ssh).
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply to: