image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X Server

Reply
 
Thread Tools
  #1  
Old December 4th, 2005, 04:25 AM
Registered User
 
Join Date: Oct 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Hofuzz is on a distinguished road
How to reboot to Single User mode without keyboard

Hi All,

I would like to reboot one of my OS X servers into single user mode so I can do a fsck on it. What's the command (reboot -XXX?) to do so? I dont have a display card or keyboard hooked up to it.

sorry if this has been asked already, it seems seraching the forums is disabled?

thanks.
Reply With Quote
  #2  
Old December 4th, 2005, 12:10 PM
Tech
 
Join Date: Nov 2005
Location: At the edge of the Dateline
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
edadams is on a distinguished road
You will need a keyboard and video card to do this, as far as I know

Here is the Apple kbase page on different boot options on a headless Xserve-
http://docs.info.apple.com/article.html?artnum=75489
Reply With Quote
  #3  
Old December 5th, 2005, 01:10 AM
sourcehound's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
sourcehound is on a distinguished road
Here's how, be careful, read the manual

Quote:
Originally Posted by Hofuzz
Hi All,

I would like to reboot one of my OS X servers into single user mode so I can do a fsck on it. What's the command (reboot -XXX?) to do so? I dont have a display card or keyboard hooked up to it.

sorry if this has been asked already, it seems seraching the forums is disabled?

thanks.
The NVRAM command can get you into single user mode for the next reboot. BUT BE CAREFUL. As far as I know, ssh won't work in single user mode, and you'll need a serial port connection to the Xserve (if that's what it is) to control it in single user mode after setting the NVRAM properties like so below:

nvram boot-args=\"-s\"

Read the man page for nvram carefully. However, I know of no graceful way to control any OS X Machine in SUM without a keyboard.
__________________
Sourcehound, author of HelpMate: http://www.macworkshops.com/machelpmate
ACSA, ACTC, MCP, A+, APP
Mac OS X IT Trainer & Consultant
http://www.macworkshops.com
MacTech Magazine Columnist
http://www.mactech.com
Reply With Quote
  #4  
Old December 5th, 2005, 03:31 PM
Registered User
 
Join Date: Oct 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Hofuzz is on a distinguished road
Thanks for your responses. I'm reading up on NVRAM.

But according to this it seems rlogin/ssh to it would be futile:
http://www.macosx.com/content/faq.ph...User-Mode.html

I guess the only chance to do a fsck on it is to get it in single user mode?



Quote:
Originally Posted by sourcehound
The NVRAM command can get you into single user mode for the next reboot. BUT BE CAREFUL. As far as I know, ssh won't work in single user mode, and you'll need a serial port connection to the Xserve (if that's what it is) to control it in single user mode after setting the NVRAM properties like so below:

nvram boot-args=\"-s\"

Read the man page for nvram carefully. However, I know of no graceful way to control any OS X Machine in SUM without a keyboard.

Last edited by Hofuzz; December 5th, 2005 at 03:39 PM.
Reply With Quote
  #5  
Old December 6th, 2005, 01:29 AM
sourcehound's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
sourcehound is on a distinguished road
Quote:
Originally Posted by Hofuzz
Thanks for your responses. I'm reading up on NVRAM.

But according to this it seems rlogin/ssh to it would be futile:
http://www.macosx.com/content/faq.ph...User-Mode.html

I guess the only chance to do a fsck on it is to get it in single user mode?
Well you also have the option of using a tool like DiskWarrior to rebuild the directory. Starting with 10.4.3 you can run fsck from Disk Utility but can't change the drive, only verify that it's OK or not.

However, there's one option that doesn't really give you any feedback, and that's to book in "Safe" boot mode, by holding down the shift key at startup. This runs a longer and more complete fsck.

But if you want to mess with the directory, you still need to boot in SUM.
__________________
Sourcehound, author of HelpMate: http://www.macworkshops.com/machelpmate
ACSA, ACTC, MCP, A+, APP
Mac OS X IT Trainer & Consultant
http://www.macworkshops.com
MacTech Magazine Columnist
http://www.mactech.com
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 04:40 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.