summaryrefslogtreecommitdiff
path: root/faq/dev-init.mdwn
blob: bd519c3427c51ca13f66a46f725d0def5c158413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[[!meta copyright="Copyright © 2025 Free Software Foundation,
Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

[[!tag faq/running]]

[[!meta title="Fails to boot, hangs at auth."]]

Perhaps your `/dev/` got hurt. You can mount by hand (e.g. on `/target`)
your root filesystem from a Hurd installation CD and run

    chroot /target dpkg-reconfigure hurd

or

    chroot /target /usr/lib/hurd/setup-translators -k -p

or even completely by hand:

    settrans -cfg /target/dev/console /hurd/term /dev/console device console
    settrans -cfg /target/dev/null /hurd/null
    settrans -cfg /target/servers/socket/1 /hurd/pflocal
    settrans -cfg /target/dev/urandom /hurd/random --seed-file /var/lib/random-seed --fast

to restore it or at least the basic parts.

You can also try to fix some entries from a Linux system (mounting it as ext4) with:

    touch /target/dev/console
    touch /target/dev/null
    touch /target/servers/socket/1
    touch /target/dev/urandom
    setfattr -n gnu.translator -v "/hurd/term\0/dev/console\0device\0console\0" /target/dev/console
    setfattr -n gnu.translator -v "/hurd/null\0" /target/dev/null
    setfattr -n gnu.translator -v "/hurd/pflocal\0" /target/servers/socket/1
    setfattr -n gnu.translator -v "/hurd/random\0--seed-file\0/var/lib/random-seed\0--fast\0" /target/dev/urandom