Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub compile error in fresh install
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
dancaer69
n00b
n00b


Joined: 19 Sep 2016
Posts: 4

PostPosted: Mon Sep 19, 2016 12:31 pm    Post subject: grub compile error in fresh install Reply with quote

Hello,
I'm using arch linux the last year and I decided to install gentoo from arch installation.
The problem started after kernel installation and when tried to emerge grub2 followed wiki instructions. Grub compiling stop with error[30] and locks the disk. The problem is that this affects arch linux isntallation too and after that I cannot give any command(I gen input/output error) and I cannot open any program or unmount the previous mounted devices for chrooting. I only can exit from chroot, close any open application but I cannot start anything or reboot(only with R.E.I.S.U.B combintaion I can reboot). I tried to copy the error messages on terminal when grub compilation fail, but didn't survive anything after reboot.
I can provide some logs, if you point me where they are because I'm not familiar with gento and openrc.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Sep 19, 2016 1:34 pm    Post subject: Reply with quote

You can reuse the arch-linux bootloader too and just hack in your gentoo boot section in that config. I always reuse the bootloaders from binary distros.

Just be warned when you update your binary distro, it may overwrite and destroy hole boot partition without further notice. E.g linux mint does this.

I suggest that you use the arch-linux bootloader and append a section for your gentoo installation if possible.
Back to top
View user's profile Send private message
dancaer69
n00b
n00b


Joined: 19 Sep 2016
Posts: 4

PostPosted: Mon Sep 19, 2016 1:59 pm    Post subject: Reply with quote

I did that, but seems that arch's update grub doesn't detect gentoo correct. I get a kernel panic and arch's update grub doesn't append the initrd. So I don't know if the problem is from kernel or bootloader misconfiguration. For this I wanted to install grub, but seems that always fail. I'm now booting from a xubuntu live dvd and I tried again to emerge grug2 and it failed again but it doesn't lock the disk this time.
Here is the
emerge --info:

Code:
emerge --info '=sys-boot/grub-2.02_beta2-r9::gentoo'
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/systemd, gcc-4.9.3, glibc-2.22-r4, 3.19.0-15-generic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.0-15-generic-x86_64-AMD_FX-tm-4300_Quad-Core_Processor-with-gentoo-2.2
KiB Mem:     8159036 total,   6364212 free
KiB Swap:    8191996 total,   8191996 free
Timestamp of repository gentoo: Sun, 18 Sep 2016 17:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="el_GR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl systemd tcpd udev unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="el_GR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-boot/grub-2.02_beta2-r9::gentoo was built with the following:
USE="fonts nls themes -debug -device-mapper -doc -efiemu (-libzfs) -mount -multislot -sdl -static -test -truetype" ABI_X86="64" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen"
CFLAGS=""
LDFLAGS=""
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Sep 19, 2016 2:07 pm    Post subject: Reply with quote

Quote:
I did that, but seems that arch's update grub doesn't detect gentoo correct.


you should do that manually by hand

there is also a way to use grub functionaliy of sectin 40, thats custom boot entries afaik. plesae check the corresponding text config files of your grub in /etc directory of your arch installation

--

I usually hack /boot/grub/grub.cfg by hand.

e.g.: just an example which i did recenty.

Code:

menuentry ' 4.7.3-gentoo-14-09-2016  /boot/   SanDisk SSD  ' {
        load_video
        insmod gzio
        insmod part_gpt
        insmod fat
        insmod ext2
        set root='hd0,gpt2'
        echo    ' boot entry for SanDisk SSD'

    linux /4.7.3-gentoo-16-09-2016  rootfstype=ext4 keymap=de init=/linuxrc ramdisk=8192 dolvm ro real_root=/dev/mapper/root crypt_root=/dev/mapper/vg_root_volume_SanDisk-lv_root_volume_SanDisk
    initrd /microcode.cpio /initramfs-genkernel-x86_64-4.2.3-gentoo

}


--

Please note, that you only need to install grub once and than can edit those boot entries by hand.

When you intend to keep on using arch linux, than you should edit those custom section of grub in your arch linux installtion and update grub from arch-linux. Most probaby in /etc directory of your arch linux installtion.

when you intend to switch over from arch-linux, i suggest, my point of view, to install grub in arch-linux and edit those boot sections by hand for your gentoo and other operating system. and do not install grub in gentoo, as this will overwrite the bootloader.

--

There is also the way to use another bootloader as grub is not the only way to boot a box. grub refers to any implementation and version number of grub.
Back to top
View user's profile Send private message
dancaer69
n00b
n00b


Joined: 19 Sep 2016
Posts: 4

PostPosted: Mon Sep 19, 2016 2:27 pm    Post subject: Reply with quote

Yes, I know and I will try it.
About grub, I found that was missing Locale-gettext and I installed but then I get a similar error about Locale:messages module. I found a thread with a similap problem here and I run ""perl-cleaner --all" as suggested there. I tried again and finally is installed

EDIT:
After I updated grub in chroot(needed to manually create /boot/grub directory) and then updated arch's grub, the initrd found and I don't have kernel panic any more.
I have another problem though, grub doesn't find root block device. The uuid seems to be right, and I also tried to change it with /dev/sdc6 and /dev/sdd6(because I have 4 disks and sometimes the letters change on different distros) but I always get this error now.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Mon Sep 19, 2016 2:51 pm    Post subject: Reply with quote

if the disk is GPT, recommend PARTUUID vice UUID.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
dancaer69
n00b
n00b


Joined: 19 Sep 2016
Posts: 4

PostPosted: Mon Sep 19, 2016 3:25 pm    Post subject: Reply with quote

No, it isn't.
Anyway I accidentaly deleτed kernel and initrd, so I will start again.
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