From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 00:47:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4874D16A41F for ; Thu, 15 Dec 2005 00:47:43 +0000 (GMT) (envelope-from jocxxx@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE34F43D75 for ; Thu, 15 Dec 2005 00:47:29 +0000 (GMT) (envelope-from jocxxx@gmail.com) Received: by wproxy.gmail.com with SMTP id 67so685899wri for ; Wed, 14 Dec 2005 16:47:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=lVWYsd5WkWuxuf29QahUUHLbt2kzk0ZeS4CQxoKTKZzHX2gIVzV/1XmK5+g2QuhTWrvAym2kwa9FIF/VU17QPx8sh6ax3b85FfWmVOdQlIHf4QKRmwl1W0ywdCLiZyGejvzhfrCu62aS7jFjwr6iJP/jCZ6NqjYH3pQXdv4weps= Received: by 10.65.148.13 with SMTP id a13mr844338qbo; Wed, 14 Dec 2005 16:47:27 -0800 (PST) Received: by 10.65.115.18 with HTTP; Wed, 14 Dec 2005 16:47:27 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 19:47:27 -0500 From: john crawford To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: fixit 4.11 tty device not configured X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 00:47:43 -0000 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=3D/mnt/nicetempplace Fixit# ifconfig em0 alias netmask (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@ 'dump -0f - /' | restore -ruf - cannot open /dev/tty: Device not configured Thanks for any ideas, John