Sun 31 Dec 2006 12:17:00 AM UTC, original submission:
I compiled grub-0.97 from sources on my x86_64-pc-linux-gnu system. My tool chain is gcc-4.1.1/binutils-2.17. The GRUB thus built works to some extent. I can create a boot floppy, as described in the info pages, and use it to load and boot my linux kernel manually. However, if I try to install grub on my hard disk, I get weird errors:
>--------------------------------------------------------------
sarkovy:~# /sbin/grub-install /dev/hda
GNU GRUB version 0.97 (1433218132K lower / 1433218132K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x1
grub> setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1433549916)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd1433549916,1433549744)"... failed (this is not fatal)
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd134654070) /boot/grub/stage2 p /boot/grub/menu.lst "... failed
Error 1433218151: Invalid device requested
>--------------------------------------------------------------
If I boot from a floppy disk and uset the 'setup' command, the results are very similar, only the memory values, disk/partition numbers and error numbers, which are obviously bogus, are different.
|