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






Re: Cannot install a bootloader

2006-06-20 Thread Lennart Sorensen
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).
> 
> 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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Cannot install a bootloader

2006-06-20 Thread Goswin von Brederlow
Dirk Bonenkamp - Bean IT <[EMAIL PROTECTED]> writes:

> 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

Grub-install tries to emulate the bios as it will be during boot as
best as possible during install to test if grub will work. Sometimes
that test itself doesn't work or it actualy shows a future boot
problem.

To make sure which of the two you have create a grub floppy.

apt-cache show grub-disk

Boot from that floppy and install grub from the grub shell directly.

MfG
Goswin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Cannot install a bootloader

2006-06-20 Thread Steffen Grunewald
On Tue, Jun 20, 2006 at 11:25:18AM +0200, Dirk Bonenkamp - Bean IT wrote:
> 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?

Run the script by "sh -x" and look what exactly is being extracted for 
the (hd*,*) values, and compare with your setup

Steffen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Cannot install a bootloader

2006-06-20 Thread Matthew Robinson




Dirk Bonenkamp - Bean IT wrote:

  
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



  


>From outside the chroot:

mount -o bind /dev /target/dev
mount proc -t proc /target/proc





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 Steffen Grunewald
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]