LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-21-2010, 02:30 AM   #31
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850

Hi Bhakta Neal,

do as bonixavier wrote. This will work if you have one of these Grub versions with a menu.lst file.
Editing the menu.lst file is only necessary in order to add your new Suse to the menu.lst.
When you issue the
Code:
sudo grub-install
command without previous editing the menu.lst, you'll have the same grubmenu on boot as before installing Suse.
This may be the safer choice since you can add Suse to the Grub menu.lst later.

Markus
 
1 members found this post helpful.
Old 12-21-2010, 08:06 AM   #32
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Quote:
root@linux:/# chroot
chroot: missing operand
Try `chroot --help' for more information.
root@linux:/#
Im sorry, I just don't know what Im doing
 
Old 12-21-2010, 08:10 AM   #33
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Quote:
root@linux:/# sudo grub-install /dev/sda
sudo: unable to resolve host linux.site
Installation finished. No error reported.
root@linux:/#
Did I do something correctly here?
 
Old 12-21-2010, 08:20 AM   #34
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 63
Quote:
Originally Posted by Bhakta Neal View Post
Im sorry, I just don't know what Im doing
I don't know if suse also has the stupid no root issue. Try logging in as root.
Code:
su -
If that doesn't work, use
Code:
sudo su
Then you do the following:
  1. mkdir /mnt/kubuntu
  2. mount /dev/sda1 /mnt/kubuntu
  3. mount -t proc none /mnt/kubuntu/proc
  4. mount -o bind /dev /mnt/kubuntu/dev
  5. chroot /mnt/kubuntu
  6. sudo su (here you use your kubuntu password)
  7. grub-install /dev/sda
  8. update-grub
  9. exit
  10. exit (you have to exit twice - first you leave your root login then you leave chroot)
  11. reboot

    That should do. If it doesn't work, consider switching to a simpler boot-loader like grub legacy or lilo.

Last edited by bonixavier; 12-21-2010 at 08:21 AM.
 
1 members found this post helpful.
Old 12-21-2010, 08:31 AM   #35
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
As far as I can tell, there is none of that elementary no-root issue with Suse. My prompt seems to be root already. So, now I will try those steps above.
 
Old 12-21-2010, 08:37 AM   #36
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Cannot find list of partitions?

Here is every step from post #34. I don't know what "Cannot find list of partitions" means.



Quote:
root@linux:/# su -
root@linux:~# mkdir /mnt/kubuntu
root@linux:~# mount /dev/sda1 /mnt/kubuntu
root@linux:~# mount -t proc none /mnt/kubuntu/proc
root@linux:~# mount -o bind /dev /mnt/kubuntu/dev
root@linux:~# chroot /mnt/kubuntu
root@linux:/# sudo su
sudo: unable to resolve host linux.site
root@linux:/# sudo su Q77a441
sudo: unable to resolve host linux.site
Unknown id: Q77a441
root@linux:/# grub-install /dev/sda
Installation finished. No error reported.
root@linux:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Cannot find list of partitions!
done
root@linux:/# exit
 
Old 12-21-2010, 08:42 AM   #37
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
should I exit and reboot, or is there somethong to fix first?
 
Old 12-21-2010, 08:44 AM   #38
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Also, I'd like an explanation of what I just did. Did I somehow log into kubuntu's terminal, and adjust bootloader?
Very neato, I just want to understand what I am doing
 
Old 12-21-2010, 09:01 AM   #39
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
root@linux:/# sudo grub-install /dev/sda
sudo: unable to resolve host linux.site
Installation finished. No error reported.
root@linux:/#
looks like you've installed Grub from Kubuntu.

In order to reboot, please use the "exit" command in the terminal where you chrooted, this will leave the chroot environment.

Markus
 
1 members found this post helpful.
Old 12-21-2010, 09:02 AM   #40
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
I exited, and rebooted.

Now my machine boots Kubuntu automatically, and still produces no grub list....
 
Old 12-21-2010, 09:05 AM   #41
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
I did several "exit" to log out of each "layer". Then rebooted. I get only Kub and no other choices.
 
Old 12-21-2010, 09:06 AM   #42
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, that was the first step! Successfully!

You'll have to edit the file /boot/grub/menu.lst in Kubuntu and then add all the Linux-distributions you've installed on the computer.

Remember that this does not work if you have both 32bit and 64bit distributions installed.

So I'd suggest to provide more information about your installations (wich version on which partition) and please post the menu.lst file.

Markus
 
Old 12-21-2010, 09:21 AM   #43
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 63
I don't think grub2 uses menu.lst the way legacy did.

Try running "sudo update-grub" from Kubuntu. That might fix things.

If it doesn't, you'll have to provide more information the way Markus asked.

Last edited by bonixavier; 12-21-2010 at 09:22 AM.
 
Old 12-21-2010, 09:24 AM   #44
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi,

this is true, Grub2 hasn't a menu.lst, I hoped that it was the old version of Grub. But as far as I know Grub2 finds all Linux distributions automatically. Hopefully it will work.

If not, we'll have to look if Bhakta Neal has another distribution installed which uses Grub 0.97, then he can edit this menu.lst, add all distribution and install Grub to /dev/sda.

Markus
 
Old 12-21-2010, 10:19 AM   #45
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
My partitions and their OSs:

/dev/sda1 Kubuntu 10.04, 64-bit, factory CD from Canonical
/dev/sda2 Ubuntu 10.04, 64-bit, torrented ISO from Ubuntu page, checksums good
/dev/sda3 (my FAT32 file storage, no OS)
/dev/sda4 (extended, and branches off with the following
/dev/sda5 openSuSE 11.3 x86 64-bit, torrented ISO from official site, checksums good (installing this caused all these problems)
/dev/sda6 Sabayon 5.4 KDE AMD64, torrented ISO from official site, checksums good
/dev/sda7 Salix 13.1.2 KDE 64-bit, torrented ISO from official site, checksums good
/dev/sda8 swap 5GB
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Choices Offered for Partitioning - No Swap Offered? cbl48 Ubuntu 1 04-03-2010 07:41 PM
[GRUB] can't find other OS's hattrick Linux - Newbie 8 11-06-2008 12:05 AM
2HDDs, 2 OS's (Grub Q) phantom_cyph Linux - Software 2 05-14-2007 11:18 PM
So exactly how many os's can Grub handle? mebrelith Fedora 2 03-16-2005 05:37 PM
2 harddrives, 2 os's, 1 grub? arg!! nickwu2000 Linux - Newbie 1 03-31-2003 12:23 PM


All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration