1 |
On Sunday 29 May 2011 21:57:21 Alan McKinnon wrote: |
2 |
> Apparently, though unproven, at 22:35 on Sunday 29 May 2011, Colleen Beamer |
3 |
> |
4 |
> did opine thusly: |
5 |
> > Hi, |
6 |
> > |
7 |
> > I've been trying to update my gentoo system for a couple of months and |
8 |
> > couldn't seem to resolve block issues. Since it has been a couple of |
9 |
> > years or more since i did a fresh install, I decided to do one. |
10 |
> > |
11 |
> > I followed the handbook - 1st run, I screwed up and missed a step, 2nd |
12 |
> > run, I was careful that I didn't miss anything and I couldn't boot, the |
13 |
> > 3rd time I rechecked everything and the same issue arose. |
14 |
> > |
15 |
> > I am able to get my boot menu, the drivers appear to load - the last one |
16 |
> > being tg3 which is the one that was typically loaded last on my old |
17 |
> > gentoo install. However, after this I get this message: |
18 |
> > |
19 |
> > ERROR: your real /dev is missing files required to boot (console and |
20 |
> > null).. |
21 |
> > |
22 |
> > When I was in the chroot'd environment and after I had done the 'mount |
23 |
> > --rbind /dev ....' command, I checked and there appeared to be a console |
24 |
> > file there. This is just and fyi |
25 |
> > |
26 |
> > Anyway, I did a google search and this was one of the responses: |
27 |
> > |
28 |
> > Some "stage3" archives lack few items (like /dev/console and /dev/null) |
29 |
> > necessary for boot. |
30 |
> > To fix your installation, you need to: |
31 |
> > - mount your gentoo root device in read/write mode (for example to |
32 |
> > /mnt/gentoo) |
33 |
> > - create missing pseudo-files (something like the following): |
34 |
> > mknod /mnt/gentoo/dev/console c 5 1 |
35 |
> > mknod /mnt/gentoo/dev/null c 1 3 |
36 |
> > - unmount your gentoo root device or execute "sync" command |
37 |
> > - reboot |
38 |
> > |
39 |
> > Since I am a "chicken-shit", I am deferring to the more knowledgeable |
40 |
> > people on this list and asking, is this a valid fix or is there a better |
41 |
> > one. |
42 |
> |
43 |
> Google is correct, just do it. All you are doing is making files somewhere |
44 |
> that have special characteristics (i.e. you are not unleashing Armageddon |
45 |
> or looking Medusa in the eye) |
46 |
> |
47 |
> But you looked in the wrong place. null and console must be in /dev on the |
48 |
> root partition *before* mounting /dev, you looked after. The reason it must |
49 |
> be there before is that null and console are needed very early in the boot |
50 |
> process at a point before udev runs. After udev runs it is no longer |
51 |
> relevant as udev will provide those nodes. |
52 |
> |
53 |
> I wonder if you haven't just tripped over a bug in baselayout or recent |
54 |
> stage3's. I just did a new install here but used an old stage3 that was |
55 |
> still baselayout-1. I did not run into the issues you did. What does |
56 |
> b.g.o. say? |
57 |
|
58 |
I'm sure that I've come across the same problem some time in the distant past |
59 |
and had to create these two nodes manually. |
60 |
|
61 |
However, it should be easy to prove if this is a bug or not - look in the |
62 |
stage3 tar file for /dev/console and /dev/null? |
63 |
-- |
64 |
Regards, |
65 |
Mick |