Sponsored Content
Full Discussion: Emergency boot
Operating Systems SCO Emergency boot Post 69371 by dags on Thursday 14th of April 2005 10:00:49 AM
Old 04-14-2005
solved

Thanks for the answer. Finally I travel to server's location (500 miles away !) and see what was happening. Root account was disabled and tty01 too. (override terminal). Because of that, root can't log in, even in maintenance mode.

I started the system from installation CDROM and when prompted for Licences, I press F8 to exit to a shell. Then I create /dev/hd0root (mknod /dev/hd0root b 1 42) and mounted the server's root filesystem.

With this filesystem mounted, I used chroot to use vi on some files. I don't know why these accounts and terminal was disabled, but I remove root password from /tcb/files/auth/r/root and /etc/shadow, delete some code that seems to be locks, unmounted filesystem and reboot. I changed OVEERRIDE in /etc/default/login to /dev/tty03.

Note: when using chroot , there are some issues with commands and files that are expected to be on /etc, for instance. A lot are links to something like /var/opt/K/SCO/Unix/5.0.5Eb/etc or something like this. I you want to edit /etc/shadow of a root filesystem mounted as said before, command line should look like :

chroot /mnt /var/opt/K/SCO/Unix/5.0.5Eb/usr/bin/vi /var/K/SCO/Unix/5.0.5Eb/etc/shadow

(pathnames may vary, I am writing from my memory).

After reboot, I could login as root on tty03. Once logged in, I unlock all the accounts and terminals and check all filesystems.

There was no need to reinstall.

Thanks again.
 

8 More Discussions You Might Find Interesting

1. SCO

steps to boot SCO server off emergency tape

I know how to create the bootable tape image by using emergency_rec, but I could not find any document to instruct me on how to boot off the tape, and detail steps I should go through, for instance, at what point the booting sequency would prompt me to enter bootable path, and what the path is...... (0 Replies)
Discussion started by: vkky2k
0 Replies

2. Shell Programming and Scripting

Need Emergency help with script!

I'm trying to write a script to push out to all our servers some Veritas add-ons. I want the script to push to all servers and if there server hardware matches the uname -i statement, it will install a additional add-on.. The script keeps giving me a error on line 29. Here is the script.... (3 Replies)
Discussion started by: soupbone38
3 Replies

3. Ubuntu

Emergency help with ubuntu

Hi guys i have some question about ubuntu(10.10) 1.what time scheduling & page replacement algorithm have been used in ubuntu 2.how to create a process 3.how to kill a process 4.how to send information to a process 5.how to see a process 6.how to increase priority of a process 7.how to... (1 Reply)
Discussion started by: mortez28
1 Replies

4. Solaris

Emergency !!!Help Please--- NFS

Hi Guru's, I am unable to mount NFS share on unix system (DG/UX) which is nfs client. Error: mount: /nfsshare: Invalid argument mount: giving up on: /mountpoint i tried following commands mount -t nfs remotehost:/nfsshare /mountpoint Error: mount: /nfsshare: Invalid... (1 Reply)
Discussion started by: Justin John
1 Replies

5. Shell Programming and Scripting

UNIX emergency

can anyone please tell me that how can i boot unix from a cd? full procedure. it's an emergency. reply asap (1 Reply)
Discussion started by: niket agarwal
1 Replies

6. SCO

Need emergency boot floopy or 5.0.5 .iso file

We have old SCO Openserver 5.0.5. and its was running out of disk space on root disk - error 142 /2. I tried to move some files to another partition with space, but I ran into issue as I moved /opt/K and /opt/P. Now when the servers boots it fails and goes into debug mode. I don't have a... (4 Replies)
Discussion started by: grips03
4 Replies

7. SCO

Emergency boot floppy - second hard disk not seen

OS = Openserver 5.0.5 Ran 'mkdev fd' and made emergency boot floppy (boot and root). Choose custom kernel, not generic. However kernel on the 1.44 floppy did not see both hard disks, it only saw the first one (SCSI id 0), and not SCSI id 1 (second disk) Q. Is this a limitation of emergency... (5 Replies)
Discussion started by: grips03
5 Replies

8. SCO

Need emergency boot CD UNIXware 7.1.1 (or 7.1..4)

In my previous thread post (which is also the most recent on this SCO forum), I mentioned that we have an HP DL380G5 server running SCO Unixware 7.11 which has unable to boot with error “FATAL BOOT ERROR: Can't load stage 3”. .. Unfortunately no media is available for the machine and I think the... (1 Reply)
Discussion started by: BernP
1 Replies
PIVOT_ROOT(8)						       System Administration						     PIVOT_ROOT(8)

NAME
pivot_root - change the root filesystem SYNOPSIS
pivot_root new_root put_old DESCRIPTION
pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. Since pivot_root(8) simply calls pivot_root(2), we refer to the man page of the latter for further details. Note that, depending on the implementation of pivot_root, root and cwd of the caller may or may not change. The following is a sequence for invoking pivot_root that works in either case, assuming that pivot_root and chroot are in the current PATH: cd new_root pivot_root . put_old exec chroot . command Note that chroot must be available under the old root and under the new root, because pivot_root may or may not have implicitly changed the root directory of the shell. Note that exec chroot changes the running executable, which is necessary if the old root directory should be unmounted afterwards. Also note that standard input, output, and error may still point to a device on the old root file system, keeping it busy. They can easily be changed when invoking chroot (see below; note the absence of leading slashes to make it work whether pivot_root has changed the shell's root or not). OPTIONS
-V, --version Display version information and exit. -h, --help Display help text and exit. EXAMPLES
Change the root file system to /dev/hda1 from an interactive shell: mount /dev/hda1 /new-root cd /new-root pivot_root . old-root exec chroot . sh <dev/console >dev/console 2>&1 umount /old-root Mount the new root file system over NFS from 10.0.0.1:/my_root and run init: ifconfig lo 127.0.0.1 up # for portmap # configure Ethernet or such portmap # for lockd (implicitly started by mount) mount -o ro 10.0.0.1:/my_root /mnt killall portmap # portmap keeps old root busy cd /mnt pivot_root . old_root exec chroot . sh -c 'umount /old_root; exec /sbin/init' <dev/console >dev/console 2>&1 SEE ALSO
chroot(1), pivot_root(2), mount(8), switch_root(8), umount(8) AVAILABILITY
The pivot_root command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux August 2011 PIVOT_ROOT(8)
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy