To mnie naprawdę denerwuje. Mam Gentoo i Ubuntu, oba z Grub2. Gentoo ma dedykowaną /bootpartycję, podczas gdy Ubuntu nie. Mam menuentryGentoo /etc/grub.d/40_customdo uruchomienia Ubuntu (a Ubuntu uruchamia się OK).
Ponieważ Ubuntu zawiera Grub, chcę do niego załadować, zamiast utrzymywać mój wpis, który ustawia root, jądro, initrd i inne. Oto, co mam dla programu ładującego łańcuch (Ubuntu jest włączony /dev/sda4i już tam zainstalowałem Grub):
menuentry 'Chainloader' {
insmod chain
set root=(hd0,4)
chainloader +1
}
Daje mi error: Invalid signaturei nie znalazłem rozwiązania. Czy ktoś może coś wskazać?
To wynik </dev/sda4 head -c 512 | hd
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000200
To wynik fdisk -l. /dev/sda1jest /bootz Gentoo, Gentoo jest w /dev/sda2, Ubuntu jest w /dev/sda4. Ubuntu też /bootjest /dev/sda4gotowe.
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe001152b
Device Boot Start End Blocks Id System
/dev/sda1 1 9 72261 83 Linux
/dev/sda2 10 13064 104864287+ 8e Linux LVM
/dev/sda4 * 18152 19457 10490445 83 Linux
Nie ma błędu z grub-install /dev/sda4 --no-floppy --force
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.
/dev/sda4. Czy masz więcej niż jeden dysk? Jaka jest twoja tabela partycji? Proszę zamieścić dane wyjściowefdisk -li wiadomości zgrub-install /dev/sda4 --no-floppy --force.