since about 1 year i am using the same harddisk. as the procution system 
is a little outdated now, i wanted to make a 'fresh' disk.

to boot from this disk i had to start an ubuntu livecd and install grub 
from this cd. the systems (i have built both 32bit and 64bit) can boot 
and run fine.

but i can't install my own compiled grub as a boot-loader!


/dev/sda1 = /boot
/dev/sda2 = / (for 32bit)
/dev/sda3 = / (for 64bit)

/dev/sda4 = extended
/dev/sda5 = SWAP
/dev/sda6 = DATA


booting the system with ubuntus grub works fine. running "grub install 
/dev/sda" from a chroot (dev, proc, sys are mounted with --bind) says 
everyting is fine but booting results in the grub console with:

GRUB loading.
Welcome to GRUB!

error: disk 'hd0,msdos1' not found.
Entering rescue mode...


'ls' just shows a newline - an empty list!

rebooting the live-cd, reinstalling grub, putting my grub.conf into 
place - the system boots fine.

i built grub as in the book.

"grub-install /dev/sda" has no errors:
Installatoin finished. no error reported


grub from ubuntu can boot either partitions (32 or 64bit), so does grub 
from parted magic.

i tried both grub versions i built (32/64) but none can boot, both just 
enter the console as mentionned above.

grub.conf is very basic and works fine with grub from ubuntu and parted 
magic.

** cut
set root='(hd0,1)'
set timeout=10
insmod ext2
menuentry "linux 32bit" {
   linux /boot/kernel-3.4.18-t32 root=/dev/sda2
}
menuentry "linux 64bit" {
   linux /boot/kernel-3.4.18-t64 root=/dev/sda3
}
** cut





ubuntu installs into
/boot/grub and /boot/grub/locale where the modules are in /boot/grub

lfs has an additional /boot/grub/i386-pc where the modules are. i 
already copied all from /boot/grub/i386-pc to /boot/grub but no change.

the boot symlink exists as required for a boot partition.

google was no help - i probably don't know what to ask for...


i'm trying to get grub up now for more than a week and have no more 
ideas what i could try.

any help welcome!

tobias


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to