Unix Technical Forum

Boot option question

This is a discussion on Boot option question within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hello everyone. I have one question to OBP's Boot option. OK boot -sw boot option '-s' is single mode ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:27 AM
±è½Å¹ü
 
Posts: n/a
Default Boot option question

Hello everyone.

I have one question to OBP's Boot option.

OK boot -sw

boot option '-s' is single mode option and '-r' is reconfigure option.

But I don't understand '-w' option.

what is the '-w' option?

I will wating for your answer... Thank you.

kalsae


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:27 AM
CJT
 
Posts: n/a
Default Re: Boot option question

±è½Å¹ü wrote:

> Hello everyone.
>
> I have one question to OBP's Boot option.
>
> OK boot -sw
>
> boot option '-s' is single mode option and '-r' is reconfigure option.
>
> But I don't understand '-w' option.
>
> what is the '-w' option?
>
> I will wating for your answer... Thank you.
>
> kalsae
>
>

Are you sure you don't mean 'v?'

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:28 AM
Tony Walton
 
Posts: n/a
Default Re: Boot option question

CJT wrote:
> ±è½Å¹ü wrote:
>
>> Hello everyone.
>>
>> I have one question to OBP's Boot option.
>>
>> OK boot -sw
>>
>> boot option '-s' is single mode option and '-r' is reconfigure option.


And -a is "ask" (ask for where configuration files live) and -v is
"verbose" and -b is undocumented and means "don't run any startup scripts".

>>
>> But I don't understand '-w' option.
>>
>> what is the '-w' option?
>>
>> I will wating for your answer... Thank you.
>>
>> kalsae
>>
>>

> Are you sure you don't mean 'v?'
>


Nope, Kalsae means 'w'. Some documentation states that when booting
from a CDROM with the intention of mounting the hard disk (for instance
to edit /etc/shadow) you use the options -sw where s means single user
and w means "make the root directory writable". IME the -w option
doesn't make any difference at all, is completely pointless and merely
serves to confuse people. I suspect that this was necessary on some
long-ago version of SunOS and the habit has persisted (along with such
outmoded or plain wrong beliefs as "you need twice as much swap space as
RAM" and "cron re-reads its crontab file if you send a HUP to it").

It doesn't appear on the kernel(1M) manpage as a boot option (kernel(1M)
interprets the arguments given to "boot") which isn't a problem - both
the kernel booter and init (to which such arguments are ultimately
passed) simply ignore arguments they don't understand.

Bottom line, Kalsae? Eitehr specify or don't specify the -w option; it
makes no difference at all.

(This is IME - if anyone can point to a situation where it makes any
difference at all I'd be interested to hear it).

--
Tony



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:28 AM
Scott Howard
 
Posts: n/a
Default Re: Boot option question

Tony Walton <tony.walton@s-u-n.com> wrote:
> Nope, Kalsae means 'w'. Some documentation states that when booting
> from a CDROM with the intention of mounting the hard disk (for instance
> to edit /etc/shadow) you use the options -sw where s means single user
> and w means "make the root directory writable". IME the -w option
> doesn't make any difference at all, is completely pointless and merely
> serves to confuse people. I suspect that this was necessary on some
> long-ago version of SunOS and the habit has persisted (along with such


This is exactly the case. Many years ago (SunOS 4 days) booting into
single-user mode would leave the root filesystem mounted in read-only,
so you would have to remount it read-write. Adding -w to the boot
flags would have the OS mount the root partition read-write before
dropping into single user mode.

Just to confuse things further, there is currently a "w" option
which you can pass to suninstall when booting from a CD/network which
means not to start X-windows. In this case there is a space between
the - and the w. ie :
boot net - install w

Which will start an install using text mode rather then X.

Scott.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com