Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-26-2007, 04:31 AM   #1
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
Can't replace Lilo with Grub on Mactel (refit in use)

Here's my setup:

Macbook (=Intel-based Mac)
Refit as primary bootloader (to switch between OS X and Linux)
Lilo as the secondary bootloader (Refit load loads Lilo which loads Linux)
Debian Etch

The setup works perfectly, except for the Lilo part. I'd love to use Software Suspend2 and therefore I would love install Grub instead of Lilo. The grub version in Etch should work in configuration. Older Grub versions apparently hosed the GPT's partition table. The GPT partition table and MBR partition tables are synced (with gptsync /dev/sda).

Here's my grub.conf:

timeout 5
default 0
fallback 1

title Debian
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-4-686
initrd /boot/initrd.img-2.6.18-4-686

title Mactel
root (hd0,2)
kernel /boot/vmlinuz-
This is what happens when I try to run "grub-install":

root@macbook:/boot/grub# grub-install /dev/sda
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
But the "stage1" _is_ there:

root@macbook:/boot/grub# ls
default     e2fs_stage1_5  grub.conf     menu.lst        reiserfs_stage1_5  stage2  fat_stage1_5   jfs_stage1_5  minix_stage1_5  stage1             xfs_stage1_5
Do I have to recreate the stage1 file somehow? Me not understand .
Old 06-12-2007, 12:55 PM   #2
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Original Poster
Rep: Reputation: 30
Problem fixed... see for more info.

In short, the Linux root partition was falsely marked by GNU parted as EFI System partition (FAT) in GPT. Then, when the GPT was synced with MBR, this change was propagated to MBR, so Grub couldn't install itself, because it did not recognize the partition type. I guess Lilo works a bit differently and didn't mind. REFIT versions 0.9 fix this problem if they encounter it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Replace Grub w/ LILO zeroz52 Linux - Newbie 3 10-04-2005 12:26 PM
how can i replace "lilo" with "grub"....... b0nd Linux - Newbie 5 04-18-2005 04:52 AM
How to replace Lilo with Grub? pwaring Linux - Software 2 03-26-2004 10:04 AM
Replace Lilo with Grub acjt Linux - General 2 04-28-2003 07:20 AM
Replace Grub by LILO uttamsaxena Linux - General 1 06-19-2002 03:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration