LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2013, 04:06 PM   #1
Foxblood
LQ Newbie
 
Registered: Apr 2005
Location: Dublin, Ireland
Distribution: Arch, Sabayon
Posts: 9

Rep: Reputation: 0
Missing OS in Grub


Hi, all,


I have three OS's installed over two drives. Win 7 and Sabayon are in sda and Arch is on sdb. Grub is managed by Arch. I had Grub working from Sabayon before but it no longer works. Grub cannot find Sabayon. Nor can os-prober. I want to manually add Sabayon to Grub but I can't get it to work. What I have in /etc/grub.d/40_custom is this:

menuentry "Sabayon" {
set root=(hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.7.0-sabayon
initrd /boot/initramfs-genkernel-x86_64-3.7.0-sabayon
}
menuentry "new"{
}

Can anyone spot where I'm going wrong? Thanks for your attention.
 
Old 09-01-2013, 07:40 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,905

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
The entry you posted above is a combination of Grub Legacy and Grub2 which is probably why it doesn't work. If Arch uses Grub2, the first two lines of your entry should be:

Quote:
menuentry "Sabayon" {
set root=(hd0,1)
Grub2 counts partitions from one, not zero so there is no (hd0,0). If you are using Grub Legacy the entry would be:

Quote:
title Sabayon
root (hd0,0)
In both examples above, Sabayon would need to be on sda1.

Quote:
kernel /boot/kernel-genkernel-x86_64-3.7.0-sabayon
If you are using Grub2, you would need to replace 'kernel' above with 'linux'.
You could also use the standard chainload entry. You first need to find out which Grub you are using.
 
Old 09-02-2013, 01:49 AM   #3
arnold.kang
LQ Newbie
 
Registered: Mar 2013
Location: Chengdu.China
Distribution: fedora
Posts: 29

Rep: Reputation: Disabled
how about reinstall the grub
 
Old 09-02-2013, 04:49 AM   #4
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
I've had instances where grub would not find an installed Linux OS simply because the partition that the OS is on was not mounted when generating a new boot menu. In your case, mount the Sabayon partition and then update the boot menu.
 
  


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
GRUB NTLDR Missing?? CuriousCat Mandriva 3 03-29-2009 01:32 PM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 02:50 PM
Missing Grub nmsuaussie Linux - Laptop and Netbook 1 05-14-2007 12:31 PM
GRUB gone missing wormy234 Linux - Software 4 11-24-2005 10:07 AM
Missing GRUB svendabassist Fedora - Installation 4 02-08-2005 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:42 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