Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub issue but not sure how to post this
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DavidLee1A
n00b
n00b


Joined: 30 May 2013
Posts: 9

PostPosted: Sat Jun 01, 2013 6:43 pm    Post subject: Grub issue but not sure how to post this Reply with quote

1) The background: Did all steps from minimal disk to reboot listed in the manual (BUT MODIFIED ACCORDING TO MY SITUATION)

2) The problem: Running update-grub in Debian sees the gentoo kernel but does not add it to the boot options. Thus, only Debian and Debian Recovery are listed options when starting up the computer.

3) Is this the right thread and what info should I post to make diagnosing the problem clear?

notes: (A) I looked at the Grub error sticky/thread on this forum but because Debian loads there are no error messages.
(B) Also, after I rebooted according to the gentoo manual nothing would boot so used used SuperGrub 2 to get back into Debian then ran update-grub and rebooted and Debian was back.
(C) I never installed a separate Grub in gentoo because I figured my Debian Grub should be able to boot into the gentoo partition.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Jun 01, 2013 7:00 pm    Post subject: Reply with quote

what is the name of the gentoo kernel?
is the gentoo boot partition the debian boot partition? if not, is the kernel in the debian boot partition?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DavidLee1A
n00b
n00b


Joined: 30 May 2013
Posts: 9

PostPosted: Sat Jun 01, 2013 7:18 pm    Post subject: Reply with quote

Quote:
name of gentoo kernel?

Code:

root@DavidLee1A:/boot/grub# mount -t ext3 /dev/sda6 /mnt/spare
root@DavidLee1A:/boot/grub# cd /mnt/spare
root@DavidLee1A:/mnt/spare# ls
bin   etc   lib32   media  proc  sbin             tmp
boot  home  lib64   mnt    root  stage3-amd64-20130516.tar.bz2  usr
dev   lib   lost+found   opt    run   sys             var
root@DavidLee1A:/mnt/spare# cd boot
root@DavidLee1A:/mnt/spare/boot# ls
3.8.13-gentoo

so, as you can see, it is kernel-3.8.13-gentoo
Quote:
is the gentoo boot partition the debian boot partition

no, but perhaps the gentoo fstab would be the most detailed answer:
Code:

root@DavidLee1A:/mnt/spare/etc# cat fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda6      /boot      ext2      noauto,noatime   1 2
/dev/sda6      /      ext3      noatime      0 1
/dev/sda5      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
/dev/fd0      /mnt/floppy   auto      noauto      0 0
root@DavidLee1A:/mnt/spare/etc#

the kernel is in the gentoo partition as you can see above
Is there any other info you would like to see?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Jun 01, 2013 7:41 pm    Post subject: Reply with quote

Quote:
3.8.13-gentoo
won't work grub2 looks for vmlinuz or kernel in the kernel name so rename the kernel to kernel-3.8.13-gentoo or vmlinuz-3.8.13-gentoo
been a while but I think you still need the kernel in the grub2 boot partition unless osprober finds it
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DavidLee1A
n00b
n00b


Joined: 30 May 2013
Posts: 9

PostPosted: Sat Jun 01, 2013 7:56 pm    Post subject: Reply with quote

renamed:
Code:

root@DavidLee1A:/home/david# mount -t ext3 /dev/sda6 /mnt/spare
root@DavidLee1A:/home/david# cd /mnt/spare
root@DavidLee1A:/mnt/spare# ls
bin   etc   lib32   media  proc  sbin             tmp
boot  home  lib64   mnt    root  stage3-amd64-20130516.tar.bz2  usr
dev   lib   lost+found   opt    run   sys             var
root@DavidLee1A:/mnt/spare# cd boot
root@DavidLee1A:/mnt/spare/boot# ls
kernel-3.8.13-gentoo

ran update-grub:
Code:

# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
Found Gentoo Base System release 2.2 on /dev/sda6
done

did #reboot
but the Grub screen did NOT list kernel-3.8.13-gentoo, what do I do next please?
(it still only shows Debian and Debian recovery)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Jun 01, 2013 10:19 pm    Post subject: Reply with quote

did you run osprober and/or put a copy of the kernel in debian boot partition before grub-mkconfig?

http://www.gnu.org/software/grub/manual/html_node/Simple-configuration.html you can roll your own
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DavidLee1A
n00b
n00b


Joined: 30 May 2013
Posts: 9

PostPosted: Sun Jun 02, 2013 1:58 am    Post subject: Reply with quote

I have done as you described (I just did it and rebooted to check) but I have not gone in and edited the file myself. Do I need to study the output of grub-mkconfig or edit a file? Is it possible I either am missing some component to run gentoo or somehow messed up the kernel... is there some classic way of debugging? some website with a list of things to check?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sun Jun 02, 2013 3:07 am    Post subject: Reply with quote

did you install and run os-prober?
are the gentoo partitions mounted when running grub-mkconfig -o /boot/grub.cfg in debian?

easy/sleazy is emerge grub in the gentoo chroot then setup grub on the gentoo boot partition then chainload gentoo from debian
_________________
Defund the FCC.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Jun 02, 2013 10:06 pm    Post subject: Reply with quote

This is odd, highly odd:

Code:
/dev/sda6      /boot      ext2      noauto,noatime   1 2
/dev/sda6      /      ext3      noatime      0 1


If /boot is inside hda6, you don't need to mount it. You just mount hda6 to /, and /boot will be there just like the rest of the directories.

I can't help with debian stuff, but you can always edit the boot config file by hand, it's simple enough. Besides that, you can as well press 'e' while you are in the grub menu, and edit the kernel and root line(s), you can even use TAB autocompletion, which is wonderful when you are not sure about the disk names. Check all this stuff and report back, please. :D
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
DavidLee1A
n00b
n00b


Joined: 30 May 2013
Posts: 9

PostPosted: Mon Jun 03, 2013 3:17 am    Post subject: Reply with quote

Thank you for your replies! I will work on it during the week and post back as soon as I can.
Back to top
View user's profile Send private message
DavidLee1A
n00b
n00b


Joined: 30 May 2013
Posts: 9

PostPosted: Fri Jun 07, 2013 2:28 am    Post subject: Reply with quote

Ok, I essentially reinstalled GRUB and it picked up Gentoo and gave me the option to boot into it. At that stage I got a "kernel panic" when booting into Gentoo so now I need to figure out why it failed to load. Should I mark this solved as I accomplished the first goal of getting GRUB to fully recognize Gentoo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum