-   Linux - Software (
-   -   Installing Slackware messed up Ubuntu installation (

nine9nine 02-04-2013 09:50 PM

Installing Slackware messed up Ubuntu installation
Hi guys. Sorry if this is the wrong forum to post this, it just seemed like the best one. I had Windows 7 and Ubuntu 12.10 installed on my laptop, and I decided to install Slackware 14.0 alongside the two. Installed fine, but Ubuntu was missing from the LILO menu. I edited /etc/lilo.conf to add Ubuntu. The Slackware part of the file looked like


At least, I think. I'm in Windows right now. To add Ubuntu, I copied the same exact thing, except I replace /dev/sda8 with /dev/sda6. When I try to boot Ubuntu, it boots, but when I get to the login screen, the mouse and keyboard don't work, and I get a notification saying that the network went offline. At the moment, I have no idea what caused this problem, since I've had Backtrack installed as a third OS before without problem. The only thing I can think of is possibly the "/boot/vmlinuz" is wrong, and there should be some numbers after "vmlinuz", such as "vmlinuz-2.0.36".
Anyone know how I can fix this problem? Worst that can happen is that I'll have to reinstall Ubuntu, but I want to avoid that if I can.

albinard 02-04-2013 10:22 PM

LILO does not recognize the Grub2 boot system that Ubuntu uses. One way to get the Ubuntu back is this:

Boot the installation disc (or USB, if you used that)

Mount the Ubuntu partition: sudo mount /dev/sdaX /mnt

Run grub-install: sudo grub-install --root-directory=/mnt/ /dev/sda

Reboot, then run sudo update-grub

Grub2 can coexist with earlier boot systems like LILO, but the early ones (LILO, legacy grub) can't adapt to Grub2.

nine9nine 02-05-2013 04:48 PM

Thanks! It worked perfectly. Now I can boot to both!

All times are GMT -5. The time now is 03:29 AM.