Cannot install a bootloader

2006-06-20 Thread Dirk Bonenkamp - Bean IT




Hi All,

I've trouble installing the bootloader (both grub and lilo fail). I'm
using the netinstall cd-image to install. My first idea was a problem
with my RAID controller (Adaptec 2020ZCR, running a 4 disc raid 5
array) but it even fails to install a bootloader to a floppy disc. So I
think it's a general problem, instead of a hardware problem.

It always returns the same error message:

The file /boot/grub/stage1 not read correctly.

The thing I found out is that the new / filesystem is still mounted
under /target, but I guess this is normal while installing...? (never
bothered to look, since it always works out fine).

Any suggestions welcome!

Kind regards,

Dirk







Re: Cannot install a bootloader

2006-06-20 Thread Dirk Bonenkamp - Bean IT




Hi Steffen,

Thanks for your reply. Only I'm not sure what to do now... I've
chrooted to /target and tried to install grub again, still the same
error. The mtab and device.map look correct to me.

Could you give me another hint?

Thanks!

Dirk

Steffen Grunewald schreef:

  On Tue, Jun 20, 2006 at 11:07:05AM +0200, Dirk Bonenkamp - Bean IT wrote:
  
  
Hi All,

I've trouble installing the bootloader (both grub and lilo fail). I'm 
using the netinstall cd-image to install. My first idea was a problem 
with my RAID controller (Adaptec 2020ZCR, running a 4 disc raid 5 array) 
but it even fails to install a bootloader to a floppy disc. So I think 
it's a general problem, instead of a hardware problem.

It always returns the same error message:

The file /boot/grub/stage1 not read correctly.

The thing I found out is that the new / filesystem is still mounted 
under /target, but I guess this is normal while installing...? (never 
bothered to look, since it always works out fine).

  
  
I've seen this error message a few times.
grub must be installed from a chroot environment (which should be true
in your case).
grub must find a *correct* mtab to resolve hard disk partitions.
(it's a bit tricky since the /proc/mounts trick appears not to work)
A leftover device.map may confuse it as well.

Steffen


  





Re: Cannot install a bootloader

2006-06-20 Thread Dirk Bonenkamp - Bean IT






  
Hi All,

I've trouble installing the bootloader (both grub and lilo fail). I'm 
using the netinstall cd-image to install. My first idea was a problem 
with my RAID controller (Adaptec 2020ZCR, running a 4 disc raid 5 array) 
but it even fails to install a bootloader to a floppy disc. So I think 
it's a general problem, instead of a hardware problem.

It always returns the same error message:

The file /boot/grub/stage1 not read correctly.

The thing I found out is that the new / filesystem is still mounted 
under /target, but I guess this is normal while installing...? (never 
bothered to look, since it always works out fine).

Any suggestions welcome!

  
  
Do you have a seperate partition for /boot?  I have seen grub in sarge
fail in that case.  Creating a symlink helps it though.

ln -s . /target/boot/boot

Newer versions of grub are a bit smarter in my experience.

Len Sorensen
  

Thank you all for your replies. Finally, I've created a grub boot
floppy, chose to not install a bootloader, booted into the new system
and installed  configured grub in the new system. No problem at
all. Maybe I've should have tried this a bit sooner, but I'm s
spoiled with the almost-always-smooth debian installer... :)

Thanks!

Dirk