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