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