Điều này thực sự làm tôi thất vọng. Tôi có Gentoo và Ubuntu, cả hai đều có Grub2. Gentoo có một /bootphân vùng chuyên dụng , trong khi Ubuntu thì không. Tôi có một menuentryGentoo /etc/grub.d/40_customđể khởi động Ubuntu (và Ubuntu không khởi động được).
Bởi vì Ubuntu đi kèm với Grub, tôi muốn chainload vào cái đó, thay vì duy trì mục nhập của tôi, thiết lập root, kernel, initrd và Stuff. Đây là những gì tôi có cho trình tải chuỗi (Ubuntu đã bật /dev/sda4và tôi đã cài đặt Grub ở đó):
menuentry 'Chainloader' {
insmod chain
set root=(hd0,4)
chainloader +1
}
Nó đang cho tôi error: Invalid signaturevà tôi không tìm thấy giải pháp nào cả. Ai đó có thể chỉ ra một cái gì đó?
Đây là kết quả của </dev/sda4 head -c 512 | hd
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000200
Đây là kết quả của fdisk -l. /dev/sda1là /bootcủa Gentoo, Gentoo ở trong /dev/sda2, Ubuntu đang ở /dev/sda4. Ubuntu ấy /bootlà trong /dev/sda4quá.
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
Không có lỗi với 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. Bạn có nhiều hơn một đĩa không? Bảng phân vùng của bạn là gì? Xin vui lòng gửi đầu ra củafdisk -l, và các tin nhắn từgrub-install /dev/sda4 --no-floppy --force.