fixit 4.11 tty device not configured
john crawford
jocxxx at gmail.com
Wed Dec 14 16:47:43 PST 2005
hello,
I'm booting to the fixit cdrom of 4.11 - I think it is disc2
of the iso images. If I try to do a "fixit" mode remote command
with ssh from the serial console (boot -h) I get
cannot open /dev/tty: Device not configured
If I do the same thing from the vga / keyboard console
it doesn't hang up and it does prompt me for the remote
password. It works okay there but I can not
copy paste text. What bits of cleverness will allow me to get
my ssh prompt with the primitive fixit environment via serial?
Here's an example.
cdom fixit 4.11 boot -h
[detections]
Mounting root from ufs:/dev/md0c
/stand/sysinstall running as init on serial console
Your choice: (1-5) 2 (vt100)
DEBUG: fixit: I can't set the controlling terminal.
Waiting for fixit shell to exit.
When you are done, type ``exit'' to exit
the fixit shell and be returned here.
sh: can't access tty; job control turned off
+---------------------------------------------------------------+
| You are now running from FreeBSD "fixit" media. |
| ------------------------------------------------------------- |
| When you're finished with this shell, please type exit. |
| The fixit media is mounted as /mnt2. |
| |
| You might want to symlink /mnt/etc/*pwd.db and /mnt/etc/group |
| to /etc after mounting a root filesystem from your disk. |
| tar(1) will not restore all permissions correctly otherwise! |
| |
| Note: you might use the arrow keys to browse through the |
| command history of this shell. |
+---------------------------------------------------------------+
Good Luck!
Fixit#
Fixit# mkdir -p /tmp/dev
Fixit# cp /dist/dev/MA* /tmp/dev/
Fixit# cd /tmp/dev
Fixit# ./MAKEDEV amrd0
Fixit# ./MAKEDEV amrd1
Here, I do various newfs and mounts
Fixit# newfs -b 16384 -f 2048 /tmp/dev/amrd0s1a
mount -o async /tmp/dev/amrd0s1a /mnt
etc
Fixit# export TMPDIR=/mnt/nicetempplace
Fixit# ifconfig em0 alias <machine ip> netmask <mask>
(alias there not necessary)
Fixit# ls -l / >> /dev/random
Fixit# ls -l / >> /dev/random
Fixit# ls -l / >> /dev/random
Fixit# ls -l / >> /dev/random
Fixit# ls -l / >> /dev/random
Fixit# cd /mnt
Fixit# ssh -e none operator@<ip to dump> 'dump -0f - /' | restore -ruf -
cannot open /dev/tty: Device not configured
Thanks for any ideas,
John
More information about the freebsd-questions
mailing list