Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] Alexander Kapshuk <alexander.kapshuk@×××××.com>