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

Bug#292724: marked as done (Installer Fails To Install Grub - "/boot/grub/stage1 not read correctly")



Your message dated Thu, 3 Feb 2005 18:37:40 +0100
with message-id <200502031837.40677.aragorn@tiscali.nl>
and subject line Bug#292724: Installer Fails To Install Grub - "/boot/grub/stage1 not read correctly"
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 29 Jan 2005 02:54:07 +0000
>From nick@glimmer.demon.co.uk Fri Jan 28 18:54:07 2005
Return-path: <nick@glimmer.demon.co.uk>
Received: from anchor-post-33.mail.demon.net [194.217.242.91] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CuikR-00054K-00; Fri, 28 Jan 2005 18:54:07 -0800
Received: from glimmer.demon.co.uk ([194.222.115.199])
	by anchor-post-33.mail.demon.net with smtp (Exim 4.42)
	id 1CuikO-000HPo-9r
	for submit@bugs.debian.org; Sat, 29 Jan 2005 02:54:05 +0000
From: Nick Boyce <nick@glimmer.demon.co.uk>
To: submit@bugs.debian.org
Subject: Installer Fails To Install Grub - "/boot/grub/stage1 not read correctly"
Date: Sat, 29 Jan 2005 02:11:51 +0000
Organization: Sirius Cybernetics
Message-ID: <ngplv0p1h6cs7qon3dh90c0056eq8hqcb1@4ax.com>
X-Mailer: Forte Agent 1.9/32.560
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_01,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: installation-reports

Debian-installer-version: 2005-01-22 sarge-i386-netinst.iso RC2 from
http://cdimage.debian.org/pub/cdimage-testing/sarge_d-i/i386/rc2/sarge-i386-netinst.iso
uname -a: not possible
Date: 2005-01-27
Method: booted from network installer CD (on CDRW media)

Machine: home-built, ABIT NF7-S V2 motherboard (not overclocked)
Processor: AMD Athlon XP 2600 (Barton core)
Memory: 512Mb Corsair (DDR)
Root Device: primary master IDE /dev/hda7 - intended, anyway :-)

Root Size/partition table: 
Output from fdisk on VC2:

# fdisk -l /dev/ide/host0/bus0/target0/lun0/disc

Disk /dev/ide/host0/bus0/target0/lun0/disc: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                Device Boot      Start         End
Blocks   Id  System
/dev/ide/host0/bus0/target0/lun0/part1   *           1        1275
10241406    7  HPFS/NTFS
/dev/ide/host0/bus0/target0/lun0/part2            1276        4717
27647865    f  W95 Ext'd (LBA)
/dev/ide/host0/bus0/target0/lun0/part5            1276        1536
2096451    7  HPFS/NTFS
/dev/ide/host0/bus0/target0/lun0/part6            1537        2058
4192933+   b  W95 FAT32
/dev/ide/host0/bus0/target0/lun0/part7            2059        2580
4192933+   6  FAT16
/dev/ide/host0/bus0/target0/lun0/part8            2581        2645
522081    6  FAT16

*All* partitions created using Win2K Disk Manager.

Output of lspci and lspci -n: not possible

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:         [ ]
Detect CD:              [O]
Load installer modules: [O]
Detect hard drives:     [O]
Partition hard drives:  [ ]
Create file systems:    [O]
Mount partitions:       [O]
Install base system:    [O]
Install boot loader:    [E]
Reboot:                 [ ]

Comments/Problems:

Installation proceeded well and without incident until it's time to
install the bootloader.  I requested installation of Grub on the root
partition (not the MBR), and this failed with the message (on VC3) :
  "file /boot/grub/stage1 not read correctly"

I may be misunderstanding the situation, but digging about with ls on
VC2 revealed that there is indeed no such file - in fact there is no
/boot directory at all - but there _is_ one on /target - i.e. the file
  /target/boot/grub/stage1
*does* exist.  Is the installer simply passing the wrong
--root-directory parameter to grub-install ?   That would be hard to
believe, because surely a gazillion other people would have noticed
already ...

Two other possible factors : 

(1) I notice that the above partition table print from fdisk shows my
two Linux partitions (7 & 8) have type=FAT16 (type 06) despite their
just having been formatted by the installer as ext3 and swap
respectively ...   Huh !?

(2) I created all the partitions using Win2K Disk Manager, at a time
when I had the BIOS hard drive access mode set to CHS.  This didn't
seem to faze Win2K at all (it ignores the BIOS ?), but I've since
changed the setting to LBA, though this hasn't helped here.  Might it
have caused screwy partition table values ?

Also: FWIW, I can't install LILO either - it hangs at 75% on VC1, with
no useful diagnostics on VC3 (the last two messages on VC4 are about
something called os-prober probing my root & swap partitions, 7 and
8).

This brings my testing of the Sarge installer to a shuddering halt ...
cluesticks gratefully received.  I'll keep this machine available for
any experiments you may want me to try (I have another Woody machine
to carry on using).

Here's the installer log for the Grub installation failure :
========================< cut >==========================
 [ many lines snipped ]
Reading Package Lists...
Building Dependency Tree...
e2fsprogs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading Package Lists...
Building Dependency Tree...
Suggested packages:
  grub-doc grubconf
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 ... 9461 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.
The file /boot/grub/stage1 not read correctly.

========================< cut >==========================

And here's an ls -l of / (for the installer) and /target (etc.) :
========================< cut >==========================
# ls -l /
drwxr-xr-x    2 root     root         1500 Jan 27 22:41 bin
dr-xr-xr-x   10 root     root         2048 Nov 21 22:10 cdrom
drwxr-xr-x    1 root     root            0 Jan  1  1970 dev
drwxr-xr-x   10 root     root          460 Jan 27 22:43 etc
drwxrwxrwx    2 root     root           40 Jan  1  1970 floppy
drwxrwxrwx    2 root     root           40 Jan  1  1970 initrd
drwxr-xr-x    8 root     root          980 Jan 27 22:41 lib
dr-xr-xr-x   41 root     root            0 Jan 27 22:35 proc
drwxr-xr-x    2 root     root         1780 Jan 27 22:41 sbin
drwxrwxrwx    2 root     root           40 Jan  1  1970 sys
drwxr-xr-x   21 root     root         4096 Jan 28 00:44 target
drwxrwxrwx    2 root     root           60 Jan 27 22:53 tmp
-rw-rw-rw-    1 root     root       164616 Jan  1  1970 unifont.bgf
drwxr-xr-x    6 root     root          120 Oct  6 18:32 usr
drwxr-xr-x    8 root     root          160 Jan 27 22:43 var

# ls -l /target
drwxr-xr-x    2 root     root         4096 Jan 27 22:53 bin
drwxr-xr-x    3 root     root         4096 Jan 27 22:55 boot
lrwxrwxrwx    1 root     root           11 Jan 27 22:51 cdrom ->
media/cdrom
drwxr-xr-x   11 root     root        24576 Jan 27 22:53 dev
drwxr-xr-x   43 root     root         4096 Jan 27 22:53 etc
drwxrwsr-x    2 root     50           4096 Jul 26  2004 home
drwxr-xr-x    2 root     root         4096 Jan 27 22:52 initrd
lrwxrwxrwx    1 root     root           28 Jan 27 22:53 initrd.img ->
boot/initrd.img-2.4.27-1-386
drwxr-xr-x    8 root     root         4096 Jan 27 22:53 lib
drwxr-xr-x    2 root     root        49152 Jan 27 22:51 lost+found
-rw-r--r--    1 root     root          922 Jan 28 00:45 ls.njb
drwxr-xr-x    4 root     root         4096 Jan 27 22:51 media
drwxr-xr-x    2 root     root         4096 Jul 26  2004 mnt
drwxr-xr-x    2 root     root         4096 Jan 27 22:52 opt
drwxr-xr-x    2 root     root         4096 Jul 26  2004 proc
drwxr-xr-x    2 root     root         4096 Jan 27 22:52 root
drwxr-xr-x    2 root     root         4096 Jan 27 22:53 sbin
drwxr-xr-x    2 root     root         4096 Jan 27 22:52 srv
drwxr-xr-x    2 root     root         4096 Oct 13 19:40 sys
drwxrwxrwt    2 root     root         4096 Jan 27 22:55 tmp
drwxr-xr-x   11 root     root         4096 Jan 27 22:52 usr
drwxr-xr-x   13 root     root         4096 Jan 27 22:52 var
lrwxrwxrwx    1 root     root           25 Jan 27 22:53 vmlinuz ->
boot/vmlinuz-2.4.27-1-386

# ls -l /target/boot
-rw-r--r--    1 root     root       539139 Sep  3 06:43
System.map-2.4.27-1-386
-rw-r--r--    1 root     root        44680 Sep  3 06:24
config-2.4.27-1-386
drwxr-xr-x    2 root     root         4096 Jan 27 22:55 grub
-rw-r--r--    1 root     root      3878912 Jan 27 22:53
initrd.img-2.4.27-1-386
-rw-r--r--    1 root     root       812691 Sep  3 06:43
vmlinuz-2.4.27-1-386

# ls -l /target/boot/grub
-rw-r--r--    1 root     root           15 Jan 27 22:55 device.map
-rw-r--r--    1 root     root         7776 Jan 27 22:55 e2fs_stage1_5
-rw-r--r--    1 root     root         8320 Jan 27 22:55 jfs_stage1_5
-rw-r--r--    1 root     root         7008 Jan 27 22:55 minix_stage1_5
-rw-r--r--    1 root     root         9216 Jan 27 22:55
reiserfs_stage1_5
-rw-r--r--    1 root     root          512 Jan 27 22:55 stage1
-rw-r--r--    1 root     root       108136 Jan 27 22:55 stage2
-rw-r--r--    1 root     root         9256 Jan 27 22:55 xfs_stage1_5
========================< cut >==========================


---------------------------------------
Received: (at 292724-done) by bugs.debian.org; 3 Feb 2005 17:38:11 +0000
>From aragorn@tiscali.nl Thu Feb 03 09:38:11 2005
Return-path: <aragorn@tiscali.nl>
Received: from smtp-b2c.tiscali.nl (ha-smtp0.tiscali.nl) [195.241.80.19] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cwkvj-00068t-00; Thu, 03 Feb 2005 09:38:11 -0800
Received: from strider.fjphome.nl (195-240-184-66-mx.xdsl.tiscali.nl [195.240.184.66])
	by ha-smtp0.tiscali.nl (Postfix) with ESMTP id 4D3E6AA5DAF;
	Thu,  3 Feb 2005 18:37:40 +0100 (CET)
From: Frans Pop <aragorn@tiscali.nl>
To: Nick Boyce <nick@glimmer.demon.co.uk>,
	292724-done@bugs.debian.org
Subject: Re: Bug#292724: Installer Fails To Install Grub - "/boot/grub/stage1 not read correctly"
Date: Thu, 3 Feb 2005 18:37:40 +0100
User-Agent: KMail/1.7.1
References: <ngplv0p1h6cs7qon3dh90c0056eq8hqcb1@4ax.com> <200501301752.39580.aragorn@tiscali.nl> <[🔎] qcr201tp79le1bo580rpm2gggrjhh5a5oc@4ax.com>
In-Reply-To: <[🔎] qcr201tp79le1bo580rpm2gggrjhh5a5oc@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200502031837.40677.aragorn@tiscali.nl>
Delivered-To: 292724-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

On Thursday 03 February 2005 01:58, Nick Boyce wrote:
> Well I understand what you're saying, but I was a bit nervous of
> trying the Sarge partitioner - I tried the Ubuntu Warty Warthog
> installer 3 weeks ago on this same box, and it trashed my MBR.  Maybe
> I used it badly, but I asked it to create a 2nd primary partition for
> its root (Win2K was already installed), and specified "create the new
> partition at the start of the available space".  The effect seemed to
> be to reorder the partition table entries (or something) such that
> Win2K wouldn't boot any more - it couldn't find its boot partition,
> even though the partition was still there and the contents were
> visible using the Win2K Recovery Console.  I assume the Ubuntu
> partitioner is closely related to Sarge's ?

Yes they are related (Ubuntu's is derived from Debian's).

As I said, the problems with booting windows should be fixed by the new 
version of libparted that was uploaded last weekend. Currently programs 
using libparted are being updated. This process should be finished for 
all installation methods in a few days.

Closing your installation report.

Cheers,
FJP



Reply to: