Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need Help to Reboot to Mac OS X Post 302118212 by philomaximus on Sunday 20th of May 2007 11:22:26 AM
Old 05-20-2007
Quote:
Originally Posted by porter
Are you at a shell prompt at a console?

Are you able to either log in as root or su to root?

Can you run "ps -ef" to show all processes running?

Have to tried "shutdown -h now" to power down the box down cleanly.

Can you run "top" and see what's busy?
Hello! Just so you know, I am even newer than a newbie, so you'll have to talk to me like I'm five.

Yes, I'm at a shell prompt.

I tried logging in with my system name and password, but it came up as incorrect.

I typed in the "ps -ef" and this is what I got: ps: illegal option --f usage: ps [-aChjlmMrSTuvwx] [0|o fmt] [-p pid] [-t Hy] [-U user] [-N system] [-W swap] ps [-L]

Shutdown -h now works -- yea! I didn't know how to do that before.

Top brings up a bunch of stuff. Top line reads Processes: 5 total, 2 running, 3 sleeping.

I am also able to change directories and see that my folders and files are still there.
 

2 More Discussions You Might Find Interesting

1. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

2. BSD

MAC at @reboot, like some cellphone

I want to change my MAC at reboot, so making it a cron job like the following in BSD. Can I do this in the jail for the user, setting it as a command or should it be a script? I would set it as a command openssl rand -hex 6 | sed 's/\(..)/\1:/g; s/.$//' just to test it, it works. To... (0 Replies)
Discussion started by: 1in10
0 Replies
PIVOT_ROOT(8)						       Maintenance Commands						     PIVOT_ROOT(8)

NAME
pivot_root - change the root file system 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). 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), mount(8), pivot_root(2), umount(8) AVAILABILITY
The pivot_root command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. Linux Feb 23, 2000 PIVOT_ROOT(8)
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy