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.
Hi everyone. I am an utter Linux newb who was tricked into putting Ubuntu for 64-bit on his machine. After a few months of thinking I was an idiot, I realized that 64-bit stuff simply isn't available yet in sufficient quantities to be useful for an average user (despite my techie friends' exhortations). So I went and installed Simply Mepis, which I like, although I find the KDE desktop very busy.
Anyways, I had already partitioned the hard drive when I put Ubuntu on, figuring I might make the machine dual boot in the future. So I easily preserved /home and such, and Mepis installed like a dream.
Except that I can't get to Ubuntu now. Somehow I must have screwed up and made it that the machine doesn't offer me the choice of OS. I have no idea how to fix this, and am hoping there is some simple line that will make the machine offer me the choice again.
Ubuntu is on /hda1, while Mepis is on /hda2. /home is on its own partition, as is the swap.
Any help to be found? (crosses fingers and prepares to sacrifice ducks to the computer gods.)
What happened is that the boot loader Grub(I think Grub is the option for Mepis) installed in the MBR. All you need to do is to is edit /boot/grub/menu.lst. Add an entry for Ubuntu and restart. An example from my menu.lst:
I have my Ubuntu at /dev/hda10. You need to change 'root (hd0,9)' to 'root (hd0,0)' and 'root=/dev/hda10' to 'root=/dev/hda1'. Then it should work. You can check that the Ubuntu partition has the files that grub is trying to load, /boot/vmlinuz and /boot/initrd.img. otherwise you just change to the right file name.
E
One can mount Ubuntu partition /dev/hda1 in Mepis (Mepis could have mounted it automatically because that is what is different from others) and see the actual lines lines ubuntu use to boot itself. The file is /boot/grub/menu.lst in hda1. You can cut and paste the 4 relavant lines as indicated by esbel.
As Mepis now control the MBR your editing should be confined to the /boot/grub/menu.lst of hda2.
title Ubuntu, kernel 2.6.10-5-amd64-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-5-amd64-generic root=/dev/hda1 ro console=tty0 single
initrd /boot/initrd.img-2.6.10-5-amd64-generic
savedefault
boot
title Ubuntu, kernel memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot
So I have 2 questions:
First: Which of those lines should I paste in?
Second: Why is it than when I do paste something in, I get a warning saying I can't edit that file? I suspect it has to do with getting into super user mode, but I tried running KEdit in super user and that accomplished nothing. Maybe I have to log out and log back in as super user? (Mepis appears to not let you just switch into super user mode).
I thought maybe I had to run a text editor from the terminal, but I appear to only have vi, which is impossible to understand for a newbie.
title MEPIS at hda2, kernel 2.6.10
kernel (hd0,1)/boot/vmlinuz-2.6.10 root=/dev/hda2 nomce quiet splash=silent vga=791
initrd (hd0,1)/boot/initrd.splash
title Ubuntu at hda1, kernel 2.6.10-5-amd64-generic Default
kernel (hd0,0)/boot/vmlinuz root=/dev/hda1 ro console=tty0 quiet splash
initrd (hd0,0)/boot/initrd.splash
title MEMTEST
kernel /boot/memtest86.bin
This resulted in getting 3 options when I rebooted: Mepis kernel 2.6, Ubuntu amd64, and memtest. But when I select Ubuntu it just hiccups into offering me the same 3 again, and doesn't actually load Ubuntu.
Did I put in the wrong one? Should I put in all 4? And if I do, do I include the boot at the end?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.