Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7]
Date: Sat, 07 Sep 2013 19:30:10
Message-Id: 522B7EBE.4070400@gmail.com
In Reply to: Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] by "Canek Peláez Valdés"
1 On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote:
2 > On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk
3 > <alexander.kapshuk@×××××.com> wrote:
4 >> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote:
5 >>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk
6 >>> <alexander.kapshuk@×××××.com> wrote:
7 >>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote:
8 >>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk
9 >>>>> <alexander.kapshuk@×××××.com> wrote:
10 >>>>>> Howdy,
11 >>>>>>
12 >>>>>> Just compiled the new kernel [3.10.7], was about to edit my
13 >>>>>> /boot/grub/grub.conf, and found it missing:
14 >>>>>> box0 boot # pwd
15 >>>>>> /boot
16 >>>>>> box0 boot # ls -a
17 >>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo
18 >>>>>>
19 >>>>>> What did I miss?
20 >>>>> Do you have /boot in a separated partition? Did you mounted it?
21 >>>>>
22 >>>>> Nothing should touch /boot, AFAIK.
23 >>>>>
24 >>>>> Regards.
25 >>>> I do have '/boot' on a separate partition. If I understand it correctly,
26 >>>> '/boot' gets mounted every time at system start-up, based on
27 >>>> '/etc/fstab', does it not?
28 >>> By the contents of your fstab, it should...
29 >>>
30 >>>> box0 boot # cat /etc/fstab
31 >>>> <snip>
32 >>>> /dev/sda1 /boot ext2 default,noatime 0 2
33 >>>> /dev/sda2 none swap sw 0 0
34 >>>> /dev/sda3 / ext4 noatime 0 1
35 >>>> /dev/sda5 /home ext4 noatime 0 2
36 >>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
37 >>>>
38 >>>>
39 >>>> box0 boot # mount|grep /dev/sda
40 >>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered)
41 >>>> /dev/sda5 on /home type ext4 (rw,noatime)
42 >>> ,,,however mount says up there that it's not mounted.
43 >>>
44 >>>> box0 boot # fdisk -l /dev/sda
45 >>>>
46 >>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
47 >>>> Units = sectors of 1 * 512 = 512 bytes
48 >>>> Sector size (logical/physical): 512 bytes / 512 bytes
49 >>>> I/O size (minimum/optimal): 512 bytes / 512 bytes
50 >>>> Disk identifier: 0x00000000
51 >>>>
52 >>>> Device Boot Start End Blocks Id System
53 >>>> /dev/sda1 * 2048 67583 32768 83 Linux
54 >>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris
55 >>>> /dev/sda3 1116160 43059199 20971520 83 Linux
56 >>>> /dev/sda4 43059200 488397167 222668984 5 Extended
57 >>>> /dev/sda5 43061248 488397167 222667960 83 Linux
58 >>> For some reason your /boot partition didn't get mounted. See the boot
59 >>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs
60 >>> manual intervention.
61 >>>
62 >>> Regards.
63 >> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/'
64 >> partition instead of the '/boot' one.
65 >>
66 >> box0 ~ # dmesg|grep 'EXT.*fs'
67 >> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of
68 >> unsupported optional features (240)
69 >> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature
70 >> incompatibilities
71 >> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data
72 >> mode. Opts: (null)
73 >> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null)
74 >> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data
75 >> mode. Opts: (null)
76 >>
77 >> Would that suggest a corrupted /boot/grub/grub.conf file?
78 > Not necessarily. Can you manually mount /boot and see the contents of
79 > /boot/grub/grub.conf.
80 >
81 >> How did the system boot then?
82 > If grub can see the boot partition (and is correctly configured and
83 > installed on the MBR), it can mount the root system without problems
84 > regardless of fstab. Do you use an initramfs?
85 >
86 > Regards.
87 'mount /boot' fails:
88 box0 ~ # mount /boot
89 mount: wrong fs type, bad option, bad superblock on /dev/sda1,
90 missing codepage or helper program, or other error
91 In some cases useful info is found in syslog - try
92 dmesg | tail or so
93
94 No, I do not use 'initfamfs'.
95
96 What do you suggest doing?
97
98 Thanks.

Replies

Subject Author
Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] "Canek Peláez Valdés" <caneko@×××××.com>