View previous topic :: View next topic |
Author |
Message |
shisbosd n00b
Joined: 16 Jun 2014 Posts: 27
|
Posted: Mon Jun 16, 2014 9:29 pm Post subject: Unsuccessful Reboot [SOLVED] |
|
|
I'm a first time Gentoo user, and I haven't been able to successfully install it on my desktop PC. I've tried a few times, I either must be interpreting the Handbook's guide incorrectly or there is some environmental or user exception which is causing this. When I get to the step where I reboot, Grub2 hangs while saying
``loading initial ramdisk...''
My partition table is similar to that of the Handbook's but I have a separate /home partition. I'm using GPT. grub2-mkconfig detects my kernel which I've compiled manually, and my initramfs which I've generated by issuing the appropriate genkernel commands. My kernel has the support needed for initramfs mentioned in the handbook, and I only have one HDD, so I told grub to install at /dev/sda.
I'd be really grateful if anyone could tell me what it is I must be doing wrong.
Last edited by shisbosd on Sun Aug 10, 2014 5:21 pm; edited 1 time in total |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Tue Jun 17, 2014 11:32 am Post subject: |
|
|
Please post your /etc/fstab and the kernel config.
P.S.: and grub.cfg |
|
Back to top |
|
|
shisbosd n00b
Joined: 16 Jun 2014 Posts: 27
|
Posted: Fri Jun 20, 2014 3:47 am Post subject: |
|
|
Keruskerfuerst wrote: | Please post your /etc/fstab and the kernel config.
P.S.: and grub.cfg |
Thanks for the response, sorry it took a me while to reply. I'm yet to be sure whether to use code tags or quote tags for file contents.
My fstab:
Code: |
/dev/sda1 /grub ext4 noatime 1 2
/dev/sda2 /boot ext4 defaults,noatime 0 2
/dev/sda3 none swap sw 0 0
/dev/sda4 / ext4 defaults,noatime 0 1
/dev/sda5 /home ext4 defaults,noatime 0 0
|
I'm not sure if I should include /dev/sda1 or not, or whether "defaults" is needed in all of my instances of it.
My grub.cfg:
Code: |
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if ["${next_entry}"]; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once} ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part _gpt
insmod ext2
set root=`hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 280a6162-45d4-4aa5-920e-240b1f501676
else
search --no-floppy --fs-uuid --set=root 280a6162-45d4-4aa5-920e-240b1f501676
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry `Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option `gnulinux-simple-280a6162-45d4-4aa5-920e-240b1f501676' {
load_video
set gfxpayload=keep
insmod gio
insmod part_gpt
insmod ext2
set root=`hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 05dc689-29f4-49fb-6256df4951e0
else
search --no-floppy --fs-uuid --set=root 05dc6898-29f4-49fb-8f2b-6245df4951e0
fi
echo `Loading Linux 3.12.21-gentoo-r1 ...'
linux /vmlinuz-3.12.21-gentoo-r1 root=UUID=280a6162-45d4-4aa5-920e-240b1f501676 ro
echo `Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.12,21-gentoo-r1
}
menuentry `Gentoo GNU/Linux, with Linux 3.12,21-gentoo-r1 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option `gnulinux-3.12.21-gentoo-r1-recovery-280a6162-45d4-4aa5-920e-240b1f501676' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=`hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 05dc6898-29f4-49fb-8f2b-6245df4951e0
else
search --no-floppy --fs-uuid --set=root 05dc6898-29f4-49fb-8f2b-6245df4951e0
fi
echo `Loading Linux 3.12.21-gentoo-r1 ...'
linux /vmlinuz-3.12.21-gentoo-r1 root=UUID=280a6162-45d4-4aa5-920e-240b1f501676 ro
echo `Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.12.21-gentoo-r1
}
menuentry `Gentoo GNU/Linux, with Linux 3.12.21-gentoo-r1 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option `gnulinux-3.12.21-gentoo-r1-recovery-280a6162-45d4-4aa5-920e-240b1f501676' {
load-video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root =`hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 05dc6898-29f4-49fb-8f2b-6245df4951e0
else
search --no-floppy --fs-uuid --set=root 05dc6898-29f4-49fb-8f2b-6245df4951e0
fi
echo `Loading Linux 3.12.21-gentoo-r1 ...'
linux /vmlinuz-3.12.21-genoo-r1 root=UUID=280a6162-45d4-4aa5-920e-240b1f501676 ro single
echo `Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.12.21-gentoo-r1
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the `exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
|
As for my kernel config, if that's "/usr/src/linux/Kconfig" like I think it is, do I need to copy by hand or are most people copying and posting from links or something during their installs? I've typed the two previous files verbatim (hopefully). |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Jun 20, 2014 4:17 am Post subject: |
|
|
boot installcd, mount the gentoo partitions, run Code: | wgetpaste /usr/src/linux/.config
lspci -k | wgetpaste | post the url's returned. when you have a running gentoo system or when in the gentoo chroot you can add wgetpaste to your system by running _________________ Defund the FCC. |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sat Jun 21, 2014 3:59 am Post subject: |
|
|
shisbosd wrote: | I'm yet to be sure whether to use code tags or quote tags for file contents. | As a general rule, use code tags for file contents and program output and use quote tags for quoting what others wrote, bonus points for using the ="what/where/who" forms of the tags. |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Sun Aug 10, 2014 4:49 pm Post subject: |
|
|
It might be a good idea to configure the kernel manually. |
|
Back to top |
|
|
shisbosd n00b
Joined: 16 Jun 2014 Posts: 27
|
Posted: Sun Aug 10, 2014 5:23 pm Post subject: |
|
|
Thanks for the help but I'm marking this one as solved. The issue was that my x220 thinkpad cannot boot a disk with GPT labels unless I am using UEFI. I reinstalled with fdisk's MBR partitions and rebooting worked. |
|
Back to top |
|
|
|
|
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
|
|