I just don't know what to do anymore..
LFS-Version: 6.6
Chapter: 8.4.2 - 8.4.4
Well I issued:
Code:
root:/# grub-install --grub-setup=/bin/true /dev/sdb
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
(hd1) /dev/sdb
Code:
root:/# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinux-2.6.32.8-lfs-6.6
done
So no problems here it seems.
I assume the following steps in 8.4.3. "Testing the Configuration" take place in the host system.
Code:
GNU GRUB version 0.97 (640K lower / 3072K 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 (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> kernel /boot/grub/core.img
Error 15: File not found
So this is the first problem. Grub doesn't see core.img, although it exists.
Code:
root:/# find /boot/grub/core.img
/boot/grub/core.img
If I skip this step and continue to 8.4.4 "Updating the Master Boot Record", I get this error:
Code:
root:/# grub-setup '(hd1)'
grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
grub-setup: error: If you really want blocklists, use --force.
That's the second problem. Any suggestions on either of these problems?
Hint: Before formating my partitions I did a complete overwrite through dd with values from /dev/urandom. Could it be that GRUB assumes that memory in the embedded area is filled because there are non-zero values? Would I have to overwrite with /dev/zero after using /dev/urandom to make sure GRUB recognizes it as free?
Code:
Platte /dev/sda: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spuren, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x04270427
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 1 262 2104483+ 82 Linux Swap / Solaris
/dev/sda2 * 263 2873 20972857+ 83 Linux
/dev/sda3 2874 14593 94140900 83 Linux
Platte /dev/sdb: 16.0 GByte, 16001036288 Byte
64 Köpfe, 32 Sektoren/Spuren, 15259 Zylinder
Einheiten = Zylinder von 2048 × 512 = 1048576 Bytes
Disk identifier: 0x471d85c4
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 * 1 191 195568 83 Linux
/dev/sdb2 192 1145 976896 82 Linux Swap / Solaris
/dev/sdb3 1146 4960 3906560 83 Linux
/dev/sdb4 4961 15259 10546176 83 Linux
Code:
(hd0) /dev/sda
(hd1) /dev/sdb
hd0 is my host system
hd1 is for LFS