From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 563BA1381F3 for ; Sat, 7 Sep 2013 20:11:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B8FCE0B67; Sat, 7 Sep 2013 20:11:11 +0000 (UTC) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED072E0B44 for ; Sat, 7 Sep 2013 20:11:09 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id w7so3872936lbi.15 for ; Sat, 07 Sep 2013 13:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=sJ0haXXhVoQ1X5hWHzAd5R4TWseafEsYplP9rwfCzoU=; b=x5kIqLA7vMExNqvTBC4qh/wk8MymYj3EZISkXWxZtTeqZNE+Im5nS1S/8bMnvmOpoe fNAmOIbXnpM3E3bJCFOvtlx2lhfFbkMJIVM96KhTmTwTNJIoQwS0FrLsLpHEXl8Ul03O 3v8JHGCN1xf+3+JPD9roFaDumyxdvpZ39HnZ2cXWuceAxi2INpzqwQiQtXZCybElz2uY eNCdTxJst2ibJ/TOQ9XrNZX1VY/zg6ncHdTUHOd/Bhneia9ydsTMlnTLrRxp+EzQMTUL b2A8RdgBjt2QApuj0cDswSR38FLS+cMw+GZsyrJJIwrwCVug/mSglkCieg+m0aZojJqh BiXA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.152.19.1 with SMTP id a1mr8210837lae.8.1378584668009; Sat, 07 Sep 2013 13:11:08 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Sat, 7 Sep 2013 13:11:07 -0700 (PDT) In-Reply-To: <522B8160.4080809@gmail.com> References: <522B6B12.2040903@gmail.com> <522B6F69.1060104@gmail.com> <522B7628.3000303@gmail.com> <522B7EBE.4070400@gmail.com> <522B8160.4080809@gmail.com> Date: Sat, 7 Sep 2013 15:11:07 -0500 Message-ID: Subject: Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b9426bbc-81ce-4461-a25e-64649b549a7a X-Archives-Hash: 08aa86a09ea6d37a02ed34d071ef9927 On Sat, Sep 7, 2013 at 2:41 PM, Alexander Kapshuk wrote: > On 09/07/2013 10:35 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >> On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk >> wrote: >>> On 09/07/2013 10:25 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >>>> On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk >>>> wrote: >>>>> On 09/07/2013 09:35 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >>>>>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >>>>>> wrote: >>>>>>> On 09/07/2013 09:11 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >>>>>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>>>>>> wrote: >>>>>>>>> Howdy, >>>>>>>>> >>>>>>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>>>>>> /boot/grub/grub.conf, and found it missing: >>>>>>>>> box0 boot # pwd >>>>>>>>> /boot >>>>>>>>> box0 boot # ls -a >>>>>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>>>>>> >>>>>>>>> What did I miss? >>>>>>>> Do you have /boot in a separated partition? Did you mounted it? >>>>>>>> >>>>>>>> Nothing should touch /boot, AFAIK. >>>>>>>> >>>>>>>> Regards. >>>>>>> I do have '/boot' on a separate partition. If I understand it corre= ctly, >>>>>>> '/boot' gets mounted every time at system start-up, based on >>>>>>> '/etc/fstab', does it not? >>>>>> By the contents of your fstab, it should... >>>>>> >>>>>>> box0 boot # cat /etc/fstab >>>>>>> >>>>>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>>>>> /dev/sda2 none swap sw 0 0 >>>>>>> /dev/sda3 / ext4 noatime 0 1 >>>>>>> /dev/sda5 /home ext4 noatime 0 2 >>>>>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>>>>> >>>>>>> >>>>>>> box0 boot # mount|grep /dev/sda >>>>>>> /dev/sda3 on / type ext4 (rw,noatime,data=3Dordered) >>>>>>> /dev/sda5 on /home type ext4 (rw,noatime) >>>>>> ,,,however mount says up there that it's not mounted. >>>>>> >>>>>>> box0 boot # fdisk -l /dev/sda >>>>>>> >>>>>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>>>>>> Units =3D sectors of 1 * 512 =3D 512 bytes >>>>>>> Sector size (logical/physical): 512 bytes / 512 bytes >>>>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>>>>>> Disk identifier: 0x00000000 >>>>>>> >>>>>>> Device Boot Start End Blocks Id System >>>>>>> /dev/sda1 * 2048 67583 32768 83 Linux >>>>>>> /dev/sda2 67584 1116159 524288 82 Linux swap = / Solaris >>>>>>> /dev/sda3 1116160 43059199 20971520 83 Linux >>>>>>> /dev/sda4 43059200 488397167 222668984 5 Extended >>>>>>> /dev/sda5 43061248 488397167 222667960 83 Linux >>>>>> For some reason your /boot partition didn't get mounted. See the boo= t >>>>>> logs, and try to mounting by hand. Perhaps the fsck failed or it nee= ds >>>>>> manual intervention. >>>>>> >>>>>> Regards. >>>>> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' >>>>> partition instead of the '/boot' one. >>>>> >>>>> box0 ~ # dmesg|grep 'EXT.*fs' >>>>> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of >>>>> unsupported optional features (240) >>>>> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature >>>>> incompatibilities >>>>> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data >>>>> mode. Opts: (null) >>>>> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) >>>>> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data >>>>> mode. Opts: (null) >>>>> >>>>> Would that suggest a corrupted /boot/grub/grub.conf file? >>>> Not necessarily. Can you manually mount /boot and see the contents of >>>> /boot/grub/grub.conf. >>>> >>>>> How did the system boot then? >>>> If grub can see the boot partition (and is correctly configured and >>>> installed on the MBR), it can mount the root system without problems >>>> regardless of fstab. Do you use an initramfs? >>>> >>>> Regards. >>> 'mount /boot' fails: >>> box0 ~ # mount /boot >>> mount: wrong fs type, bad option, bad superblock on /dev/sda1, >>> missing codepage or helper program, or other error >>> In some cases useful info is found in syslog - try >>> dmesg | tail or so >>> >>> No, I do not use 'initfamfs'. >>> >>> What do you suggest doing? >> Mounting it by hand: >> >> mount -t ext2 /dev/sda1 /boot >> >> Regards. > That did the trick. Thanks very much. > > Here's my /boot/grub/grub.conf: > box0 linux # cat /boot/grub/grub.conf > # This is a sample grub.conf for use with Genkernel, per the Gentoo handb= ook > # > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3D1&chap=3D10= #doc_chap2 > # If you are not using Genkernel and you need help creating this file, yo= u > # should consult the handbook. Alternatively, consult the > grub.conf.sample that > # is included with the Grub documentation. > > default 0 > timeout 30 > splashimage=3D(hd0,0)/boot/grub/splash.xpm.gz > > title Gentoo Linux 3.8.13 > root (hd0,0) > kernel /boot/kernel-3.8.13-gentoo root=3D/dev/sda3 > #initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 > > title Gentoo Linux 3.8.13 (rescue) > root (hd0,0) > kernel /boot/kernel-3.8.13-gentoo root=3D/dev/sda3 init=3D/bin/bb > # vim:ft=3Dconf: > > Is there anything that suggests as to why the /boot partition failed to > mount at system start-up? No, I don't see anything that. However, since you cannot "mount /boot", but doing it manually works, that means something is wrong with your fstab. Can I see it again? There is no /boot/etc/fstab, right? What does /boot/grub/device.map say? Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico