View Full Version : LILO Problem
The_Giver
May 6th, 2007, 12:19 AM
I'm trying to install LILO since so many are talking about it but I haven't found a guide for moving to lilo from grub.
Here is the error I get when I try liloconfig:
Your /etc/fstab configuration file gives device │
│ UUID=2ea2f11f-dfb5-47ed-9ebd-2aaf7051735e as the root filesystem device. │
│ This doesn't look to me like an "ordinary" block device. Either your │
│ fstab is broken and you should fix it, or you are using hardware (such │
│ as a RAID array) which this simple configuration program does not │
│ handle.
THIS IS FOR THE MACBOOK PRO C2D
I have OSX on the first partition, Linux on the second and Last is Windows Xp
Chrisj303
May 6th, 2007, 05:00 AM
Check this out : http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu
Just scroll down a little, to were it gives instructions on LILO.
You will need to completely remove GRUB first though. I did it via synaptic - search for GRUB then remove anything it shows as installed. I had to login as root (control-alt-delete) and delete the GRUB folder located in /boot, as well.
Once you deleted it - DO NOT REBOOT! Follow the guide i linked to.
Remember to sync your mbr/guid tables with the rEFIt partition tool when you do reboot.
I have exactly the same setup as you (but a macbook) - LILO is a much better choice, i'm sure it will make you happy!
The_Giver
May 6th, 2007, 06:10 AM
Could someone else verify this too please?
I heard I needed to use eLILO also.... how exactly do I sync/ the mbr/guide tables since I didint do this before I don't know what that means.... Will I need to modify anything in the lilo config file?
MY specs:
- MacBook Pro C2D
- Feisty
- Triple Booting
Chrisj303
May 6th, 2007, 07:29 AM
Could someone else verify this too please?
I heard I needed to use eLILO also.... how exactly do I sync/ the mbr/guide tables since I didint do this before I don't know what that means.... Will I need to modify anything in the lilo config file?
MY specs:
- MacBook Pro C2D
- Feisty
- Triple Booting
No, you won't have to use eLILO - i don't know were youve read that, but for our setups this is not true.
I am running :
Macbook c2d
Triple Boot : OSX/UBUNTU (Feisty 7.04) / XP
I am using rEFIt 0.9 (the current version) and LILO.
When you boot, and you enter the rEFIt menu, the partition tool is found on the second row of options - it is clearly marked. Select it by pushing enter - it will then anaylize your tables, it they are out of sync it will let you know, and offer to sync them for you.
cheers,
chrisj303
The_Giver
May 6th, 2007, 07:43 AM
Damn I'm already half way there but did you add the Edgy crap ?
The_Giver
May 6th, 2007, 07:51 AM
I'm completely SCREWED all that work... went to waste... I did everything you said and now I get this error:
"GRUB GRUB Hard Disk Error" DAMN!!!!!!!!!!!!!!
I am sure I removed everything grub related.. DAMN IT... also there is like a clone of the ubuntu now called partition 3... DAMN IT!!!!!!!!!!
I know i never should never have trusted that guide.
Chrisj303
May 6th, 2007, 08:30 AM
I'm completely SCREWED all that work... went to waste... I did everything you said and now I get this error:
"GRUB GRUB Hard Disk Error" DAMN!!!!!!!!!!!!!!
I am sure I removed everything grub related.. DAMN IT... also there is like a clone of the ubuntu now called partition 3... DAMN IT!!!!!!!!!!
I know i never should never have trusted that guide.
That guide is great, i followed it completley to get my system up and running - you'll see it linked a lot regarding his subject.
When i installed feisty, unlike edgy, GRUB did not crash during the install.
So i did what i told you - deleted as much of it as i could via synaptic, then logged in as root and got rid of the GRUB folder found in /Boot.
You installed lilo, via the terminal, yes?
You configured the lilo.conf, as descibed in the guide ?
After this you updated LILO, by using : 'sudo lilo' - in the terminal ? (again as described in the guide)?
The fact that you are getting a GRUB error indicates that you have not got rid of it completley - which is vital, as LILO will not work until it is completley gone.
I would not feed you, or anybody for that matter information that i have not had first hand experiance with.
The_Giver
May 6th, 2007, 08:32 AM
It's okay.. I guess I'll just have to reinstall.
Chrisj303
May 6th, 2007, 08:42 AM
NO, you have a functioning ubuntu install - it is just your bootloader that is borked. You can restore GRUB from the live cd.
You can also 'chroot' into your ubuntu install from the LIVECD - to make changes to your current install. Boot from your CD, open a terminal and :
sudo su -
mkdir /mnt/ubuntu
mount /dev/sda3 /mnt/ubuntu
mount -t proc none /mnt/ubuntu/proc
mount -o bind /dev /mnt/ubuntu/dev
chroot /mnt/ubuntu /bin/bash
I do this one line at a time.
After this, you will be in a root terminal enviroment that is linked ("chrooted") to your current install. From here you can re-install GRUB.
To re-install GRUB from terminal, you will have search around - it is not something i have done myself, as i don't use it. But i'm certain it will be easy.
Chrisj303
May 6th, 2007, 08:47 AM
Damn I'm already half way there but did you add the Edgy crap ?
What were you refering to?
The_Giver
May 6th, 2007, 08:50 AM
I did everything in the guide except for the edgy stuff... also.... I deleted my boot/grub dir via "sudo rm -R "
maybe that was my mistake?
The_Giver
May 6th, 2007, 08:50 AM
What were you refering to?
Edgy users need to use "sudo parted /dev/sda" instead of "sudo parted". This should be executed in a normal terminal
Chrisj303
May 6th, 2007, 09:07 AM
Edgy users need to use "sudo parted /dev/sda" instead of "sudo parted". This should be executed in a normal terminal
Yes, i followed the instructions for edgy users.
Chrisj303
May 6th, 2007, 09:13 AM
I did everything in the guide except for the edgy stuff... also.... I deleted my boot/grub dir via "sudo rm -R "
maybe that was my mistake?
This from the guide :
apt-get install lilo lilo-doc linux-686-smp linux-restricted-modules-2.6.15-23-686 linux-kernel-headers
If you are using the CD version of edgy, you will need a network connection to install the above packages. Edgy users should do this in the chrooted terminal. UPDATE: Edgy users dont need to do this download. Follow this guide which is super easy and uses grub. https://help.ubuntu.com/community/MacBook You will need to run instead of the above:
apt-get update
apt-get install lilo lilo-doc linux-686-smp linux-restricted-modules-686 linux-kernel-headers
So yes, i followed the bottom set of commands.
I removed the grub folder, located in /boot, by logging out (ctrl-alt-delete), then looging back in as root. Then i located the folder and trashed it.From here i installed and configured LILO as the guide says.
The_Giver
May 6th, 2007, 10:13 AM
Hey I got my ubuntu back .. but grub doesnt give me that menu anymore... with the menu to select which OS i want to boot from.. someone mind posting the contents of their /boot/grub/menu.lst
The_Giver
May 6th, 2007, 10:20 AM
I'll try and see how it goes again..
The_Giver
May 6th, 2007, 10:27 AM
So when i am on step :
parted
set 3
boot
on
I get "Unable to mount the volume 'EFI'
and the Macintosh HD pops up in the File browser
Chrisj303
May 6th, 2007, 10:43 AM
From the guide, directly below the part you are refering to :
Edgy users need to use "sudo parted /dev/sda" instead of "sudo parted"
Are you doing this?
I did:
sudo parted /dev/sda
set 3
boot on
on
quit
Then i did : sudo lilo
My partitions are (in case your interested):
/dev/sda2 - mac osx
/dev/sda3 - ubuntu
/dev/sda4 - XP
The_Giver
May 6th, 2007, 10:43 AM
Now, once I type "sudo lilo" i get "Warning: Partiton 3 on /dev/sda is not marked Active
The_Giver
May 6th, 2007, 10:51 AM
Still it didnt work... oh well... I think i'll just stick to grub...
There is something you forgot to tell me because i remove grub both via the command line and via the graphical interface
Chrisj303
May 6th, 2007, 10:52 AM
From the very bottom of the guide :
See the Talk page if you just get a blank screen when trying to boot Edgy.
Which contains a link to this :
http://wiki.onmac.net/index.php/Talk:Triple_Boot_via_BootCamp_Ubuntu
The_Giver
May 6th, 2007, 10:58 AM
Wait a minute.. when you say "remove /boot" you dont mean rm -R /boot do you?
Chrisj303
May 6th, 2007, 11:06 AM
NO
I removed the GRUB folder from within the /boot directrey.
Please DO NOT REMOVE your /boot !
Like i said before, i removed all trace of GRUB from system, then installed and configured LILO.
This is a screenshot of my desktop, showing my /boot dir - notice the GRUB folder, or anything to do with GRUB is not there. To remove the GRUB folder from /boot i had to login as root (ctrl-alt-delete).
http://i178.photobucket.com/albums/w268/chrisj303/Screenshot-1.png
To the left is my LILO config file.
The_Giver
May 6th, 2007, 11:34 AM
Hey maybe you missed this but did you get the two following errors:
"Unable to mount the volume 'EFI' (during the sudo parted section)
and
""Warning: Partiton 3 on /dev/sda is not marked Active"
right after typing in "sudo lilo"
Chrisj303
May 6th, 2007, 11:49 AM
Hey maybe you missed this but did you get the two following errors:
"Unable to mount the volume 'EFI' (during the sudo parted section)
and
""Warning: Partiton 3 on /dev/sda is not marked Active"
right after typing in "sudo lilo"
I DID NOT get the first error
I DID get the second error - it made no difference to my setup, i'm triplebooting fine.
Have you got rid of that GRUB folder? Have you followed ALL the steps regarding LILO, in that guide i linked?
If so you *should* be triple booting.
If you are thrown back into an error like before, read the guide i linked last : http://wiki.onmac.net/index.php/Talk:Triple_Boot_via_BootCamp_Ubuntu
- This is perfect for that situation.
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.