UNIX - FAQ and Solutions

xiaoxiao2021-03-05  25

First, the computer starts Tips: Boot Not Found Cannot Open Stage 1 Boot Failure: Error Loading HD (40) / boot is the system's / boot file corruption or loss, resulting in the system from starting. Repair method:

FD (60) Unix.z root = HD (42) 2, enter the superuser password when the system is started, enter the single user mode, uninstall / stand file system, command format: #umount / stand 3, reload the Stand file system # Mount / Stand Performs the purpose of step 2, 3 is to change the read-only properties of / stand, in the default, / stand is read-only. 4, set up the guide disk file system, command format: #mount -r / dev / rfd0135ds18 / mnt 5, copy the boot file of the boot disk into the hard disk #CP / MNT / Boot / Stand 6, uninstall the floppy file system, restart your computer , Command format: #umount / mnt #Reboot

Second, the computer starts at the time of startup:

UNIX NOT FOUND then hangs because the system's / UNIX file is corrupted or lost. There are two solutions: First, use the system to start the old kernel that automatically backed up when the kernel is reconnected: In Boot: Enter unix.OLD startup. The second is to repair the emergency boot disk, the specific steps are: 1, boot Enter: fd (60) Unix.z root = HD (42) SWAP = HD (41) 2, and the first fault is similar, the system starts Under the single user mode, the uninstall / stand file system is loaded, and the unix.z of the floppy disk is copied into the hard disk. Command format: #umount / standard #mount / stand #mount -r / dev / rfd0135ds18 / mnt #cp /mnt/unix.z / stand #Reboot

Third, the reason why the system cannot enter multiple users after the system has caused this situation. There are two possibilities: 1, / etc / inittab file lost or corrupted 2, / etc / passwd file lost or damage If the system is prompting when the system is guided : Init: cannot open / etc / inittab errno: 2 and press D to enter multiple users fail. Then, the / etc / inittab file is lost or corrupted, and this file includes the init command, controlling the INIT level entered by the computer, where init 0 is turning off the computer, init 1 is the way to enter the single user, INIT 2 is the system startup Multi-user run level. The solution is to fix the initTab file and re-establish the UNIX kernel. There are two solutions: 1, re-establish initTab file link, command format: #LN -S /VAR/opt/k/sco/unix/5.0.5A/etc/inittab /etc.inittab 2, reconstruct the inittab file #Touch /etc/.new-unix #CD / etc / conf / bin #. / idmkenv Enter "Y" under the system prompt, then enter: #cat / etc / inittab After completing the above work, enter: #init 2 You can enter a multi-user operating system. If you prompt Su: unknown ID: root init: Single User MAINTENANCE MOT INIT: SINGLE User MAINTENANCE MODE MISSING ENTERINTETENTENAANCE MODE, the system can only enter the single user maintenance mode, indicating that the / etc / passwd file is lost or corrupted. If you use the l command to display a long list of files, the system will first display: / etc / passwd cannot be opened forread. The solution is to copy the passwd file in the ROOT disk (Second Emergency Plant) of the Emergency Plate into the hard drive, modify the master and group of the Passwd file. Command format: #mount -r / dev / rfd0135ds18 / mnt #cp / mnt / etc / passwd / etc / passwd #chown bin: auth passwd #Reboot 4, the system does not close the computer is normal, but the system is closed to enter shutdown - After the g0 -i0 -y command, the computer prompt / etc / initscript: / etc / uadmin: not found, and then the system hangs. Each time you turn off your computer is right and wrong, you need to check the file system. The reason is that the / etc / uadmin file is lost or damaged. The solution is to copy the uadmin file of the emergency boot root disk to the hard disk. The command format is: the system is started in a single user mode, check the file system: #mount / dev / rfd0135ds18 / mnt #cp / mnt / etc / uadmin / etc / uadmin #chown bin: bin / etc / uadmin #umount / mnt #reboot

转载请注明原文地址:https://www.9cbs.com/read-37306.html

New Post(0)