How to put lilo in the MBR and make my system dual bootable
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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??
# 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
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")
# /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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.