Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156277 - grub fails to boot after upgrade without reinstall
Summary: grub fails to boot after upgrade without reinstall
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-26 00:31 UTC by Gilles Espinasse
Modified: 2007-03-18 14:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Espinasse 2006-11-26 00:31:55 UTC
I upgrade a one year old Gentoo to ../profiles/default-linux/x86/2006.1/server
Apart a problem with gcc too old on glibc-2.4 compilation solved by gcc upgrade how-to, upgrade goes smooth until next reboot.

grub was upgraded from 0.96-r2 to 0.97-r2
On next boot, grub stop to minimal bash like screen with grub> prompt

I would have think to have a big warning that grub has to be reinstalled if it is really the case.
My /boot partition is not automaticly mounted after boot. Could it be related?

I had too reinstall grub again AND reboot to solve the issue.
I do 
root (hd0,0)
setup (hd0) 

emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1/server, gcc-4.1.1, glibc-2.4-r4, 2.6.17.6 i686)
=================================================================
System uname: 2.6.17.6 i686 AMD Athlon(TM) XP 2800+
Gentoo Base System version 1.12.6
Last Sync: Sat, 25 Nov 2006 12:31:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.4, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/share/config etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux ldap libg++ mailwrapper mysql ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session snmp spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-26 00:38:54 UTC
grub won't reinstall itself, it's your responsibility to do it... Fail to see the bug here.
Comment 2 Gilles Espinasse 2006-11-26 01:11:20 UTC
Should'nt there be a very big warning that your machine will be unusable after the emerge unless you are one of the king of the grub> prompt?

I didn't uninstall the working grub-0.96-r2.
I just emerge and find my machine unusable after.
Is this not a bug that you are not warned before and so you could prepare to fix the issue before to be send in grub prompt restrictive world?
Comment 3 SpanKY gentoo-dev 2006-11-27 08:31:05 UTC
my guess is you dont have a grub.conf just a menu.lst

post the output of `ls -l /boot/grub/`
Comment 4 Gilles Espinasse 2006-11-27 13:16:15 UTC
ls /boot/grub
device.map
barton ~ # ls -l /boot/grub
total 4
-rw-r--r-- 1 root root 30 Oct 24  2005 device.map
barton ~ # mount /dev/hda1 /boot
barton ~ # ls -l /boot/grub
total 1011
-rw-r--r-- 1 root root    197 Oct 24  2005 default
-rw-r--r-- 1 root root     30 Oct 15  2005 device.map
-rw-r--r-- 1 root root   7456 Nov 26 00:35 e2fs_stage1_5
-rw-r--r-- 1 root root   7296 Nov 26 00:35 fat_stage1_5
-rw-r--r-- 1 root root   6592 Nov 26 00:35 ffs_stage1_5
-rw-r--r-- 1 root root   1065 Jul 22 09:45 grub.conf
-rw-r--r-- 1 root root   1624 Nov 26 00:35 grub.conf.sample
-rw-r--r-- 1 root root    941 Oct 24  2005 grub.liste
-rw-r--r-- 1 root root   6592 Nov 26 00:35 iso9660_stage1_5
-rw-r--r-- 1 root root   8064 Nov 26 00:35 jfs_stage1_5
lrwxrwxrwx 1 root root      9 Oct 15  2005 menu.lst -> grub.conf
-rw-r--r-- 1 root root   6720 Nov 26 00:35 minix_stage1_5
-rwxr-xr-x 1 root root 196836 Oct 15  2005 nbgrub
-rwxr-xr-x 1 root root 197860 Oct 15  2005 pxegrub
-rw-r--r-- 1 root root   9056 Nov 26 00:35 reiserfs_stage1_5
-rw-r--r-- 1 root root  33856 Nov 26 00:35 splash.xpm.gz
-rw-r--r-- 1 root root    512 Nov 26 00:35 stage1
-rw-r--r-- 1 root root 102236 Nov 26 00:35 stage2
-rwxr-xr-x 1 root root 196900 Oct 15  2005 stage2.netboot
-rw-r--r-- 1 root root 108328 Oct 24  2005 stage2.old
-rw-r--r-- 1 root root 102236 Nov 26 00:35 stage2_eltorito
-rw-r--r-- 1 root root   6944 Nov 26 00:35 ufs2_stage1_5
-rw-r--r-- 1 root root   6144 Nov 26 00:35 vstafs_stage1_5
-rw-r--r-- 1 root root   8776 Nov 26 00:35 xfs_stage1_5
Comment 5 SpanKY gentoo-dev 2006-11-27 18:22:40 UTC
what you're describing shouldnt happen then ... try downgrading to 0.96-r2 and upgrading to 0.97-r2 and see if you hit this problem again

if this was a common issue there'd be a ton more reports ... yours is the only one so far so something else is probably going on
Comment 6 Robert Lippmann 2007-01-08 04:20:30 UTC
i'm seeing this too (went from 0.97-r2 to 0.97-r3.

i have the same entries in /boot/grub.  if i do configfile /boot/grub/grub.conf at the grub prompt, i boot normally.
Comment 7 Robert Lippmann 2007-01-08 04:32:11 UTC
sorry, the grub command used is configfile /grub/grub.conf.

tried removing the symlink of menu.lst to grub.conf and just copying grub.conf to menu.lst, no luck.
Comment 8 Robert Lippmann 2007-01-15 03:46:01 UTC
mounted /boot (separate partition) and re-ran grub-install, and everything is fine now.

guess there was a change in the ebuild because i remember updating grub without mounting /boot before and having an unbootable system (it must have run grub-install and without /boot mounted, it just put it on the root partition)
Comment 9 Michael Kiermaier 2007-03-18 14:00:18 UTC
(In reply to comment #5)
> if this was a common issue there'd be a ton more reports ... yours is the only
> one so far so something else is probably going on

I ran into the same problem
My Gentoo had not been updated since maybe 9 months.

During the update, grub got updated from 0.96-r2 to 0.97-r3

After rebooting, I only got the grub> prompt, nothing more.

/boot is on a separate partition and not mounted by default