diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-11-23 22:09:20 +0100 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-11-23 22:09:41 +0100 |
| commit | f4d10d027262a7863f319d803b899ce4b78142cd (patch) | |
| tree | be85d4ea79fd5a37deacd8d536551913adda4a46 /faq | |
| parent | da53538d3e3248c2a9d640df2de996b2c6a89a71 (diff) | |
Add urandom/pflocal/null restoration
Diffstat (limited to 'faq')
| -rw-r--r-- | faq/dev-console.mdwn | 2 | ||||
| -rw-r--r-- | faq/dev-init.mdwn | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/faq/dev-console.mdwn b/faq/dev-console.mdwn index 6f8364a2..743c6f5a 100644 --- a/faq/dev-console.mdwn +++ b/faq/dev-console.mdwn @@ -20,7 +20,7 @@ your root filesystem from a Hurd installation CD and run to restore it. -You can also set it from a Linux system with: +You can also set it from a Linux system (mounting it as ext4) with: touch /target/dev/console setfattr -n gnu.translator -v "/hurd/term\0/dev/console\0device\0console\0" /target/dev/console diff --git a/faq/dev-init.mdwn b/faq/dev-init.mdwn new file mode 100644 index 00000000..1b6693fa --- /dev/null +++ b/faq/dev-init.mdwn @@ -0,0 +1,40 @@ +[[!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 -fg /target/dev/console /hurd/term /dev/console device console + settrans -fg /target/dev/null /hurd/null + settrans -fg /target/servers/socket/1 /hurd/pflocal + settrans -fg /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 + 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 |
