Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Install issue Mick <michaelkintzios@×××××.com>