UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I have Mandriva installed on my system. I've been happy with it for several years, but I'd like to try something debian-based, like Ubuntu.
I can install it fine. The problem is the bootloader. I don't want to blow away my Mandriva installation, so I don't want Ubuntu doing anything with the MBR. Seeing as I already have Mandriva installed, and I'm using LILO for a boot loader, I think I should be able make an entry for Ubuntu in lilo.conf and then be able to choose it at boot time.
Unfortunately, I can't figure out how to do it. If anyone could offer some advice, I'd really appreciate it, aside from blowing away the current MBR/LILO.
The "debian" references are due to my prior attempts at installing debian, which yielded the same problem. I've not bothered to change the names of the mount points.
You might want to check your ubuntu bootloader config file and see what append options are used, if any, and add the same ones to the above.
Next, save the changes to lilo.conf and run lilo to write your changes to the mbr:
# lilo -v
The ubuntu entry should be added without error. Try booting up into ubuntu.
Actually, accessing ubuntu's vmlinuz and initrd through the ubuntu mount point in mandrake should work as well, but sometimes there are problems with that approach. Copying the ubuntu vmlinuz and initrd to a directory in mandrake's /boot has worked better for me.
Your instructions get me in the ballpark, and I thank you for them.
However, I then run into a filesystem error during the boot process, and it seems to be the same error I've encountered in trying to use debian, ubuntu, and now kubuntu. The wording varies, but it's basically the same error -- a problem trying to set up the TTY's, and I'm guessing its because it's not pointing to the right file system due to something I'm missing in my LILO configuration.
The init script is in the / directory. In it are the following commands:
# export rootmnt=/root
# mount -n -o bind ${rootmnt}/dev /dev/.static/dev
# mount -n -o move /dev /{rootmnt}/dev
These command yield the following errors:
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
mount: Mounting /dev on /root/dev failed: No such file or directory
Target filesystem doesn't have /sbin/init
The latter message is the result of a test statement.
Anyway, I get dumped into Busyboy where it tells me "Can't access tty; job control turned off." In Debian it tried to load tty1 a half dozen times, timed out for 30 seconds and then tried again twice more, only to finally dump me into a kernel panic, and I was unable to trace the error.
Kubunto was kind enough to put me into Busyboy, where I could I do a pwd and see I'm in /. Then, I do a dir /root and find that it contains the files that are on /hda1/boot.
I think this is the problem, for the /root directory contains the boot files on the first hard disk (hda1) and init is not going to find any root file system in there. It should be looking on /hdb1 for them.
I had to use the full filename instead of symlinks for vmliunz and initrd.img. I can't find any append parameters on the (k)ubuntu install and I've tried booting with and without them.
What kernel are you using in mandrake, 2.6.x or 2.4.x?
With a 2.6 kernel you should not use "devfs=mount" so I'm wondering why you have that in your append line. I assume you got that out of your lilo.conf entry for mandrake. If anything, with a recent 2.6 kernel, you would use "devfs=nomount". Devfs is deprecated and replaced by udev in recent 2.6 kernels. You could try using "devfs=nomount" in the append line for ubuntu.
Is either hard drive a sata drive?
Also, please post your /etc/fstab for both mandrake and ubuntu. The reason here is that with sata drives, the device file changed from hdx to sdx about a year ago in the 2.6 kernel series. This can cause some complications when using lilo from a distro with an older kernel and trying to boot to a newer series 2.6 kernel. The trick there is to put the "root=/dev/hdxx" as the old kernel recognizes it and put a "root=/dev/sdxx" in the append line as the newer kernels recognize it.
This is the kubuntu fstab. If it's glaringly different from a regular Ubuntu, let me know and I'll re-burn the Ubuntu CD and reinstall it and then re-post (makes no diff which one I use, I'm just trying to get something debian to boot):
I'm using IDE drives (ribbon cables). The drives used to be jumpered for cable select (CS), but to ensure the proper drive is booting I've got them set for master and slave. Based on what you said, I take it there's no need to "root=/dev/sdxx"
I'm using "devfs=mount" because that's what I've always used, so it's a holdover from the 2.4 kernels. I'll replace it with "devfs=nomount" and give it a try.
Appreciate your help, and please let me know if I should reburn the Ubuntu CD instead of continuing with Kubuntu.
In your kubuntu installation take a look at /boot/grub/menu.lst; that's ubuntu's grub config file which is analogous to lilo.conf. See what options are there in the append line and use the same options with your ubuntu lilo.conf entry.
I decided to take the plunge and overwrite the MBR. I selected the option to formate the entire hdb drive using LVM. It told me that I could install Grub on the MBR, and that there was a Mandrake install already on hda. I told it to go ahead.
It figured out ALL of my Mandrake configurations and added Kubuntu as the default boot., and it actually booted. I was worried that it wouldn't even boot, for when I tried to do this with Debian, i got a bunch of 1 0 1 0 1 0 1 0 1 0 1 0 1 0 on the screen and had to use the Mandrake Rescue disk to recover the MBR.
First thing I did was to try to boot Mandrake. It booted fine. I rebooted into Kubuntu and it began to to finish the install process.
Looks like a really nice install, albeit its geared for newbies and is missing lots of KDE stuff that I want. Found the docs and I'll redo apt so it points to the universal sources and then I should be a happy camper.
Thanks for going the extra mile on this to try and help me out. I will look at the difference between the the grub and lilo configuration files to learn how they work [differently].
for the very same reasons (as post #1) I tried to install kubuntu 5.10 on the second ide disk of my home computer currently under both mdk9.1 and mdk10.1 exactly as you did. I wanted to choose which disk to boot from ide0 or 1 and did not want to mess up with ide0 MBR. All went fine (almost !) and I got the very same error messages... This is obviously not a mandriva problem ! I just send this reply to let know whoever might be interested in mandriva/debian/ubuntu communities that this problem arises. By the way I first tried the standard install with grub on /dev/hdb beeing careful about the differences in numbering scheme of grub... but got the same error... it seems that install on the second IDE drive is the problem ? I also tried using the strategy outlined in #2 by kligoretrout, I am familiar with this technique which is my standard multiboot procedure. It failed the boot starts screen blanks then get into a wrong video mode ? some meaning less patches of colored dots here and there on a blank screen...
Cheers all
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.