LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-26-2007, 04:31 AM   #1
basileus
Member
 
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:

Code:
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-2.6.21.1-mactel-mactel
This is what happens when I try to run "grub-install":

Code:
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:

Code:
root@macbook:/boot/grub# ls
default     e2fs_stage1_5  grub.conf     menu.lst        reiserfs_stage1_5  stage2
device.map  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
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Original Poster
Rep: Reputation: 30
Problem fixed... see http://refit.sourceforge.net/doc/c4s5_parted.html 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.
 
  


Reply


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


All times are GMT -5. The time now is 05:13 PM.

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