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.
I recently switched from Ubuntu 11.04 to Mandriva 2010.2 and I have encountered a somewhat-serious issue. When I recently rebooted my computer to boot into Ubuntu (to export Chrome bookmarks, etc), I found that the GRUB was entirely overwritten by the Mandriva install, making me unable to boot into Ubuntu. How do I add my Ubuntu partition to GRUB, so I am to boot into it also?
First boot from Mandriva Linux, then mount Ubuntu's /boot partition.
Open Ubuntu's /boot/grub/menu.lst (if it is older version of GRUB).
Copy Ubuntu's boot configuration, paste it into Mandriva's /boot/grub/menu.lst file.
Then restart the machine.
what partition is ubuntu located on? a entry similar to this should work
root=(hd0,0)
kernel /vmlinuz root=/dev/sda1
initrd /initrd.img
this is assuming ubuntu is on the first partition of the first harddrive. the (hd0,0) and root=/dev/sda1 will change if the ubuntu is on a different partition and/or partition.
Last edited by colorpurple21859; 06-26-2011 at 08:15 AM.
I am booting Ubuntu 10.10 with Grub2 from PCLinuxOS (Mandriva based) with the following entry, Ubuntu on sda5:
Quote:
title Ubuntu-10.10
root (hd0,4)
kernel /boot/grub/core.img
#savedefault
#boot
It works with or without the savedefault and boot lines on my system. Others have said they need to remove those lines to boot. You would need to ascertain whether the core.img file is in the Ubuntu /boot/grub directory.
When I try to log in as root it says "Root logins are not allowed". What settings do I need to change
Are you trying to log in to the Graphical User Interface? You should just open a terminal and log in as root. I don't have Mandriva installed but you should have a menu icon in the Taskbar or somewhere. Just look for terminal or konsole and click it to open it. The type: su - (hit the enter key) type your root password when prompted, hit the enter key again. You will then need to open a text editor, I don't know which Mandriva uses. You could try: kwrite /boot/grub/menu.lst to see if it opens. Personally, to edit files as root I always use vi text editor. (Just tried kwrite on my system, it opened as a normal user but not as root??)
EDIT: I used su instead of su -, so if you want to try kwrite, enter su - in a terminal, enter root passwd, type: kwrite /boot/grub/menu.lst. That should work also.
Try: vi /boot/grub/menu.lst
If this opens your menu.lst file, hit the "i" key (lower case Letter I for insert) then use the arrow keys on your keyboard to navigate to where you want to put the entry for Ubuntu. You will most likely need to change the root entry as you did not indicate which partition your Ubuntu was on. When you have inserted your entry, hit the ESC key on your keyboard and to save and exit type: :wq and hit enter. That is a colo and lower case letters wq. There are other ways, this is just the one I'm familiar with.
Last edited by yancek; 06-26-2011 at 08:29 PM.
Reason: Add info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.