new Etch install fails to boot

I just made a fresh Etch Netinst CD and successfully completed an install on
a PC that I bought six years ago. When I try to boot, this is as far as it
gets:

Verifying DMI Pool Data ..........
GRUB Loading stage1.5.
Read

It may or may not be relevant to mention an issue I had in the past with this
box. I used to run Red Hat on it but with a Windows partition at the start
of the disk. During the Red Hat installation, I had to select "Force LBA32"
or it wouldn't find the Linux boot partition.

Now, though, I have given the whole disk to Etch, so I'd be surprised if this
is the issue. There are just two partitions:

IDE5 master (hde) - 41.2 GB IC35L040AVER07-0
#1 primary 39.9 GB B f ext3 /
#5 logical 1.5 GB f swap swap

The BIOS (AWARD 1998 / PCI/PNP 686 / 276079428) shows:
IDE Primary Master Auto (other choices are None, Manual)
Access Mode Auto (other choices are Normal, LBA, Large)

I've tried various combinations, including LBA, to no avail. The hard drives
are IBM Deskstar 40-GB IDE hard drives, model IC35L040AVER07-0.

Any ideas how to fix this? Thanks.

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

new Etch install fails to boot

Hi,

Sometimes older bios has a virus protection enabled in the bios itself.
This does not allow anything to be written to the MBR to protect MBR
viruses. I have faced this problem whereby the MBR gets cooked and the
GRUB does not get written properly. Looking at your information it
looks like grub is not able to proceed. Can you check your bios once
again and try disabling the virus protection (re-enable it later once
things are working) and re-install the grub and check ?

On Sun, 2007-07-29 at 17:43 -0400, Steve Kleene wrote:
> I just made a fresh Etch Netinst CD and successfully completed an install on
> a PC that I bought six years ago. When I try to boot, this is as far as it
> gets:
>
> Verifying DMI Pool Data ..........
> GRUB Loading stage1.5.
> Read
>
> It may or may not be relevant to mention an issue I had in the past with this
> box. I used to run Red Hat on it but with a Windows partition at the start
> of the disk. During the Red Hat installation, I had to select "Force LBA32"
> or it wouldn't find the Linux boot partition.
>
> Now, though, I have given the whole disk to Etch, so I'd be surprised if this
> is the issue. There are just two partitions:
>
> IDE5 master (hde) - 41.2 GB IC35L040AVER07-0
> #1 primary 39.9 GB B f ext3 /
> #5 logical 1.5 GB f swap swap
>
> The BIOS (AWARD 1998 / PCI/PNP 686 / 276079428) shows:
> IDE Primary Master Auto (other choices are None, Manual)
> Access Mode Auto (other choices are Normal, LBA, Large)
>
> I've tried various combinations, including LBA, to no avail. The hard drives
> are IBM Deskstar 40-GB IDE hard drives, model IC35L040AVER07-0.
>
> Any ideas how to fix this? Thanks.
>
>
--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
The box said "Requires Windows 95, NT, or better", so I installed Linux.

--

new Etch install fails to boot

On Tue, 31 Jul 2007 21:31:09 -0400, I wrote:
>> Still, I verified that /etc/lilo.conf was there, and there were no grub
>> files anywhere under /target (including under /boot). I finished the
>> installation anyway, and found it totally bizarre when a reboot produced
>> the same output as before, including "GRUB Loading stage1.5". It's as if
>> this string lives on the MBR and I'm unable to overwrite it.

On Wed, 01 Aug 2007 02:18:13 -0500, Mumia W.. replied:

> Which MBR? Each fixed disk can have its own MBR. It sounds like you have
> six ATA devices installed; the BIOS is trying to boot from one of those
> devices, and you need to write to the MBR for that device.
>
> BTW, did you change /etc/lilo.conf to work with your system?
>
> Where are and what are the devices before /dev/hde?

The motherboard (Abit BX133 440BX) has four IDE connectors allowing 8 drives
in total. hda-hdd have a speed of 33 MB/s max. hde-hdh have a speed of 66
MB/s max. So I have always had the two hard drives connected to hde and hdf.
There are no other hard drives. I forget which device the CD drive is, but
most of the IDE connectors are not connected to anything. Since I brought
this up 6 years ago, the MBR has been on hde and supported both Win98 and Red
Hat. This all worked until I tried to build Etch on hde (with no Windows).

It is a good idea that maybe grub is trying to read the MBR on the wrong disk
(hdf). I may have to break down and disconnect hdf before I resume. I may
also try to read the MBR with "od" if it's available just to see where this
string "GRUB Loading stage1.5: is coming from.

I did not try to edit the lilo.conf that was installed. It was really a
bare-bones file.

Thanks.

--

new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400, Steve Kleene wrote:
> [I wrote that my fresh Etch install calls grub and then stops.]

What happens if you reboot the installer in rescue mode and tell it to
install grub again?

Does the box have a floppy and do you have a grub-disk (I've never made
a grub-stick)? Will that get you to a grub command line?

Doug.

--

new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> [I wrote that my fresh Etch install calls grub and then stops.]

I've tried several of the solutions suggested and am still stuck. In the
BIOS, Virus Protection was already disabled, and I tried turning off Power
Management. I've tried the different Access Modes for the drive (Auto, LBA,
Large).

Then I tried rebooting the installer in rescue mode and reinstalling grub (I
think it did "grub-install /dev/hde1").

Then I tried doing a whole new install of just the base system, but set up
these partitions:

IDE5 master (hde) - 41.2 GB IC35L040AVER07-0
#1 primary 98.7 MB B f ext3 /boot
#3 primary 39.5 GB f ext3 /
#5 logical 1.5 GB F swap swap
IDE5 slave (hdf) - 41.2 GB IC35L040AVER07-0
#1 primary 41.2 GB ext2

which gave /boot its own partition at the start of the disk. I tried this a
few times and should mention that the `f' flags in the table sometimes showed
as `F' or `K'. I think `F' means "format this", but I haven't been able to
track down what `f' and `K' mean.

As I said, these all still crashed when the boot got to grub. I wouldn't
have guessed that there was any need to have the boot files near the start of
the disk anyway. Until two days ago, this same disk in the same box had a
9.8-GB Win98 partition (1252 cylinders), followed by Red Hat, as follows:

Mount Size
Device Point Type Format (MB) Start End
/dev/hde
/dev/hde1 vfat 9821 1 1252
/dev/hde2 /boot ext3 Y 102 1253 1265
/dev/hde3 / ext3 Y 28318 1266 4875
/dev/hde4 Extended 1020 4876 5005
/dev/hde5 swap Y 1020 4876 5005
/dev/hdf
/dev/hdf1 ext2 39260 1 5005

This worked fine, although I did have to force lba32 in lilo.conf.
Supposedly grub does this by default.

I have not yet tried the suggestion of making a grub disk but may if I can
figure out what to do with it.

--

new Etch install fails to boot

On Mon, Jul 30, 2007 at 10:19:09PM -0400, Steve Kleene wrote:
> On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> > [I wrote that my fresh Etch install calls grub and then stops.]
>
[... stuff about trying grub and various partition options]
>
> I have not yet tried the suggestion of making a grub disk but may if I can
> figure out what to do with it.

I agree with trying a grub disk. you can boot the system like this
from the grub command line

grub> root (hd0,0) #that tells grub to use the first partition of
the first disk. it should return something about the file system.

grub> kernel /boot/linux-image root=hda2 \
ro single #note this is all on one line. You can use grubs find
feature or its tab completiong to get the complete filename

grub> initrd /boot/initrd.img-2.6blahblahblah #use tab completion
again, but make sure it matches the kernel

grub> boot #this will fire up the boot.

Also, if lilo worked before, then maybe you should use lilo again
until you can get it sorted out.

A

new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> [I wrote that my fresh Etch install calls grub and then stops.]

I've tried the remaining suggestions without luck and am now royally
confused.

1. I installed the grub-disk package and ran the following:
dd if=grub-0.97-i486-pc.ext2fs of=/dev/fd0 bs=1024 conv=sync; sync
There were no errors. I could mount the floppy and read the files. I set
the BIOS to boot off the floppy. The system touched the floppy but failed
to boot off it. I tried this with the box I'm working on and one that is
successfully running Etch. I repeated the test with a second floppy,
which also didn't boot.

2. I tried repeatedly to install grub from the CD in rescue mode. The
install seemed to succeed. I poked around with a rescue shell and
confirmed that files had been installed in /boot/grub. However, booting
the machine still gave the usual message from the dead, i.e.:

Verifying DMI Pool Data ..........
GRUB Loading stage1.5.
Read

3. I reformatted the partitions, reinstalled the base system, and tried to
install lilo. This came up:

LILO installation target:
/dev/hdf: Master Boot Record
/dev/hde1: new Debian partition
Other choice (Advanced)

Note that the first one is for hdf, which is the second drive. I have no
idea why. Anyway, I tried all of these, include Other with /dev/hde and
/dev/hde1. In all cases, I got "lilo-installer failed with error code 1".
Console 4 showed the following:

Setting up lilo (22.6.1-9.3)
mount: /dev/hde1 already mounted or /boot busy
dpkg: error processing lilo (--configure)
subprocess post-installation script returned error exit status 32

Still, I verified that /etc/lilo.conf was there, and there were no grub
files anywhere under /target (including under /boot). I finished the
installation anyway, and found it totally bizarre when a reboot produced
the same output as before, including "GRUB Loading stage1.5". It's as if
this string lives on the MBR and I'm unable to overwrite it.

Practically all I can think of now is trying to install Windows and see if
that's even possible. That's pretty desperate.

In case it's relevant, here's how fdisk showed the filesys in rescue mode:

Device Boot Start End Blocks Id System
/dev/hde1 * 1 12 96358+ 83 Linux
/dev/hde2 4819 5005 1502077+ 5 Extended
/dev/hde3 12 4818 38604195 83 Linux
/dev/hde5 4819 5005 1502046 82 Linux swap / Solaris

I do appreciate all of your suggestions and am sorry this is going on so
long.

--

new Etch install fails to boot

On Tue, Jul 31, 2007 at 09:31:09PM -0400, Steve Kleene wrote:

> In case it's relevant, here's how fdisk showed the filesys in rescue mode:
>
> Device Boot Start End Blocks Id System
> /dev/hde1 * 1 12 96358+ 83 Linux
> /dev/hde2 4819 5005 1502077+ 5 Extended
> /dev/hde3 12 4818 38604195 83 Linux
> /dev/hde5 4819 5005 1502046 82 Linux swap / Solaris
>
> I do appreciate all of your suggestions and am sorry this is going on so
> long.

No need to be sorry ;)

IIRC your /boot partition was pretty big. Would it be very complicated
to make it something like a few hundred megs (less then 512) ?

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> [I wrote that my fresh Etch install calls grub and then stops.]

On Wed, 1 Aug 2007 09:21:49 +0300, Andrei Popescu replied:
> IIRC your /boot partition was pretty big. Would it be very complicated
> to make it something like a few hundred megs (less then 512) ?

As shown during partitioning, it was <100 MB, i.e.

IDE5 master (hde) - 41.2 GB IC35L040AVER07-0
#1 primary 98.7 MB B f ext3 /boot

Since each cylinder is 8225280 bytes, this is 12 cylinders.

--

new Etch install fails to boot

On Wed, Aug 01, 2007 at 08:05:06AM -0400, Steve Kleene wrote:
> On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> > [I wrote that my fresh Etch install calls grub and then stops.]
>
> On Wed, 1 Aug 2007 09:21:49 +0300, Andrei Popescu replied:
> > IIRC your /boot partition was pretty big. Would it be very complicated
> > to make it something like a few hundred megs (less then 512) ?
>
> As shown during partitioning, it was <100 MB, i.e.
>
> IDE5 master (hde) - 41.2 GB IC35L040AVER07-0
> #1 primary 98.7 MB B f ext3 /boot
>
> Since each cylinder is 8225280 bytes, this is 12 cylinders.

Sorry, must have been very tired (or sleepy) when I read that!

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
Albert Einstein)

new Etch install fails to boot

On Mon, Jul 30, 2007 at 10:19:09PM -0400, Steve Kleene wrote:
> [I wrote that my fresh Etch install calls grub and then stops.]
>

Here's a fresh start, just to verify that your machine will actually
boot properly.

1. Connect your drives to /dev/hda and /dev/hdc, set the jumpers on
both drives to master. Alternatively, just remove hdc for now.

2. Boot the installer and go to a shell.

3. Clear the beginning of the drives, which includes the MBR:

dd if=/dev/zero of=/dev/hda bs=512 count=2 ;sync
dd if=/dev/zero of=/dev/hdc bs=512 count=2 ;sync

4. exit the shell and return to the installer.

5. Run the install, just the base system (don't select any tasks).

6. Partition the drives thus:

hda1 /boot 32 MB
hda2 swap 128 MB
hda3 / remainder

You don't need hdc for this.

7. Install the grub onto hda (not hda1 or other partition).

8. Try to reboot. If it doesn't work, reboot the installer in
rescue mode and tell it to install grub again in hda.

As for the grub-disk, if you mount it you should see a default menu.lst
file. Therefore, when you boot it, you should get a menu on the
screen. You may need to ensure that it got copied correctly. Use dd to
make an image file of the floppy you created and then compare the md5sum
of both images. They should be the same.

Good luck,

Doug.

--

new Etch install fails to boot

On Wed, 1 Aug 2007 08:45:23 -0400, Douglas Allan Tutty wrote:

> Here's a fresh start, just to verify that your machine will actually
> boot properly.

Thanks. I'll definitely try this, but probably won't have time until
tomorrow.

> As for the grub-disk, if you mount it you should see a default menu.lst
> file. Therefore, when you boot it, you should get a menu on the
> screen.

In fact, that's exactly what happened on my good Etch machine. It looked
just like the usual grub menu I get from the hard drive, so I probably failed
to realize it was coming from the floppy. And I guess I thought I was
supposed to get a shell prompt to execute the grub commands you had suggested
earlier.

Thanks.

--

new Etch install fails to boot

On Sun, Jul 29, 2007 at 10:28:04PM -0500, Mumia W.. wrote:

> If you can, try to get the boot files placed before the 1024th cylinder
> boundary. Sometimes this is at 0.5GB, 2.1GB or 8GB. Try a partition
> layout like so:
>
> /boot (primary #1, 2.1GB)
> / (primary #2, 37.8GB)
> swap (logical #5, 1.5GB)
>

You shouldn't need a 2.1GB /boot. I find that 24 MB is fine. Hey,
splurge and make it 32 MB.

Since we don't know what the problem is, better be safe and assume that
the boundary is as 512 MB.

Doug.

--

new Etch install fails to boot

On Mon, Jul 30, 2007 at 08:24:08AM -0400, Steve Kleene wrote:
> On Sun, Jul 29, 2007 at 11:00:30PM -0400, Steve Kleene wrote:
> > [I wrote that my fresh Etch install calls grub and then stops.]
>
> On Sun, 29 Jul 2007 23:19:40 -0400, From: Douglas Allan Tutty replied:
> > What happens if you reboot the installer in rescue mode and tell it to
> > install grub again?
>
> I don't know how to do this yet, but it sounds like it's worth looking into.
> I'm hoping not to have to run the whole build again.
>

The installer's rescue mode (at the boot prompt, instead of typing
'install', just type 'rescue') is designed to rescue an already
installed system. It will not reinstall from rescue mode. I also gives
you the option of a shell chrooted into your installation where you can
run commands as if it had booted normally.

> > Does the box have a floppy and do you have a grub-disk (I've never made
> > a grub-stick)? Will that get you to a grub command line?
>
> It does have a floppy. I do not have a grub-disk. I do have a second
> (newer) box that is happily running Etch.
>

Then on that box, install the grub-disk package. It gives you a disk
image which you write to a floppy with dd:
dd if=grub-disk.img of=/dev/fd0 bs=1024 conv=sync; sync

If that box has grub installed and you have the grub-doc package, there
are instructions for putting grub onto a floppy from within the grub
command line.

> And on Sun, 29 Jul 2007 22:28:04 -0500, "Mumia W.." wrote:
>
> > If you can, try to get the boot files placed before the 1024th cylinder
> > boundary. Sometimes this is at 0.5GB, 2.1GB or 8GB. Try a partition
> > layout like so ...
>
> This is exactly what I always did with Red Hat and lilo on a drive that
> shared Windows and Linux. I could easily try this again but thought it
> should be unnecessary for two reasons. First, I am using grub now, which I
> thought supported lba by default. Second, without the whole drive allocated
> to Etch (i.e. no Windows partition at the start of the drive), I imagined the
> files needed by grub would not be placed past cylinder 1024. But maybe
> that's unpredictable.

Just because grub can find something doesn't mean that your bios can
boot it. Just to save the headache later, especially if I move the
drive from one computer to another, I _always_ put /boot in the first
partition on its own. If I have two drives, I'll put it on a raid1
partition for good measure.

Doug.

--

new Etch install fails to boot

On Mon, 30 Jul 2007 09:35:19 -0400, Douglas Allan Tutty [sent several helpful
discussions on how to get around the lba problem with grub].

Thanks very much. It make take me a few days to try these, but in any case
I'll report on the outcomes.

--

new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> [I wrote that my fresh Etch install calls grub and then stops.]

On Mon, 30 Jul 2007 17:30:41 +0000, Robert Cates wrote:
> ... I then re-installed Etch (from scratch) with still the same
> problem, until I decided to turn off (disable) the Power Management in the
> BIOS.
>
> I think your problem was with bootup, but maybe this helps you out, if you
> haven't already found a solution.

Thanks, I'll keep this in mind.

--

new Etch install fails to boot

On Sun, 29 Jul 2007 17:43:26 -0400
Steve Kleene wrote:

Hello Steve,

> I just made a fresh Etch Netinst CD and successfully completed an
> install on a PC that I bought six years ago. When I try to boot,
> this is as far as it gets:

Have you tried booting with a noapic option? Older machines sometime
require that; Mine does, and it's a similar age to yours.

--
Regards _
/ ) "The blindingly obvious is
/ _)rad never immediately apparent"

Black man got a lot of problems, but he don't mind throwing a brick
White Riot - The Clash

new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400, Steve Kleene wrote:
> [I wrote that my fresh Etch install calls grub and then stops.]

On Mon, 30 Jul 2007 13:01:51 +0100, Brad Rogers replied:

> Have you tried booting with a noapic option? Older machines sometime
> require that; Mine does, and it's a similar age to yours.

I haven't tried this, but I'll look into this and the other suggestions I've
received. Thank you.

--

new Etch install fails to boot

On Mon, 30 Jul 2007 11:07:36 -0400
Steve Kleene wrote:

Hello Steve,

> > Have you tried booting with a noapic option? Older machines
> > sometime require that; Mine does, and it's a similar age to yours.
> I haven't tried this, but I'll look into this and the other
> suggestions I've received. Thank you.

TBH, it doesn't appear that your machine is getting far enough into the
boot sequence for this to be an issue.

Having said that, I'm no expert, so don't quote me on it.

--
Regards _
/ ) "The blindingly obvious is
/ _)rad never immediately apparent"

Black man got a lot of problems, but he don't mind throwing a brick
White Riot - The Clash

Syndicate content