LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-25-2012, 01:04 AM   #1
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Rep: Reputation: Disabled
How to put lilo in the MBR and make my system dual bootable


I have installed ubuntu 12.04 in my pc.Now i want to change my bootloader to lilo and add other kerenel version.But the problem is how to make lilo my boot loader.I run this
Code:
 /sbin/lilo -v -v
to make lilo my bootloader in MBR but i got this
Code:
Fatal:no image have been defined
Removed temporary file /boot/map~
what sld i do and besides where do i get this image,map,boot,root....parameters that i sld write in the lilo.conf file.Are those pre defined thing or i am supposed to define them.Pls help me with a material to reed or any thing.
Best Regardes
 
Old 12-25-2012, 03:36 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,497

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
you should be running lilo -C /path/to/config.file, usually /etc/lilo.conf. Read man lilo.conf
 
Old 12-25-2012, 03:52 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
You should post your /etc/lilo.conf file here

Markus
 
Old 12-25-2012, 04:20 AM   #4
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Original Poster
Rep: Reputation: Disabled
I just instlled lilo i n a command line like this
Code:
 sudo apt-get install lilo
it is installed ther is a a lilo file added in my /boot but i didn't have a/etc/lilo.confg file so i created a file with that name.Now it is that it is empty and i don know how to fill it.
 
Old 12-25-2012, 04:24 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
afaik there should at least be a template lilo.conf, for example on my computer there is a /usr/share/doc/lilo-23.2/sample/lilo.example.conf
you should copy the example to /etc/lilo.conf and then edit it. there's a manpage for lilo.conf

Markus
 
1 members found this post helpful.
Old 12-25-2012, 05:30 AM   #6
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Original Poster
Rep: Reputation: Disabled
Than u sooo much u have been very helpful.Now do i copy and paste it completelly??
 
Old 12-25-2012, 05:33 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Code:
sudo cp /usr/share/doc/lilo-23.2/sample/lilo.example.conf /etc/lilo.conf
where you have to use the correct path to the sample file.

Markus
 
1 members found this post helpful.
Old 12-25-2012, 06:38 AM   #8
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Original Poster
Rep: Reputation: Disabled
Ok i did that but u know what are the things that i need to update or change and to what kind.
 
Old 12-25-2012, 06:51 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Well, you should post your settings. On which partitions are / and /boot and the other OS?

If you want to install lilo to the MBR you'll have to have a line
Code:
boot = /dev/sda/
in your lilo.conf, provided you meant the MBR of /dev/sda

Markus
 
Old 12-25-2012, 07:22 AM   #10
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Original Poster
Rep: Reputation: Disabled
Dear Markus
U know i am new to linux.so i don't know how to find out in which partition which is installed.Well i have one Desk and i have both ubuntu,Windows and another ubuntu installed in a virtual machine.I am working this thing in the virtual machine.Here is the lilo.conf file that i copied.What sld i do??
Code:
lba32
boot=/dev/sda
map = /boot/map
install=menu
prompt=100
#First example(default)
image = /boot/vmlinuz-2.6.32-2-generic
       label="Linux"
       root=/dev/sda2
       read-only
       initrd = /boot/initrd.img-2.6.32-2-generic
#second example
image = /boot/vmlinuz-2.6.32-1-generic
       label="LinuxOLD"
       root=/dev/sdb1
       read-only
       initrd = /boot/initrd.img-2.6.32-1-generic
#Third example
image = /mnt/testsystem/boot/vmlinuz-2.6.32-1-custum
       label="TestSystem"
       root=/dev/sda3
       read-only
       initrd = /mnt/testsystem/boot/vmlinuz-2.6.32-1-custum
other=/dev/sda1
     label="Windows xp"
other=/dev/sda1
     label="Windows 2003"
while this is what my /boot directory looks like
Code:
abi-3.2.0-29-generic-pae         memtest86+.bin
coffee.bmp                       memtest86+_multiboot.bin
config-3.2.0-29-generic-pae      onlyblue.bmp
debian.bmp                       sarge.bmp
debian-de.bmp                    sid.bmp
debianlilo.bmp                   System.map-3.2.0-29-generic-pae
grub                             tuxlogo.bmp
initrd.img-3.2.0-29-generic-pae  vmlinuz-3.2.0-29-generic-pae
inside.bmp
cld u pls tell me what is in my lilo.conf file??
 
Old 12-25-2012, 07:57 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz-3.2.0-29-generic-pae
  initrd = /boot/initrd.img-3.2.0-29-generic-pae
  root = /dev/sda?
  label = Linux
  read-only
###
For the questionmark you will have to insert the number of the partition where / is. This provides that /boot and / are on the same partition. You can check the output of
Code:
cat /etc/fstab
or
Code:
df -h
to find out about the partitions.

And don't forget to run lilo before rebooting

Markus

Last edited by markush; 12-25-2012 at 07:59 AM. Reason: typo
 
1 members found this post helpful.
Old 12-26-2012, 01:42 AM   #12
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Original Poster
Rep: Reputation: Disabled
Dear Markus
Thank u soo much for ur wonderful help.I did the following in the /etc/lilo.conf file
Code:
boot =  ata-VBOX_HARDDISK_VBf8f45f35-9b533ad8
map = /boot/map
prompt
timeout = 100
image = /boot/vmlinuz-3.2.0-29-generic-pae
    label = "Linux"
    root = "UUID=7c37411f-3ff6-4de2-b35b-5f3605ad7ad5"
    read-only
    initrd = /boot/initrd.img-3.2.0-29-generic-pae
then in a terminal
Code:
/sbin/lilo -v -v
then i got the following output cld u pls what is wrong??
Code:
 
LILO version 23.2 (released 09-Apr-2011)
  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
  * Copyright (C) 1999-2007 John Coffman  (until v22)
  * Copyright (C) 2009-2011 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software
distributed under the BSD License (3-clause). Details can be found in
the file COPYING, which is distributed with this software.
Compiled at 04:05:58 on Jun 19 2011
Running Linux kernel 3.2.0-29-generic-pae on i686
Ubuntu GNU/Linux

Fatal: raid_setup: stat("ata-VBOX_HARDDISK_VBf8f45f35-9b533ad8")
 
Old 12-26-2012, 03:14 AM   #13
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Well, lilo thinks you have a RAID system running. Could you please post your /etc/fstab file?

Markus
 
1 members found this post helpful.
Old 12-26-2012, 05:14 AM   #14
micflunu
Member
 
Registered: Oct 2012
Posts: 62

Original Poster
Rep: Reputation: Disabled
Here it is
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=7c37411f-3ff6-4de2-b35b-5f3605ad7ad5 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=db9f8da7-ef2a-4298-8457-15d9eb4a51e0 none            swap    sw              0       0
 
Old 12-26-2012, 05:18 AM   #15
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Well, what does
Code:
df -h
and
Code:
fdisk -l
say? do you know which partition is /

Markus
 
1 members found this post helpful.
  


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
Vista + Slackware dual boot (same hdd): Is it safe to install LILO to MBR? and_ru General 15 09-27-2009 12:54 AM
Mbr lilo (error load operating system) hellasyoda Slackware 14 04-20-2008 04:05 PM
Install Lilo in MBR during instalation of SuSE 9.3 (with dual boot Windows XP) cangussu.br Linux - Newbie 2 05-05-2005 10:46 PM
How i make LILO in MBR with Bootable CD ? saffron Linux - General 4 10-17-2003 10:28 AM
Do not want lilo in my MBR, want to use System Commander to boot rdaves@earthlink.net Linux - General 4 09-21-2001 11:55 PM


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