1 |
On Sat, Sep 7, 2013 at 2:41 PM, Alexander Kapshuk |
2 |
<alexander.kapshuk@×××××.com> wrote: |
3 |
> On 09/07/2013 10:35 PM, Canek Peláez Valdés wrote: |
4 |
>> On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk |
5 |
>> <alexander.kapshuk@×××××.com> wrote: |
6 |
>>> On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: |
7 |
>>>> On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk |
8 |
>>>> <alexander.kapshuk@×××××.com> wrote: |
9 |
>>>>> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: |
10 |
>>>>>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk |
11 |
>>>>>> <alexander.kapshuk@×××××.com> wrote: |
12 |
>>>>>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: |
13 |
>>>>>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk |
14 |
>>>>>>>> <alexander.kapshuk@×××××.com> wrote: |
15 |
>>>>>>>>> Howdy, |
16 |
>>>>>>>>> |
17 |
>>>>>>>>> Just compiled the new kernel [3.10.7], was about to edit my |
18 |
>>>>>>>>> /boot/grub/grub.conf, and found it missing: |
19 |
>>>>>>>>> box0 boot # pwd |
20 |
>>>>>>>>> /boot |
21 |
>>>>>>>>> box0 boot # ls -a |
22 |
>>>>>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo |
23 |
>>>>>>>>> |
24 |
>>>>>>>>> What did I miss? |
25 |
>>>>>>>> Do you have /boot in a separated partition? Did you mounted it? |
26 |
>>>>>>>> |
27 |
>>>>>>>> Nothing should touch /boot, AFAIK. |
28 |
>>>>>>>> |
29 |
>>>>>>>> Regards. |
30 |
>>>>>>> I do have '/boot' on a separate partition. If I understand it correctly, |
31 |
>>>>>>> '/boot' gets mounted every time at system start-up, based on |
32 |
>>>>>>> '/etc/fstab', does it not? |
33 |
>>>>>> By the contents of your fstab, it should... |
34 |
>>>>>> |
35 |
>>>>>>> box0 boot # cat /etc/fstab |
36 |
>>>>>>> <snip> |
37 |
>>>>>>> /dev/sda1 /boot ext2 default,noatime 0 2 |
38 |
>>>>>>> /dev/sda2 none swap sw 0 0 |
39 |
>>>>>>> /dev/sda3 / ext4 noatime 0 1 |
40 |
>>>>>>> /dev/sda5 /home ext4 noatime 0 2 |
41 |
>>>>>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 |
42 |
>>>>>>> |
43 |
>>>>>>> |
44 |
>>>>>>> box0 boot # mount|grep /dev/sda |
45 |
>>>>>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) |
46 |
>>>>>>> /dev/sda5 on /home type ext4 (rw,noatime) |
47 |
>>>>>> ,,,however mount says up there that it's not mounted. |
48 |
>>>>>> |
49 |
>>>>>>> box0 boot # fdisk -l /dev/sda |
50 |
>>>>>>> |
51 |
>>>>>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors |
52 |
>>>>>>> Units = sectors of 1 * 512 = 512 bytes |
53 |
>>>>>>> Sector size (logical/physical): 512 bytes / 512 bytes |
54 |
>>>>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes |
55 |
>>>>>>> Disk identifier: 0x00000000 |
56 |
>>>>>>> |
57 |
>>>>>>> Device Boot Start End Blocks Id System |
58 |
>>>>>>> /dev/sda1 * 2048 67583 32768 83 Linux |
59 |
>>>>>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris |
60 |
>>>>>>> /dev/sda3 1116160 43059199 20971520 83 Linux |
61 |
>>>>>>> /dev/sda4 43059200 488397167 222668984 5 Extended |
62 |
>>>>>>> /dev/sda5 43061248 488397167 222667960 83 Linux |
63 |
>>>>>> For some reason your /boot partition didn't get mounted. See the boot |
64 |
>>>>>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs |
65 |
>>>>>> manual intervention. |
66 |
>>>>>> |
67 |
>>>>>> Regards. |
68 |
>>>>> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' |
69 |
>>>>> partition instead of the '/boot' one. |
70 |
>>>>> |
71 |
>>>>> box0 ~ # dmesg|grep 'EXT.*fs' |
72 |
>>>>> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of |
73 |
>>>>> unsupported optional features (240) |
74 |
>>>>> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature |
75 |
>>>>> incompatibilities |
76 |
>>>>> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data |
77 |
>>>>> mode. Opts: (null) |
78 |
>>>>> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) |
79 |
>>>>> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data |
80 |
>>>>> mode. Opts: (null) |
81 |
>>>>> |
82 |
>>>>> Would that suggest a corrupted /boot/grub/grub.conf file? |
83 |
>>>> Not necessarily. Can you manually mount /boot and see the contents of |
84 |
>>>> /boot/grub/grub.conf. |
85 |
>>>> |
86 |
>>>>> How did the system boot then? |
87 |
>>>> If grub can see the boot partition (and is correctly configured and |
88 |
>>>> installed on the MBR), it can mount the root system without problems |
89 |
>>>> regardless of fstab. Do you use an initramfs? |
90 |
>>>> |
91 |
>>>> Regards. |
92 |
>>> 'mount /boot' fails: |
93 |
>>> box0 ~ # mount /boot |
94 |
>>> mount: wrong fs type, bad option, bad superblock on /dev/sda1, |
95 |
>>> missing codepage or helper program, or other error |
96 |
>>> In some cases useful info is found in syslog - try |
97 |
>>> dmesg | tail or so |
98 |
>>> |
99 |
>>> No, I do not use 'initfamfs'. |
100 |
>>> |
101 |
>>> What do you suggest doing? |
102 |
>> Mounting it by hand: |
103 |
>> |
104 |
>> mount -t ext2 /dev/sda1 /boot |
105 |
>> |
106 |
>> Regards. |
107 |
> That did the trick. Thanks very much. |
108 |
> |
109 |
> Here's my /boot/grub/grub.conf: |
110 |
> box0 linux # cat /boot/grub/grub.conf |
111 |
> # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook |
112 |
> # |
113 |
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 |
114 |
> # If you are not using Genkernel and you need help creating this file, you |
115 |
> # should consult the handbook. Alternatively, consult the |
116 |
> grub.conf.sample that |
117 |
> # is included with the Grub documentation. |
118 |
> |
119 |
> default 0 |
120 |
> timeout 30 |
121 |
> splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
122 |
> |
123 |
> title Gentoo Linux 3.8.13 |
124 |
> root (hd0,0) |
125 |
> kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 |
126 |
> #initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 |
127 |
> |
128 |
> title Gentoo Linux 3.8.13 (rescue) |
129 |
> root (hd0,0) |
130 |
> kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 init=/bin/bb |
131 |
> # vim:ft=conf: |
132 |
> |
133 |
> Is there anything that suggests as to why the /boot partition failed to |
134 |
> mount at system start-up? |
135 |
|
136 |
No, I don't see anything that. However, since you cannot "mount |
137 |
/boot", but doing it manually works, that means something is wrong |
138 |
with your fstab. Can I see it again? There is no /boot/etc/fstab, |
139 |
right? What does /boot/grub/device.map say? |
140 |
|
141 |
Regards. |
142 |
-- |
143 |
Canek Peláez Valdés |
144 |
Posgrado en Ciencia e Ingeniería de la Computación |
145 |
Universidad Nacional Autónoma de México |