Binary Revolution Forums: Lilo problems. Trying to add Ubuntu to Lilo. - Binary Revolution Forums

Jump to content

Welcome to Binary Revolution Forums

Welcome to the Binary Revolution Forums! You are a guest and are welcome to browse our 7 public forums at the top of the list without registering. All other forums are restricted to registered users only and will give you an "unauthorized" message if you try to browse them. However, if you Register or Sign In (ABSOLUTELY FREE and PRIVATE) you will be able to access many more sections of the site that are reserved for registered members and have lots of other benefits such as bypassing those annoying ads.

  • NO ADS! All of the ads are for GUESTS ONLY!
  • The annoying guest message (this very one) at the top of every page will go away.
  • Access our private messaging system to communicate with other users.
  • Start new topics and reply to others instead of just reading.
  • Subscribe to topics and forums to get automatic updates on watched threads.
  • Add/view events to our community calendar.
  • Customize your profile and see your statistics.
  • Change your preferences such as choosing layouts and tweaking your settings.
  • Contribute your site to our database of links.
  • Access our Gallery and all of its features (instead of just viewing thumbnails) including uploading images of your own.
  • Build up your reputation using our reputation controls.
  • Once again: NO ADS! All of the ads are for GUESTS ONLY! It is all free so Register Now!
Guest Message © 2012 DevFuse
ANNOUNCEMENTS & NEWS:


ANNOUNCEMENT: BinRev is now proud to be hosted and affiliated with lunarpages! See the announcement at the top of the forums for more details.
ANNOUNCEMENT: Follow us on twitter: @binrev @stankdawg

NOTE 2011-11-11: post-dated! I will be getting married on 11/11/11 and will be unavailable for the rest of of November! Any forum issues should be directed to lattera. We apologize in advance for slow responses.

-- StankDawg

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Lilo problems. Trying to add Ubuntu to Lilo. Just finished installing Slackware.... Rate Topic: -----

#1 User is offline   ansichart 

  • SUP3R 31337 P1MP
  • Icon
  • View blog
  • Group: Members
  • Posts: 282
  • Joined: 17-August 06
Reputation: 0
Neutral

Posted 16 April 2008 - 03:44 AM

I have Ubuntu installed on /dev/hdb1 and Slackware on /dev/hda1. I installed Slackware last, and it installed Lilo to the MBR. After that, I tried adding Ubuntu to the lilo.conf file.

Quote

image = /media/hdb1/boot/vmlinuz-2.6.20-16-generic
root = /dev/hdb1
initrd = /media/hdb1/boot/initrd.img-2.6.20-16-generic
label = Ubuntu
read-only

This is what my lilo.conf file looks like now
 
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 7500
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda1
  label = Slackware
  read-only

image = /media/hdb1/boot/vmlinuz-2.6.20-16-generic
  root = /dev/hdb1
  initrd = /media/hdb1/boot/initrd.img-2.6.20-16-generic
  label = Ubuntu
  read-only
# Linux bootable partition config ends


After that I mounted /dev/hdb1 to /media/hdb1 and ran lilo:

Quote

root@gibson:/etc# mount /dev/hdb1 /media/hdb1
root@gibson:/etc# lilo
Warning: LBA32 addressing assumed
Added Slackware *
Added Ubuntu
One warning was issued.


I then restarted my computed and tried booting Ubuntu.

It started loading up but never made it to Ubuntu's splash screen for loading... instead I just got a bunch of text. In the text I saw something similar to HDA1 PORT ALREADY IN USE and same with HDB1.

Any ideas?

Also if this helps...

Back when I just had Ubuntu, I used Grub and it loaded Ubuntu fine. But since Slackware installed Lilo to the MBR, I can't use Grub. Anyway, here is the entry in the /boot/grub/menu.lst file: (on hdb1)

Quote

title Ubuntu, kernel 2.6.20-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=ab261830-c788-4e15-9233-c11a6c299921 ro qui$
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault


and /boot/grub/device.map

Quote

(hd0) /dev/hda
(hd1) /dev/hdb

This post has been edited by ansichart: 16 April 2008 - 05:13 AM

0

#2 User is offline   Dirk Chestnut 

  • SUP3R 31337 P1MP
  • Icon
  • View blog
  • Group: Members
  • Posts: 268
  • Joined: 21-September 06
  • Location:248
Reputation: 2
Neutral

Posted 16 April 2008 - 06:36 AM

Coincidentally, this person is trying to do the same thing:

http://www.linuxquestions.org/questions/sl...-ubuntu-613632/

I find the above is a bit odd, as it suggests copying the both OS's kernel/initrd files to the same partition.

You don't seem opposed to Grub, and I recommend it above Lilo, so I'll offer this link too:

https://help.ubuntu.com/community/Recoverin...stallingWindows

It's instructions on how to reinstall Grub when Windows writes it's boot loader to the MBR. It's the same situation you're in (swap Windows with Slack). One of the best things about Linux installs is that you can swap out boot loaders whenever... it's not an operation tied solely to installation. The instructions above recommend show how-to using the Ubuntu LiveCD, but in all actuality you could get to the same commands while natively logged in to your Ubuntu system

This post has been edited by Dirk Chestnut: 16 April 2008 - 09:31 PM

0

#3 User is offline   ansichart 

  • SUP3R 31337 P1MP
  • Icon
  • View blog
  • Group: Members
  • Posts: 282
  • Joined: 17-August 06
Reputation: 0
Neutral

Posted 16 April 2008 - 09:11 AM

View PostDirk Chestnut, on Apr 16 2008, 06:36 AM, said:

You don't seem opposed to Grub, and I recommend it above Lilo, so I'll offer this link too:

https://help.ubuntu.com/community/Recoverin...stallingWindows

It's instructions on how to reinstall Grub when Windows writes it's boot loader to the MBR. It's the same situation you're in (swap Windows with Slack). One of the best things about Linux installs is that you can swap out boot loaders whenever... it's not an operation tied solely to installation. The instructions above recommend show how-to using the Ubuntu LiveCD, but in all actuality you could get to the same commands while natively logged in to your Ubuntu system


I was thinking this too, and I will probably try this. However, I was on freenode talking to someone about this problem. He was helping me troubleshoot it, and he is thinking that someone my Ubuntu system got messed up and it's not Lilo at all. I do recall restarting the computer as it was in the middle of booting up Ubuntu which probably wasn't good for it... perhaps that might have messed it up. Not really sure at the moment.

Also... I was wondering about the extra parameters in "kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=ab261830-c788-4e15-9233-c11a6c299921 ro qui$" do you think if I add that to Lilo it will work? I would try this right now but I don't want to mess with anything right now until I finish with my classes today. I have 2 exams, :-(
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


  • Time Now: Feb 10 2012 08:37 PM