- 论坛徽章:
- 0
|
Format Utility: Unable to open /dev/tty in maintenance mode [ID 1010419.1]\r\n 修改时间 29-APR-2011 类型 PROBLEM 移植的 ID 214316 状态 PUBLISHED \r\n\r\nApplies to:\r\nSolaris SPARC Operating System - Version: 8.0 and later [Release: 8.0 and later ]\r\nAll Platforms\r\nSymptoms\r\nDuring boot, if the system is dropped into \"system maintenance mode\", /dev/tty is unavailable. This results in administrative commands failing, for example, the format utility and some of the packaging commands.\r\n\r\nThis can happen when the system can\'t come up for some reason, and the controlling terminal is not available. A sample of a format run when fsck of a filesystem mounted at boot fails:\r\n\r\n# format Searching for disks...done\r\n\r\nAVAILABLE DISK SELECTIONS: Unable to open /dev/tty.\r\n\r\nA sample of pkgrm output:\r\n\r\n# pkginfo SUNWmdr \r\n\r\nsystem SUNWmdr Solstice DiskSuite[TM] Drivers\r\n\r\n# pkgrm SUNWmdr\r\n\r\nThe following package is currently installed: SUNWmdr \r\n\r\nSolstice DiskSuite Drivers \r\n\r\n(sparc) 4.0,REV=1.0,PATCH=1\r\n\r\nDo you want to remove this package y\r\n\r\npkgrm: ERROR: freopen(/dev/tty, \"a\", stdout) failed, errno=6 pkgrm: ERROR: class action script did not complete successfully\r\n\r\nRemoval of < SUNWmdr > failed.\r\nCause\r\nNeed to modify /dev/tty\r\nSolution\r\nThis is not a true resolution but a workaround. But it will allow using format and other commands needing /dev/tty while in the maintenance mode (and without rebooting).\r\n\r\nWARNING:\r\n\r\nPlease make sure to follow this procedure exactly as written. It modifies the /dev/tty which if not restored to its default configuration will cause problems when the OS is in multiuser mode.\r\n\r\nExecute:\r\n\r\n# cd /\r\n\r\n# mv /dev/tty /dev/tty.orig\r\n\r\n# ln -s ../devices/pseudo/cn@0:console /dev/tty\r\n\r\nAt this point, use format, pkgrm or other commend which needs /dev/tty.\r\n\r\nWhen finished, execute:\r\n\r\n# rm /dev/tty\r\n\r\n# mv /dev/tty.orig /dev/tty\r\n\r\nIf the above procedure doesn\'t work, the next step is to execute:\r\n\r\n# reboot -- -s\r\n\r\nor\r\n\r\nok> boot -s\r\n\r\nand let OS come up in single user mode.\r\n\r\n\r\nProduct\r\nSolaris 2.6 Operating System\r\nSolaris 7 Operating System\r\nSolaris 8 Operating System\r\nSolaris 9 Operating System\r\n\r\n\r\n\r\n\r\n显示相关信息 相关的\r\n产品\r\n\r\n Sun Microsystems > Operating Systems > Solaris Operating System > Solaris SPARC Operating System\r\n\r\n关键字\r\nFORMATTING; SERVER CONSOLE |
|