Latest LQ Deal: Linux Power User Bundle
Go Back > Blogs > sjampoo
User Name


Rate this Entry

LILO - What a fix?

Posted 05-24-2009 at 02:14 PM by sjampoo
Updated 05-24-2009 at 04:42 PM by sjampoo

Since I still want LILO to get onto my MBR, booted aLive-cd(Ubuntu), mounted /dev/sda2 to /home/slack and did a man lilo in /home/slack/sbin

There the option/error that I got during installation is mentioned under the -P section: Something about partition table and wrong values or..

Should do a /sbin/lilo -P ignore as far as I understand?

ubuntu@ubuntu:~/slack/sbin$ lilo -P ignore
Fatal: Cannot open: /etc/lilo.conf
ubuntu@ubuntu:~/slack/sbin$ pwd
ubuntu@ubuntu:~/slack/sbin$ lilo -P ignore -C /home/ubuntu/slack/etc/lilo.conf
Fatal: open /dev/sda: Permission denied
damnit.. sudo then?

ubuntu@ubuntu:~/slack/sbin$ sudo lilo -P ignore -C /home/ubuntu/slack/etc/lilo.conf
Fatal: Trying to map files from unnamed device 0x0012 (NFS/RAID mirror down ?)
damnit.. what now?
cd to ~/slack/etc
read the man lilo a bit more.. and wait: I do have to specify I want lilo to be in the MBR...

-M didn't do the trick: which device? An../dev/sda

ubuntu@ubuntu:~/slack/etc$ sudo lilo -C /home/ubuntu/slack/etc/ -P ignore -M /dev/sda
Backup copy of /dev/sda in /boot/boot.0800
The Master Boot Record of /dev/sda has been updated.
Now, for a reboot, see what happens..

I did notice via a ' cat lilo.conf ' that there were changes made by the setup of slackware, so it's just the writing of the mbr that failed.

This ( see below) does look like a list adopted to my machine: sda1 = vista, sda2 = slackware sda3 = swap.
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
# Linux bootable partition config ends
gave it a try. Nope.. damnit.. Windows Vista again.
Will try the FIX option,. which may just f*ck up all partitions.. but hey.. I got to take some risk don't I ?
(besides: what's there to lose? an almost clean vista + office 07 installation without major adjustment or changes )

Damnit. still nothing. Again Vista.. found something, somewhere that could be an option, but since there just the command, no explanation, I will 'man' it up ( booting to my ubuntu-live cd ones more!)
lilo -r /newroot ?

Stupid me.
boot with slackware-dvd
at boot: hugesmp.s /dev/sda1 initrc thingy =ro and voila: slackware boot from hdd.
sbin/Lilo -> error
-P ignore-> some output + error + added windows/linux (must be okay!)
-P fix -> some output + error + added windows/linux

lets test: Yes.! Works.

Now to get KDE to go 1280x1024 instead of 1024x786
Posted in Uncategorized
Views 4290 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 09:24 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