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 E974F1381F3 for ; Sat, 7 Sep 2013 18:53:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2837BE0A0B; Sat, 7 Sep 2013 18:53:23 +0000 (UTC) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C8CB6E0956 for ; Sat, 7 Sep 2013 18:53:21 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id j13so4068251wgh.5 for ; Sat, 07 Sep 2013 11:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=XZ01vZwEIm3bKjWR2IqoosfvOGgPQOVP0wdnfL7D2DI=; b=nAm4ATjs/uLUfZO7gx/8PtEh6+55g2/Swr5YxwEsBBiXbS1ntIjiFlT8KFmkG3H3Ar SkRpmXLpjvJDvO29mKqt2LCeUrwSckmHHdCUPGLJiONvK58xsqNWqmT89IeGUF+TEWOz EBIl90Aee1A9KsLRXMjO2T4+zc9yRR7L55v3JmiY4hn5yqBADwnWm5E/op1CYgy9a2cK vhl3hPu8gF4kHXA6ehT+M6DdRT8vaF+IuH98Zvas1ZVt6lAeakxaEnBxZbG0O5B7QhtC 36ExBqO3OMGp+USXBykwxmIaGahep0sb5PPIM+uqIVHAg2ZCok7++x9Ryz6IoDu/X+I2 BxTw== X-Received: by 10.180.187.2 with SMTP id fo2mr2796377wic.65.1378580000433; Sat, 07 Sep 2013 11:53:20 -0700 (PDT) Received: from [192.168.1.3] (213-154-212-42.static.vega-ua.net. [213.154.212.42]) by mx.google.com with ESMTPSA id ey2sm5511709wib.5.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Sep 2013 11:53:20 -0700 (PDT) Message-ID: <522B7628.3000303@gmail.com> Date: Sat, 07 Sep 2013 21:53:28 +0300 From: Alexander Kapshuk User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130831 Thunderbird/17.0.8 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] References: <522B6B12.2040903@gmail.com> <522B6F69.1060104@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 4ce40910-9786-4515-8ca1-ea9c9ac3dab7 X-Archives-Hash: 3d219dc500bccab13c2e3ef7de71a042 On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: > On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk > wrote: >> On 09/07/2013 09:11 PM, Canek Peláez Valdés 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 correctly, >> '/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=ordered) >> /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 = sectors of 1 * 512 = 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 boot > logs, and try to mounting by hand. Perhaps the fsck failed or it needs > 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? How did the system boot then? Thanks.