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