¥¤¥ó¥¹¥È¡¼¥ë

¥Ï¡¼¥É¥¦¥§¥¢Í×·ï

CPUSPARC 200MHz°Ê¾å¡¢X86 120MHz°Ê¾å¡¢ÉâÆ°¾®¿ôÅÀ±é»»¤Î¥µ¥Ý¡¼¥È¤¬É¬Í×
MEMºÇ¾® 64MB¡¢¿ä¾© 256MB¡¢GUI 384MB
HDDºÇ¾® 2GB
SWAP¥Ç¥Õ¥©¥ë¥È 512MB

¥¤¥ó¥¹¥È¡¼¥ëÁ°¤Ë·è¤á¤Æ¤ª¤¯¤³¤È

¥¤¥ó¥¹¥È¡¼¥ë¤Î¼ïÎà

¥¤¥ó¥¹¥È¡¼¥é¡¼¤¬µ¯Æ°¤¹¤ë¤Þ¤Ç(SPARC)

  1. ¥¤¥ó¥¹¥È¡¼¥ë¥á¥Ç¥£¥¢(CD/DVD)¤ò¥É¥é¥¤¥Ö¤Ë¥»¥Ã¥È
  2. ¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥È
    • Ää»ßÃæ¤Î¾ì¹ç¤Ë¤ÏÅŸ»¤òÆþ¤ì¤ë
    • ²ÔƯÃæ¤Î¾ì¹ç¤Ë¤ÏºÆµ¯Æ°¤¹¤ë
      • init¥³¥Þ¥ó¥É
      • halt¥³¥Þ¥ó¥É
  3. ¥Ö¡¼¥È¥³¥Þ¥ó¥É¤¬É½¼¨¤µ¤ì¤ë
    ok
  4. ¥Ö¡¼¥È¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¡¢¥¤¥ó¥¹¥È¡¼¥é¡¼¤òµ¯Æ°¤¹¤ë
    ok boot cdrom

¥¤¥ó¥¹¥È¡¼¥é¡¼¤¬µ¯Æ°¤¹¤ë¤Þ¤Ç(X86)

¥¤¥ó¥¹¥È¡¼¥ë¥í¥°

¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É

  1. ¥Æ¥­¥¹¥È¥¤¥ó¥¹¥È¡¼¥é¡¼¥â¡¼¥É
    • ok boot cdrom -nowin
    • tip ¥³¥Þ¥ó¥É
    • ok boot cdrom -text (¥á¥â¥ê64MB¡Á127MB)
  2. Window¥·¥¹¥Æ¥à¤Î¥¿¡¼¥ß¥Ê¥ë¾å¤Ç¥Æ¥­¥¹¥È¥¤¥ó¥¹¥È¡¼¥é¡¼¥â¡¼¥É
    • ok boot cdrom -text (¥á¥â¥ê128MB¡Á383MB)
  3. Window¥·¥¹¥Æ¥à¤Î¥°¥é¥Õ¥£¥«¥ë¥æ¡¼¥¶¡¼¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹(GUI)¥â¡¼¥É
    • ok boot cdrom

¥½¥Õ¥È¥¦¥¨¥¢¥°¥ë¡¼¥×

¥Ñ¥Ã¥±¡¼¥¸

pkgask

¥Ñ¥Ã¥±¡¼¥¸¤«¤é±þÅú¥Õ¥¡¥¤¥ë¤ò¼è¤ê½Ð¤¹

pkgask [-d <device>] [-R <root_path>] -r <response> <instance>...
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-d <device>]ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥êµ¬ÄêÃÍ : /var/spool/pkg
[-R <root_path>]ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¥Ç¥£¥ì¥¯¥È¥êµ¬ÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ
-r <response>±þÅú¥Õ¥¡¥¤¥ë¤Î½ÐÎÏÀè¥Õ¥¡¥¤¥ë̾
<instance>¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥¿¥ó¥¹(¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë̾)

pkgadd

¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦

pkgadd [-n] [-a <admin>] [-d <device>] [-G] [-r <response>] [-R <rootPath>] [<source>] [<instances>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-n]ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤òÈóÂÐÏü°¤ËÀßÄꤹ¤ëµ¬ÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤ÏÂÐÏü°
[-a <admin>]ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë»ÈÍѤ¹¤ë¥¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ëµ¬ÄêÃÍ : ¼¡¤Î½çÈ֤ǥ¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ë¤òõ¤¹¡£1.¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê 2./var/sdam/install/admin/¥Ç¥£¥ì¥¯¥È¥ê
[-d <device>]ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê("source"¥ª¥×¥·¥ç¥ó¤ÈƱ¤¸)µ¬ÄêÃÍ : /var/spool/pkg
[-G]ÀßÄêÃÍ : ¥«¥ì¥ó¥È¥¾¡¼¥ó¤Î¤ß¤Ë¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëµ¬ÄêÃÍ : Á´¤Æ¤Î¥¾¡¼¥ó¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë
[-r <response>]ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë»þ¤ËÍѤ¤¤ë±þÅú¥Õ¥¡¥¤¥ë̾µ¬ÄêÃÍ : ±þÅú¥Õ¥¡¥¤¥ë¤ò»È¤ï¤º¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦
[-R <root_path>]ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¥Ç¥£¥ì¥¯¥È¥êµ¬ÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ
[<source>]ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê("-d"¥ª¥×¥·¥ç¥ó¤ÈƱ¤¸)µ¬ÄêÃÍ : /var/spool/pkg
<instance>¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥¿¥ó¥¹(¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë̾)

¥Ñ¥Ã¥±¡¼¥¸¤Î¼èÆÀ¤Î¤ß¤ò¹Ô¤¦

pkgadd -d <deviceName> -s <spoolDir> <pkgid>... 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-d <device>ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê
-s <splloDir>ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
<pkgid>...ÀßÄêÃÍ : ¼èÆÀ¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎID(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä)

pkgchk

pkgadd ¤Ë¤è¤ë¥¤¥ó¥¹¥È¡¼¥ë·ë²Ì¤Î¸¡¾Ú¤ò¹Ô¤¦

pkgchk [-acv|-l] [-p <pathName>...] [<pkgid>...]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-ac]ÀßÄêÃÍ : a:¥Õ¥¡¥¤¥ë°À­¤Î¤ß¤ò¸¡¾Ú¤¹¤ë¡£c:¥Õ¥¡¥¤¥ë¤ÎÆâÍƤΤߤò¸¡¾Ú¤¹¤ëµ¬ÄêÃÍ : ¥Õ¥¡¥¤¥ë°À­¤ÈÆâÍƤò¸¡¾Ú¤¹¤ë
[-v]ÀßÄêÃÍ : verbose mode(¾ÜºÙ¤Ê¼Â¹Ô¥í¥°¤òɽ¼¨¤¹¤ë)µ¬ÄêÃÍ : ¾ÜºÙ¤Ê¼Â¹Ô¥í¥°¤Ï½ÐÎϤ·¤Ê¤¤
[-l]ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸Æâ¤Î¥Õ¥¡¥¤¥ë¾ðÊó¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ëµ¬ÄêÃÍ : ¥ê¥¹¥Èɽ¼¨¤Ï¹Ô¤ï¤Ê¤¤
[-p <pathName>...]ÀßÄêÃÍ : ¸¡¾Ú¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä)µ¬ÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ
[<pkgid>...]ÀßÄêÃÍ : ¸¡¾Ú¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎID(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä)µ¬ÄêÃÍ : Á´¤Æ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ñ¥Ã¥±¡¼¥¸¤Î¸¡¾Ú¤ò¹Ô¤¦

pkgadd ¤Ë¤è¤ê¥¹¥×¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¸¡¾Ú¤ò¹Ô¤¦

pkgchk -d <device> 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-d <device>¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê

pkginfo

pkgadd ¤Ë¤è¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤òÆÀ¤ë

pkginfo [-i|-p] [-l|-q|-x] [-c <category>] [<instances>] 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-ip]ÀßÄêÃÍ : i:´°Á´¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤Î¤ß¤òɽ¼¨¤¹¤ë¡£p:°ìÉô¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤Î¤ß¤òɽ¼¨¤¹¤ëµ¬ÄêÃÍ : Á´¤Æ¤Î¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤òɽ¼¨¤¹¤ë
[-lqx]ÀßÄêÃÍ : l:¥í¥ó¥°¥Õ¥©¡¼¥Þ¥Ã¥È¡£q:²¿¤âɽ¼¨¤·¤Ê¤¤¡£x:¥ê¥¹¥È·Á¼° (¤É¤ì¤«¤ò»ØÄꤹ¤ëɬÍפ¢¤ê)
[-c <category>]ÀßÄêÃÍ : ɽ¼¨¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤Î¥«¥Æ¥´¥êµ¬ÄêÃÍ : pkginfo ¥Õ¥¡¥¤¥ë¤Î CATEGORYÃÍ

pkgadd ¤Ë¤è¤ê¥¹¥×¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Ë´Ø¤¹¤ë¾ðÊó¤òÆÀ¤ë

pkginfo -d <device> 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-d <device>¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê

pkgparam

¥Ñ¥Ã¥±¡¼¥¸¤Ë´Ø¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤òÆÀ¤Þ¤¹¡£(pkginfo -l ¤È¤Û¤ÜƱ¤¸ÆâÍƤ¬ÆÀ¤é¤ì¤ë)

pkgparam [-v] pkg-abbrev [param...]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-v]ÀßÄêÃÍ : ¥Ñ¥é¥á¡¼¥¿Ì¾¤È¤½¤ÎÃͤòɽ¼¨¤¹¤ëµ¬ÄêÃÍ : ¥Ñ¥é¥á¡¼¥¿Ì¾¤Î¤ß¤òɽ¼¨¤¹¤ë
pkg-abbrev¥Ñ¥Ã¥±¡¼¥¸Ì¾
[param...]ÀßÄêÃÍ : ɽ¼¨¤¹¤ë¥Ñ¥é¥á¡¼¥¿(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä)µ¬ÄêÃÍ : Á´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤òɽ¼¨¤¹¤ë

pkgrm

¥·¥¹¥Æ¥à¤«¤é¥Ñ¥Ã¥±¡¼¥¸¤òºï½ü¤¹¤ë

pkgrm [-a <admin>] [-A] [-n] [<pkgid>...] 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-a <admin>]ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë»ÈÍѤ¹¤ë¥¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ëµ¬ÄêÃÍ : ¼¡¤Î½çÈ֤ǥ¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ë¤òõ¤¹¡£1.¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê 2./var/sdam/install/admin/¥Ç¥£¥ì¥¯¥È¥ê
[-A]ÀßÄêÃÍ : ¾¤Î¥Ñ¥Ã¥±¡¼¥¸¤È¶¦Í­¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤âºï½ü¤¹¤ëµ¬ÄêÃÍ : ¾¤Î¥Ñ¥Ã¥±¡¼¥¸¤È¶¦Í­¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Ïºï½ü¤·¤Ê¤¤
[-n]ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤òÈóÂÐÏü°¤ËÀßÄꤹ¤ëµ¬ÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤ÏÂÐÏü°
[<pkgid>...]ÀßÄêÃÍ : ºï½ü¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎID(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä)µ¬ÄêÃÍ : ºï½ü²Äǽ¤ÊÁ´¤Æ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ñ¥Ã¥±¡¼¥¸¤Îºï½ü¤ò¹Ô¤¦

pkgadd ¤Ë¤è¤ê¥¹¥×¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Îºï½ü¤ò¹Ô¤¦

pkgrm -s <spoolDir> 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-s <spoolDir>ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤¬¥¹¥×¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥êµ¬ÄêÃÍ : /var/sdam/pkg

pkgmk¡¢pkgtrans

¥Ñ¥Ã¥Á

patchadd

¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë

pachadd [-d] [-G] [-u] [-B <backoutDir>] <source> [<destination>] 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-d]ÀßÄêÃÍ : ¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë¤È¤­¤Ë¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¤È¤é¤Ê¤¤µ¬ÄêÃÍ : ¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦
[-G]ÀßÄêÃÍ : ¥«¥ì¥ó¥È¥¾¡¼¥ó¤Î¤ß¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ëµ¬ÄêÃÍ : Á´¤Æ¤Î¥¾¡¼¥ó¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë
-[u]ÀßÄêÃÍ : ¥Ñ¥Ã¥Á¤Î¸¡¾Ú¤ò¹Ô¤ï¤Ê¤¤µ¬ÄêÃÍ : ¥Ñ¥Ã¥Á¤Î¸¡¾Ú¤ò¹Ô¤¦
[-B <backoutDir]¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë¤È¤­¤Ë¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤òÊݸ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê
<source>¥Ñ¥Ã¥Á¤ò¼èÆÀ¤¹¤ë¥½¡¼¥¹(¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Ñ¥Ã¥ÁID)
[<destination>]ÀßÄêÃÍ : ¥Ñ¥Ã¥Á¤ÎŬÍÑÀ赬ÄêÃÍ : ¥«¥ì¥ó¥È¥·¥¹¥Æ¥à¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë

showrev

patchrm

¥Ñ¥Ã¥Á¤òºï½ü¤¹¤ë

patchrm [-f] [-G] [-B <backoutDir>] <patchID> 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
[-f]¶¯À©Åª¤Ë¥Ñ¥Ã¥Á¤Îºï½ü¤ò¹Ô¤¦
[-G]¥«¥ì¥ó¥È¥¾¡¼¥ó¤Î¤ß¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë
[-B <backoutDir]¥Ñ¥Ã¥Á¤òºï½ü¤¹¤ë¤È¤­¤Ë¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤òÊݸ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê
<patchID>¥Ñ¥Ã¥ÁÈÖ¹æ

SPARC ¥Þ¥·¥ó ¤Î Boot ¥×¥í¥»¥¹

¥Ö¡¼¥È¥×¥í¥»¥¹¤È¥Ñ¥ï¡¼¥µ¥¤¥¯¥ë

¥Ñ¥ï¡¼¥µ¥¤¥¯¥ë¥Þ¥·¥ó¤ÎÅŸ»¤òÆþ¤ì¤Æ¥Ö¡¼¥È¤·¤Æ¤«¤é¥·¥ã¥Ã¥È¥À¥¦¥ó¤¹¤ë¤Þ¤Ç
¥Ö¡¼¥È¥×¥í¥»¥¹¥Ö¡¼¥È»þ¤Ë¹Ô¤ï¤ì¤ë½èÍý

Boot PROM ¤È NVRAM

S10_Boot.png
 
Boot PROM¥Õ¥¡¡¼¥à¥¦¥§¥¢¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ëROM
Open Boot PROM ¥â¥Ë¥¿¥Õ¥¡¡¼¥à¥¦¥§¥¢
NVRAM¥Ö¡¼¥È¥×¥í¥»¥¹¤Î¥Ñ¥é¥á¡¼¥¿¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ëÉÔ´øȯRAM
NVRAM(Open Boot)¹½À®ÊÑ¿ô¥Ö¡¼¥È¥×¥í¥»¥¹¤Î¥Ñ¥é¥á¡¼¥¿
eepromNVRAM(Open Boot)¹½À®ÊÑ¿ô¤òÊѹ¹¤¹¤ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£

¥Ö¡¼¥È¥×¥í¥»¥¹

  1. Boot PROM ¥Õ¥§¡¼¥º
    • POST(Power On Self Test)
      • ¥Ï¡¼¥É¥¦¥§¥¢¤È¥á¥â¥ê¤ò¸¡¾Ú¤·¡¢¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òºî¤ë
    • ROM ¤«¤é bootblk ¥×¥í¥°¥é¥à¤¬ RAM ¤ËÆɤ߹þ¤Þ¤ì¤ë
  2. ¥Ö¡¼¥È¥×¥í¥°¥é¥à¥Õ¥§¡¼¥º
    • bootblk ¥×¥í¥°¥é¥à¤¬¡¢UFS(Unix File System) ¤«¤é ufsboot ¥×¥í¥°¥é¥à¤ò¥á¥â¥ê¤ËÆɤ߹þ¤à
  3. ¥«¡¼¥Í¥ë½é´ü²½¥Õ¥§¡¼¥º
    • ufsboot ¥×¥í¥°¥é¥à¤¬¡¢¥«¡¼¥Í¥ë¤ò¥á¥â¥ê¤ËÆɤ߹þ¤à
    • ¥«¡¼¥Í¥ë¤Ï¼«¿È¤Î½é´ü²½¤ò¹Ô¤¦
      • ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à(/)¤Î¥Þ¥¦¥ó¥È¤ËɬÍפʥ⥸¥å¡¼¥ë¤ÎÆɤ߹þ¤ß
  4. init¥Õ¥§¡¼¥º
    • °ìÈÌŪ¤ÊUnix ¤ÈƱ¤¸¤è¤¦¤Ë /sbin/init ¤¬µ¯Æ°¤µ¤ì¤ë
      • /sbin/init ¤Ï¡¢/etc/inittab ¤ÎÄêµÁ¤Ë½¾¤Ã¤Æ¥µ¡¼¥Ó¥¹¤òΩ¤Á¾å¤²¤ë
      • Solaris 10 ¤Î¾ì¹ç¤Ï¡¢SMF(/lib/svc/bin/svc.startd)¤òµ¯Æ°¤¹¤ë¤À¤±
        bash-3.00# cat /etc/inittab
        # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
        # Use is subject to license terms.
        
        (Ãæά)
        
        ap::sysinit:/sbin/autopush -f /etc/iu.ap
        sp::sysinit:/sbin/soconfig -f /etc/sock2path
        smf::sysinit:/lib/svc/bin/svc.startd    >/dev/msglog 2<>/dev/msglog </dev/consol e
        p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
        pt:s1234:powerfail:/usr/lib/svc/method/installupdates lock
        ½ñ¼° id:rstate:action:process
        id¼±ÊÌ»Ò
        rstaterun level ¤Î¥ê¥¹¥È
        action¥×¥í¥»¥¹¤Î¼Â¹ÔÊýË¡
        process¥¹¥¯¥ê¥×¥È
    • µ¯Æ°»þ¤Î¥é¥ó¥ì¥Ù¥ë
      • ¼Â¼ÁŪ¤Ë svc.startd ¤Î milestone ¥×¥í¥Ñ¥Æ¥£¤ÎÀßÄêÃͤ¬¥é¥ó¥ì¥Ù¥ë¤Ë¤Ê¤ë
      • ̵ÍýÌðÍý milestone ¤ò̵¸ú¤Ë¤¹¤ë¤È¡¢/etc/inittab ¤Î initdefault ¥×¥í¥Ñ¥Æ¥£¤ÎÀßÄêÃͤ¬»È¤ï¤ì¤ë

Boot PROM ¥³¥Þ¥ó¥É

NVRAM(Open Boot)¹½À®ÊÑ¿ô

¥Ñ¥é¥á¡¼¥¿ÀâÌÀ¥Ç¥Õ¥©¥ë¥ÈÃÍ
auto-boot?true:¼«Æ°¥Ö¡¼¥È / false:Boot PROM ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¥Ö¡¼¥È¤òÄä»ßtrue
boot-commandauto-boot? ¤¬ true ¤Î¤È¤­¡¢¤³¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ôboot
boot-device¥·¥¹¥Æ¥à¤ò¥Ö¡¼¥È¤¹¤ë¥Ç¥Ð¥¤¥¹disk net
boot-file¥Ö¡¼¥È¥×¥í¥°¥é¥à¤Î°ú¿ô""(¤Ê¤·)
diag-device¿ÇÃÇ¥Ö¡¼¥È»þ¤Î¥·¥¹¥Æ¥à¤ò¥Ö¡¼¥È¤¹¤ë¥Ç¥Ð¥¤¥¹net
diag-file¿ÇÃÇ¥Ö¡¼¥È»þ¤Î¥Ö¡¼¥ÈÉظޥ°¥é¥à¤Î°ú¿ô""(¤Ê¤·)
diag-switch?true:¿ÇÃÇ¥Ö¡¼¥È / false:Ä̾ï¥Ö¡¼¥Èfalse
fcode-debugFCode¤òdebug¥â¡¼¥É¤ÇÆ°¤«¤¹¤«¡©FCode:¥¤¥ó¥¿¥×¥ê¥¿¥Ù¡¼¥¹¤Î¥É¥é¥¤¥Ðµ­½Ò¸À¸ìfalse
input-devicekeyboard,ttya,ttyb¤Ê¤Ékeyboard
output-devicescreen,ttya,ttyb¤Ê¤Éscreen
screen#columns80
screen#rows34
security-modenone:¥Ö¡¼¥È»þ¤Ë¥Ñ¥¹¥ï¡¼¥É¤òÍ׵ᤷ¤Ê¤¤/command,full:¥Ö¡¼¥È»þ¤Ë¥Ñ¥¹¥ï¡¼¥É¤òÍ×µá(x86¤Ç¤Ï°ÕÌ£¤Ê¤·)none
security-password¥Ñ¥¹¥ï¡¼¥É(x86¤Ç¤Ï°ÕÌ£¤Ê¤·)""(¤Ê¤·)
security-#badlogins¥Ñ¥¹¥ï¡¼¥É¤Î¼ºÇÔµöÍƲó¿ô(x86¤Ç¤Ï°ÕÌ£¤Ê¤·)""(¤Ê¤·)
use-nvramrc?true:¥Ö¡¼¥È»þ¤Ënvramrc¤ò¼Â¹Ô / false:¼Â¹Ô¤·¤Ê¤¤false
nvramrc¥Ö¡¼¥È»þ¤Ë¼Â¹Ô¤¹¤ë¥¹¥¯¥ê¥×¥È""(¤Ê¤·)
oem-banner?true:¥Ö¡¼¥È»þ¤Ëoem-banner¤òɽ¼¨ / false:ɽ¼¨¤·¤Ê¤¤(SUN¤Î¥Ð¥Ê¡¼¤òɽ¼¨)false
oem-banner¥Ö¡¼¥È»þ¤Ëɽ¼¨¤¹¤ëOEM¥á¡¼¥«¡¼¤Î¥Ð¥Ê¡¼""(¤Ê¤·)
oem-logo?true:¥Ö¡¼¥È»þ¤Ëoem-logo¤òɽ¼¨ / false:ɽ¼¨¤·¤Ê¤¤(SUN¤Îlogo¤òɽ¼¨)false
oem-logo¥Ö¡¼¥È»þ¤Ëɽ¼¨¤¹¤ëOEM¥á¡¼¥«¡¼¤Î¥í¥´(64x64Çò¹õ)""(¤Ê¤·)

eeprom

x86/x64 ¥Þ¥·¥ó¤Î Boot ¥×¥í¥»¥¹

BIOS ¤È MBR

x86.png
 
BIOSBasic Input/Output System
MBRMaster Boot Record
mbootMBR¤Ë¤¢¤ëpboot¤ò¥­¥Ã¥¯¤¹¤ë¤¿¤á¤À¤±¤Î¥×¥í¥°¥é¥à
pbootSolaris¤Î¥Ö¡¼¥È¥×¥í¥°¥é¥à(Boot PROMÁêÅö)
bootblk¥×¥é¥¤¥Þ¥ê¥Ö¡¼¥È¥×¥í¥°¥é¥à
boot.bin(ufsboot)¥»¥«¥ó¥À¥ê¥Ö¡¼¥È¥×¥í¥°¥é¥à

¥Ö¡¼¥È¥×¥í¥»¥¹

  1. ºÇ½é¤Ë¡¢x86 CPU¤Ï¡¢Ìµ¾ò·ï¤ËFFFF0h¤Ë¤¢¤ë¥¸¥ã¥ó¥×Ì¿Îá(BIOS¤ÎÀèƬÈÖÃÏ)¤ò¼Â¹Ô¤¹¤ë
  2. BIOS ¤Ï¡¢POST¤ò¼Â¹Ô¤·¤ÆÀܳ¤µ¤ì¤Æ¤¤¤ëµ¡´ï¤òÄ´¤Ù¤ë
  3. BIOS ¤Ï¡¢POST¤Ç¸«¤Ä¤«¤Ã¤¿¥×¥é¥¤¥Þ¥ê¥Ç¥£¥¹¥¯¤Î MBR ¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤ë mboot ¤ò¼Â¹Ô¤¹¤ë
  4. mboot ¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤òÄ´¤Ù¤Æ¥¢¥¯¥Æ¥£¥Ö¤Ê¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥Ö¡¼¥È¥»¥¯¥¿¤ÎÆâÍƤò¥á¥â¥ê¤ËÆɤ߹þ¤ó¤Ç¼Â¹Ô¤¹¤ë
    • Solaris10¤Î¾ì¹ç¡¢pboot(Boot PROMÁêÅö)¤¬¼Â¹Ô¤µ¤ì¤ë¡£
  5. pboot¤Ï¡¢bootblk¤ò¼Â¹Ô¤¹¤ë
  6. bootblk¤Ï¡¢UFS(Unix File System)¤ò¥Þ¥¦¥ó¥È¤·¤Æ /boot.bin(ufsboot)¤ò¼Â¹Ô¤¹¤ë
    • ¤³¤³¤Ç¡¢/etc/bootrc ¤¬¼Â¹Ô¤µ¤ì¡¢µ¯Æ°¥ª¥×¥·¥ç¥óÁªÂò²èÌ̤¬É½¼¨¤µ¤ì¤ë
  7. /boot.bin(ufsboot)¤Ï¡¢¥«¡¼¥Í¥ë¤Î½é´ü²½¤ò¹Ô¤¤¡¢/sbin/init¡¢/sbin/inittab¡¢/lib/svc/bin/svc.startd ¤ò¼Â¹Ô¤·¤Æ¥Ö¡¼¥È¥×¥í¥»¥¹½ªÎ»

¥Ö¡¼¥È´ØÏ¢¤Î¥Ñ¥é¥á¡¼¥¿

  1. Solris10µ¯Æ°¸å¤Ï¡¢¥Ñ¥é¡¼¥á¡¼¥¿¥Õ¥¡¥¤¥ëÎà¤Ï /boot ¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤È¤·¤Æ¸«¤¨¤ë
  2. SPARC¥Þ¥·¥ó¤Î NVRAM ¤ËÁêÅö¤¹¤ë¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï /boot/solaris/bootenv.rc
    bash-3.00# cat /boot/solaris/bootenv.rc
    #
    # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    
    #ident  "@(#)bootenv.rc 1.33    07/03/03 SMI"
    #
    #       bootenv.rc -- boot "environment variables"
    #
    setprop ata-dma-enabled 1
    setprop atapi-cd-dma-enabled 0
    setprop ttyb-rts-dtr-off false
    setprop ttyb-ignore-cd true
    setprop ttya-rts-dtr-off false
    setprop ttya-ignore-cd true
    setprop ttyb-mode 9600,8,n,1,-
    setprop ttya-mode 9600,8,n,1,-
    setprop lba-access-ok 1
    setprop prealloc-chunk-size 0x2000
    setprop bootpath /pci@0,0/pci15ad,1976@10/sd@0,0:a
    setprop keyboard-layout 'US-English'
    setprop console 'text'
    • eeprom ¥³¥Þ¥ó¥É¤ÇÃͤòÊѹ¹¤Ç¤­¤ë

¥Ç¥£¥¹¥×¥ì¥¤¤È¥­¡¼¥Ü¡¼¥É¤Î¹½À®

kdmconfig

¤½¤Î¾¤Î¥Ç¥£¥¹¥×¥ì¥¤¤È¥­¡¼¥Ü¡¼¥É¹½À®¥³¥Þ¥ó¥É

¥é¥ó¥ì¥Ù¥ë¤È¥·¥ã¥Ã¥È¥À¥¦¥ó

SMF

FMRI (Fault-Managed Resource Identifier)

svcs (¥µ¡¼¥Ó¥¹¤Ë´Ø¤¹¤ë¾ðÊó¤òɽ¼¨¤¹¤ë)

¥³¥Þ¥ó¥Éµ¡Ç½
svcs -\?¥³¥Þ¥ó¥É¥Ø¥ë¥×
svcs -aÁ´¥µ¡¼¥Ó¥¹¤ÎÎóµó
svcs -p [FMRI]¥µ¡¼¥Ó¥¹¤Î¥×¥í¥»¥¹¾ðÊó¤Îɽ¼¨
svcs -d [FMRI][FMRI]¤Ë°Í¸¤·¤Æ¤¤¤ë¥µ¡¼¥Ó¥¹¤òɽ¼¨
svcs -D [FMRI][FMRI]¤¬°Í¸¤·¤Æ¤¤¤ë¥µ¡¼¥Ó¥¹¤òɽ¼¨
svcs -l [FMRI][FMRI]¤ÎÀâÌÀ
svcs -x [FMRI][FMRI]¤Î¥Þ¥Ë¥å¥¢¥ë¡¦¥í¥°¥Õ¥¡¥¤¥ë¤Î³ÊǼ¾ì½ê¡¢¾ã³²¾ðÊó¤Ê¤É

svcadm (¥µ¡¼¥Ó¥¹¤Îµ¯Æ°¡¦Ää»ß)

¥³¥Þ¥ó¥Éµ¡Ç½
svcadm -\?¥³¥Þ¥ó¥É¥Ø¥ë¥×
svcadm enable [FMRI]¥µ¡¼¥Ó¥¹¤ò£Ï£Óµ¯Æ°»þ¤Ëµ¯Æ°¤¹¤ë¤è¤¦¤Ë¤¹¤ë
svcadm enable -t [FMRI]¥µ¡¼¥Ó¥¹¤òº£²ó¤Ë¸Â¤êµ¯Æ°¤¹¤ë
svcadm disable [FMRI]¥µ¡¼¥Ó¥¹¤ò£Ï£Óµ¯Æ°»þ¤Ëµ¯Æ°¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë
svcadm disable -t [FMRI]¥µ¡¼¥Ó¥¹¤òº£²ó¤Ë¸Â¤êÄä»ß¤¹¤ë
svcadm restart [FMRI]¥µ¡¼¥Ó¥¹¤òºÆµ¯Æ°¤¹¤ë

svcadm (¥µ¡¼¥Ó¥¹ÄêµÁ¤ÎÈÇ¿ô´ÉÍý)

¥³¥Þ¥ó¥Éµ¡Ç½
svcadm mark -l degraded¥µ¡¼¥Ó¥¹ÄêµÁ¤ò¹±µ×Ū¤Ë degraded ¾õÂ֤˰ܹԤ¹¤ë
svcadm mark -l maintenance¥µ¡¼¥Ó¥¹ÄêµÁ¤ò¹±µ×Ū¤Ë maintenance ¾õÂ֤˰ܹԤ¹¤ë
svcadm mark -t degraded¥µ¡¼¥Ó¥¹ÄêµÁ¤òº£²ó¤Ë¸Â¤ê degraded ¾õÂ֤˰ܹԤ¹¤ë
svcadm mark -t maintenance¥µ¡¼¥Ó¥¹ÄêµÁ¤òº£²ó¤Ë¸Â¤ê maintenance ¾õÂ֤˰ܹԤ¹¤ë
svcadm clear [FMRI pattern]mark¥µ¥Ö¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿¾õÂÖ¤ò¥¯¥ê¥¢¤·¡¢¥µ¡¼¥Ó¥¹¤òµ¯Æ°¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë

svcadm (¥é¥ó¥ì¥Ù¥ë¤ÎÊѹ¹)

¥³¥Þ¥ó¥Éµ¡Ç½
svcadm milestone [milestone_FMRI][FMRI]¤ò¥Þ¥¤¥ë¥¹¥È¡¼¥ó¤Ë°ÜÆ°¤¹¤ë(ºÆµ¯Æ±»þ¤Ë¤³¤Î¥µ¡¼¥Ó¥¹ÄêµÁ¤Ç¤Ïµ¯Æ°¤·¤Ê¤¤)
svcadm milestone -d [milestone_FMRI][FMRI]¤ò¥Þ¥¤¥ë¥¹¥È¡¼¥ó¤Ë°ÜÆ°¤¹¤ë(ºÆµ¯Æ±»þ¤Ë¤³¤Î¥µ¡¼¥Ó¥¹ÄêµÁ¤Çµ¯Æ°¤¹¤ë)

svcprop (¥µ¡¼¥Ó¥¹¤ÎÀßÄêÆâÍƤÎɽ¼¨)

¥³¥Þ¥ó¥Éµ¡Ç½
svcprop [FMRI][FMRI]¤ÎÀßÄêÆâÍƤòɽ¼¨¤¹¤ë
svcprop -p name[/name]name[/name]¤Ë¹çÃפ¹¤ë¥µ¡¼¥Ó¥¹¤ÎÀßÄêÆâÍƤòɽ¼¨¤¹¤ë

svccfg (¥µ¡¼¥Ó¥¹ÄêµÁ¤Î¥¤¥ó¥Ý¡¼¥È¡¦¥¨¥¯¥¹¥Ý¡¼¥È)

¥³¥Þ¥ó¥Éµ¡Ç½
svccfg export [FMRI]¥µ¡¼¥Ó¥¹¤ÎÀßÄê¾ðÊó(manifest)¤òɸ½à½ÐÎϤ˽ÐÎÏ
svccfg import [manifest]¥µ¡¼¥Ó¥¹¤ÎÀßÄê¾ðÊó(manifest)¤òÅÐÏ¿
svccfg delete [FMRI]¥µ¡¼¥Ó¥¹¤ÎÀßÄê¾ðÊó¤òºï½ü(SMF´ÉÍý³°¤Ë¤Ê¤ë¡£¥Õ¥¡¥¤¥ë¼«ÂΤϾ䵤ì¤Ê¤¤)

½¾Íè¤Î¥µ¡¼¥Ó¥¹ÄêµÁ¤È¤Î¸ß´¹À­

¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à

ʪÍý¥Ö¥í¥Ã¥¯¤ÈÏÀÍý¥Ö¥í¥Ã¥¯

diskBlock.png

¥Ö¥í¥Ã¥¯¤Î¼ïÎà

¥Ö¥í¥Ã¥¯¤Î¼ïÎà³ÊǼ¾ðÊó
¥Ö¡¼¥È¥Ö¥í¥Ã¥¯¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥ÈÍѾðÊó¤ò³ÊǼ
¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë´Ø¤¹¤ë¾ðÊó¤ò³ÊǼ
i-node¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÃæ¤Î¥Õ¥¡¥¤¥ë¤Ë´Ø¤¹¤ë¾ðÊó¤ò³ÊǼ
¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤ò³ÊǼ

i-node

inode.png

¼ç¤Ê¥Ç¥£¥ì¥¯¥È¥ê

/UFS¥ë¡¼¥È¡£¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ç»È¤¦¥³¥Þ¥ó¥É¤ÏÎ㳰Ū¤Ë / ¤Ë¤¢¤ë(mount¤Ê¤É)
/sbinUFS¥·¥¹¥Æ¥à´ÉÍý¥³¥Þ¥ó¥É¡£/usr ¤è¤ê¤âÁ°¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤ë
/usrUFS¥æ¡¼¥¶¤Ç¶¦Í­¤¹¤ë¥Õ¥¡¥¤¥ë¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó
/bin -> /usr/bin
/devdevfs¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë
/device
/libUFSSMF¤Î¼Â¹Ô¥Õ¥¡¥¤¥ë¤ä¶¦Í­¥é¥¤¥Ö¥é¥ê
/etcUFS´ÉÍý¤ª¤è¤Ó¹½À®ÍÑ¥Õ¥¡¥¤¥ë
/export/homeNFS,UFS¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê
/home
/mnt³°Éô¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ê¤É¤Î¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È
/varUFS¥·¥¹¥Æ¥à¥í¥°¤Ê¤É¤ò³ÊǼ
/var/runTEMPFS°ì»þ¥Õ¥¡¥¤¥ëÎΰ衣°ì»þ¥Õ¥¡¥¤¥ëÎΰè¤Ï2¤Ä¤¢¤ë¤³¤È¤ËÃí°Õ!
/tmpTEMPFS°ì»þ¥Õ¥¡¥¤¥ëÎΰè
/optNFS,UFS¥µ¡¼¥É¥Ñ¡¼¥Æ¥£À½¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó
/etc/mnttabMNTFS¥Ç¥Ð¥¤¥¹¤Î¥Þ¥¦¥ó¥È¾ðÊó¤ò³ÊǼ¤¹¤ë
/procPROCFS¥×¥í¥»¥¹¤Î¼Â¹Ô¾ðÊó¤ò³ÊǼ¤¹¤ë
/system/contractCTFSContract(·ÀÌó)¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
/system/objectOBJFS¥Ç¥Ð¥Ã¥¯¾ðÊó

¥Ï¡¼¥É¥ê¥ó¥¯¤È¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯

¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î·Á¼°

UFS¤ÎÆÃħ

newfs

¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤¹¤ë¥³¥Þ¥ó¥É

newfs  [-NSBTv] [mkfs-options] raw-device
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
NSB¼Â¹Ô·ë²Ì¥ì¥Ý¡¼¥È¤Î½ÐÎÏ¥ª¥×¥·¥ç¥ó
T¥Æ¥é¥Ð¥¤¥È¤òĶ¤¨¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºî¤ë¤È¤­¤Ë»ØÄꤹ¤ë
v¾ÜºÙ¥í¥°¤ò½ÐÎÏ
 

¼Â¹ÔÎã:

# newfs /dev/rdsk/<deviceName>

fsck

¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¸¡ºº¡¿½¤Éü¤¹¤ë¥³¥Þ¥ó¥É

fsck [-F <FSType>] [-m] [-n|N] [-y|Y] [<rawDevice>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-F <FSType>¸¡ººÂоݤò<FSType>¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¸ÂÄꤹ¤ë
-m¸¡ºº¤À¤±¤ò¹Ô¤¤½¤Éü¤ò¹Ô¤ï¤Ê¤¤
-n(or N)fsck¼Â¹Ô»þ¤Ë½Ð¤µ¤ì¤ëÁ´¤Æ¤Î¼ÁÌä¤Ë¼«Æ°Åª¤Ë no ¤È²óÅú¤¹¤ë
-y(or Y)fsck¼Â¹Ô»þ¤Ë½Ð¤µ¤ì¤ëÁ´¤Æ¤Î¼ÁÌä¤Ë¼«Æ°Åª¤Ë yes ¤È²óÅú¤¹¤ë
<rawDevice>/dev/rdsk¤Ë¤¢¤ë¥Ç¥Ð¥¤¥¹Ì¾¡£»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï /etc/vfstab ¤Ëµ­ºÜ¤µ¤ì¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤ÎÆâ¡¢fsck pass ¥Õ¥£¡¼¥ë¥É¤ÎÃͤ¬ 0 °Ê¾å¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÁ´¤Æ¸¡ºº¤¹¤ë

df

¥Õ¥¡¥¤¥ë¤Î»ÈÍѺѤߡ¦¶õ¤­ÍÆÎ̤ò½ÐÎϤ¹¤ë

df [-F <FSType>] [-abkt] [<fileSystem>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-F <FSType>»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¿¥¤¥×¤Î¤ßɽ¼¨
-aÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ì¥Ý¡¼¥È¤µ¤»¤ë
-b»ÈÍѲÄǽÍÆÎ̤Τߤò¥­¥í¥Ð¥¤¥Èñ°Ì¤Çɽ¼¨¤µ¤»¤ë
-k¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤Î»ÈÍѾõ¶·¤ò¥­¥í¥Ð¥¤¥Èñ°Ì¤Çɽ¼¨¤µ¤»¤ë(bt¤è¤êÍ¥À褵¤ì¤ë)
-t¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë³Æ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥¤¥¹¡¢»ÈÍѤµ¤ì¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤Î¹ç·×¿ô¡¢¥Õ¥¡¥¤¥ë¿ô¤òɽ¼¨¤µ¤»¤ë
bash-3.00# df -k
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à      kbytes »ÈÍÑºÑ¤ß »ÈÍѲÄǽ ÍÆÎÌ      ¥Þ¥¦¥ó¥ÈÀè
/dev/dsk/c1t0d0s0    5712126 4056787 1598218    72%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                  869064     920  868144     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                    5712126 4056787 1598218    72%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                  868220      76  868144     1%    /tmp
swap                  868180      36  868144     1%    /var/run
/dev/dsk/c1t0d0s7    1990255    2025 1928523     1%    /export/home
/hgfs                16777215    4096 16772864     1%    /hgfs
/tmp/VMwareDnD             0       0       0     0%    /var/run/vmblock

du

¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Õ¥¡¥¤¥ë¤ÎÀêÍ­¤¹¤ë¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ò³Îǧ¤¹¤ë

du [-ahks] [<file>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-a»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥êÆâ¤ÎÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤È¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤ª¤è¤Ó¹ç·×¥Ö¥í¥Ã¥¯¿ô¤ò½ÐÎϤ¹¤ë
-h¿Í´Ö¤Ë¤È¤Ã¤Æ²ÄÆÉÀ­¤Î¹â¤¤Ã±°Ì¤Ç½ÐÎϤ¹¤ë(KB,MB,GB)
-k»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥êÆâ¤ÎÁ´¤Æ¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤ª¤è¤Ó¹ç·×¥Ö¥í¥Ã¥¯¿ô¤ò½ÐÎϤ¹¤ë
-s»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤Î¤ß¤ò½ÐÎϤ¹¤ë
<file>³ÎǧÂоݤΥե¡¥¤¥ë¡£¾Êά»þ¤Ï"."(¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê)
$bash-3.00# du -hk /boot/
  38K   /boot/solaris/bin
  30K   /boot/solaris/devicedb
   1K   /boot/solaris/drivers/isa.025
   1K   /boot/solaris/drivers/isa.125
   1K   /boot/solaris/drivers/isa.150
   1K   /boot/solaris/drivers/isa.162
  44K   /boot/solaris/drivers/isa.175
   1K   /boot/solaris/drivers/notisa.010
   1K   /boot/solaris/drivers/notisa.020
  51K   /boot/solaris/drivers
   1K   /boot/solaris/machines
 213K   /boot/solaris
   1K   /boot/acpi/tables
   2K   /boot/acpi
   1K   /boot/rc.d
 377K   /boot/grub/bin
   1K   /boot/grub/bootsign
 1.1M   /boot/grub
   1K   /boot/platform/i86pc/kernel
   2K   /boot/platform/i86pc
   3K   /boot/platform
  77M   /boot

quot

¥æ¡¼¥¶¤´¤È¤ÎÀêÍ­¤¹¤ë¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ò³Îǧ¤¹¤ë

quot [-afv] [<fileSystem>+] 
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-aÁ´¤Æ¤Î¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÂоݤȤ¹¤ë
-f»ÈÍѺѤߥ֥í¥Ã¥¯(KB)¡¢½êÍ­¥Õ¥¡¥¤¥ë̾¡¢¥æ¡¼¥¶Ì¾¤ò½ÐÎϤ¹¤ë
-v²áµî30Æü¡¢60Æü¡¢90Æü´Ö¤Ë¥¢¥¯¥»¥¹¤µ¤ì¤Ê¤«¤Ã¤¿¥Ö¥í¥Ã¥¯¤¹¤ë¤òɽ¼¨¤¹¤ë
<fileSystem>ÂоݤȤ¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
bash-3.00# quot -afv
/dev/rdsk/c1t0d0s0 (/):
4049860 184780  root            2743812 2743787 2743787
  754      44   uucp              735     735     735
  304     124   bin               304     304     304
  114       3   svctag              0       0       0
   23      16   noaccess            0       0       0
   20      10   adm                 0       0       0
   13      13   lp                  0       0       0
    8       8   postgres            0       0       0
    7      11   nobody              0       0       0
    6       6   daemon              0       0       0
    2       2   gdm                 0       0       0
    2       2   smmsp               0       0       0
    2       2   webservd            0       0       0
/dev/rdsk/c1t0d0s7 (/export/home):
    9       2   root                0       0       0

¥Ç¥Ð¥¤¥¹´ÉÍý

ʪÍý¥Ç¥Ð¥¤¥¹Ì¾¡¢¥¤¥ó¥¹¥¿¥ó¥¹Ì¾¡¢ÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾

ÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾/devices SolarisÆȼ«¤Î¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë
¥¤¥ó¥¹¥¿¥ó¥¹Ì¾¥«¡¼¥Í¥ë¤ÎºîÀ®¤¹¤ë¥Ç¥Ð¥¤¥¹¤Îû½Ì̾
ÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾/dev ½¾Íè¤ÎUnix¤È¸ß´¹¤Ê¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë¡£/devices ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£Ä̾異¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¤³¤Á¤é¤ò»È¤¦

¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Ð¥¤¥¹Ì¾¤ò³Îǧ¤¹¤ë¥³¥Þ¥ó¥É

¥³¥Þ¥ó¥É³µÍ×ʪÍýŽÃŽÞŽÊŽÞŽ²Ž½Ì¾Ž²ŽÝŽ½ŽÀŽÝŽ½Ì¾ÊªÍý<->Ž²ŽÝŽ½ŽÀŽÝŽ½Âбþ
dmesgŽ¼Ž½ŽÃŽÑŽÊŽÞŽ¯ŽÌŽ§¤Ë¤¢¤ëŽÊŽ°ŽÄŽÞŽ³ŽªŽ±¿ÇÃǵ­Ï¿¤òɽ¼¨¤¹¤ë¡û¡û¡û
format¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î´ÉÍý¡û¡ß¡ß
prtconf¥·¥¹¥Æ¥à¹½À®¤òɽ¼¨¤¹¤ë¡û¡û¡ß
sysdef¥·¥¹¥Æ¥àÄêµÁ¤òɽ¼¨¤¹¤ë¡û¡û¡ß
less /etc/path_to_inst¡ß¡û¡û

dmesg

¥·¥¹¥Æ¥à¥Ð¥Ã¥Õ¥¡¤Ë¤¢¤ë¥Ï¡¼¥É¥¦¥§¥¢¿ÇÃǵ­Ï¿¤òɽ¼¨¤¹¤ë

bash-3.00# dmesg | more

2009ǯ02·î25Æü (¿å) 20»þ52ʬ31Éà JST
Feb 25 20:49:40 solamame pseudo: [ID 129642 kern.info] pseudo-device: ppm0
Feb 25 20:49:40 solamame genunix: [ID 936769 kern.info] ppm0 is /pseudo/ppm@0
Feb 25 20:49:40 solamame rootnex: [ID 349649 kern.info] npe0 at root: space 0 offset 0
Feb 25 20:49:40 solamame genunix: [ID 936769 kern.info] npe0 is /pci@0,0
Feb 25 20:49:40 solamame scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,1976@10 (mpt0):
Feb 25 20:49:40 solamame        Rev. 1 LSI, Inc. 1030 found.
Feb 25 20:49:40 solamame pcplusmp: [ID 637496 kern.info] pcplusmp: pci1000,30 (mpt) instance 0 vector 0x11
ioapic 0x1 intin 0x11 is bound to cpu 0
Feb 25 20:49:40 solamame scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,1976@10 (mpt0):
Feb 25 20:49:40 solamame        mpt0 Firmware version v0.0.0.0 (?)
Feb 25 20:49:40 solamame scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,1976@10 (mpt0):
Feb 25 20:49:40 solamame        mpt0: IOC Operational.
Feb 25 20:49:40 solamame npe: [ID 236367 kern.info] PCI Express-device: pci15ad,1976@10, mpt0
Feb 25 20:49:40 solamame genunix: [ID 936769 kern.info] mpt0 is /pci@0,0/pci15ad,1976@10
-- ·Ñ³ --

prtconf

¥·¥¹¥Æ¥à¹½À®¤òɽ¼¨¤¹¤ë

/usr/sbin/prtconf [-a] [-c] [-v] [V] [-x] [<devPath>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-a<devPath>¤Ç»ØÄꤷ¤¿¥Ç¥Ð¥¤¥¹¤ÎÁÄÀè¥Î¡¼¥É¤òÁ´¤Æɽ¼¨¤¹¤ë
-c<devPath>¤Ç»ØÄꤷ¤¿¥Ç¥Ð¥¤¥¹¤Î»Ò¹¥Î¡¼¥É¤òÁ´¤Æɽ¼¨¤¹¤ë
-v¾ÜºÙ¥í¥°¤òɽ¼¨
-VSPARC:Open Boot PROM ¤ÎÀßÄê¾ðÊó¤òɽ¼¨¡¢x86:pboot ¤ÎÀßÄê¾ðÊó¤òɽ¼¨
-x¥·¥¹¥Æ¥à¤¬64bit¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤òɽ¼¨¤¹¤ë
bash-3.00# /usr/sbin/prtconf | more
System Configuration:  Sun Microsystems  i86pc
Memory size: 1024 Megabytes
System Peripherals (Software Nodes):

i86pc
    scsi_vhci, instance #0
    isa, instance #0
        i8042, instance #0
            keyboard, instance #0
            mouse, instance #0
        lp, instance #0
        asy, instance #0
        asy, instance #1
        fdc, instance #0
-- ·Ñ³ --

less /etc/path_to_inst

¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Ð¥¤¥¹Ì¾¤òÄêµÁ¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¡£OS¤¬»È¤Ã¤Æ¤¤¤ë¤Î¤ÇÊѤ¨¤Á¤ã¤À¤á

bash-3.00# cat -n /etc/path_to_inst | more
     1  #
     2  #       Caution! This file contains critical kernel state
     3  #
     4  "/iscsi" 0 "iscsi"
     5  "/pseudo" 0 "pseudo"
     6  "/options" 0 "options"
     7  "/xsvc" 0 "xsvc"
     8  "/objmgr" 0 "objmgr"
     9  "/scsi_vhci" 0 "scsi_vhci"
    10  "/isa" 0 "isa"
    11  "/isa/i8042@1,60" 0 "i8042"
    12  "/isa/i8042@1,60/keyboard@0" 0 "kb8042"
    13  "/isa/i8042@1,60/mouse@1" 0 "mouse8042"
    14  "/isa/lp@1,378" 0 "ecpp"
    15  "/isa/asy@1,3f8" 0 "asy"
-- ·Ñ³ --

¥Ç¥Ð¥¤¥¹¤ÎºÆ¹½ÃÛ

ºÆµ¯Æ°¤·¤Æ¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òºÆ¹½ÃÛ¤¹¤ë

bash-3.00# touch /reconfigure
bash-3.00# /usr/sbin/shutdown -i6 -g0 -y

²ÔƯÃæ¤Ë¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òºÆ¹½ÃÛ¤¹¤ë

/usr/sbin/devfsadm [-c <deviceClass>]* [-C] [-i <driverName>]* [-n] [-s] [-v]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-c <deviceClass>ÁàºîÂоݤΥǥХ¤¥¹¤ò <deviceClass> ¤ËÀ©¸Â¤¹¤ë¡£deviecClass = {disk,tape,port,audio,pseudo}
-CCleanup¡£/dev ¤Î¥ê¥ó¥¯ÀÚ¤ì¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë
-i <driverName>Æɤ߹þ¤à¥É¥é¥¤¥Ð¤ò <driverName> ¤ËÀ©¸Â¤¹¤ë
-n¥É¥é¥¤¥Ð¤ÎÆɤ߹þ¤ß¤ª¤è¤Ó¿·µ¬¥Ç¥Ð¥¤¥¹(¿·µ¬¥Î¡¼¥É¤Î¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼)¤ÎÄɲäò¹Ô¤ï¤Ê¤¤
-s/dev ¤Ø¤ÎÊѹ¹¤ò¹Ô¤ï¤Ê¤¤
-v¾ÜºÙ¥í¥°¤ò½ÐÎϤ¹¤ë
bash-3.00# /usr/sbin/devfsadm -c tape

¥Ç¥£¥¹¥¯¥Ç¥Ð¥¤¥¹

¥Ç¥£¥¹¥¯¤ÎÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾

¥×¥é¥Ã¥È¥Û¡¼¥à¥Ç¥Ð¥¤¥¹Ì¿Ì¾Ë¡Îã
SPARCblock¥Ç¥Ð¥¤¥¹/dev/ dsk/c(k)t(l)d(m)s(n)/dev/ dsk/c0t0d0s0
raw¥Ç¥Ð¥¤¥¹/dev/rdsk/c(k)t(l)d(m)s(n)/dev/rdsk/c0t0d0s0
X86block¥Ç¥Ð¥¤¥¹/dev/ dsk/c(k)__d(m)s(n)/dev/ dsk/c0d0s0
raw¥Ç¥Ð¥¤¥¹/dev/rdsk/c(k)__d(m)s(n)/dev/rdsk/c0d0s0

SPARC¥×¥é¥Ã¥È¥Û¡¼¥à¤Èx86¥×¥é¥Ã¥È¥Û¡¼¥à¤Î¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î°ã¤¤

¥×¥é¥Ã¥È¥Û¡¼¥à¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó
SPARC¥Ç¥£¥¹¥¯Á´ÂΤò Solaris ¤Ë»È¤¦
x86ºÇÂç 4 ¤Ä¤Î FDISK ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºî¤ê¡¢¤½¤ì¤¾¤ìÊ̤ΠOS ¤ò¥¤¥ó¥¹¥È¡¼¥ë²Äǽ

¥Ç¥£¥¹¥¯¥é¥Ù¥ë

format

¥Ç¥£¥¹¥¯¤òÁýÀߤ·¤¿¤È¤­¤Ë¡¢Äã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤ò¹Ô¤¦¥æ¡¼¥Æ¥£¥ê¥Æ¥£

format [-d <deviceName>] [-f <commandFile>] [-l <logfile>] [-m] [-M] [-s]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-d <deviceName>format¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î¥«¥ì¥ó¥È¥Ç¥£¥¹¥¯
-f <commandFile>format¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ø¤Î¥³¥Þ¥ó¥ÉÆþÎϤòɸ½àÆþÎϤ«¤é¤Ç¤Ï¤Ê¤¯¡¢command file ¤«¤é¹Ô¤¦¤è¤¦¤Ë¤¹¤ë
-l <logfile>log¥Õ¥¡¥¤¥ë
-m¾ÜºÙ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
-M¾ÜºÙ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¡¡¡Ü¡¡¿ÇÃÇ¥á¥Ã¥»¡¼¥¸
-sformat¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î½ÐÎϤò¾Êά¤¹¤ë
bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@0,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c1t0d0s7 is currently mounted on /export/home. Please see umount(1M).


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format>

partition

format> partition


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> print
Current partition table (original):
Total disk cylinders available: 4092 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm    1259 - 4091        5.53GB    (2833/0/0) 11603968
  1       swap    wu       1 -  256      512.00MB    (256/0/0)   1048576
  2     backup    wm       0 - 4091        7.99GB    (4092/0/0) 16760832
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7       home    wm     257 - 1258        1.96GB    (1002/0/0)  4104192
  8       boot    wu       0 -    0        2.00MB    (1/0/0)        4096
  9 unassigned    wm       0               0         (0/0/0)           0

partition>

modify

inquiry

format> inquiry
Vendor:   VMware,
Product:  VMware Virtual S
Revision: 1.0

¥Ç¥£¥¹¥¯¤Î¾ÜºÙ¾ðÊó¤¬É½¼¨¤µ¤ì¤ë

/etc/format.dat

/etc/format.dat ¤Ë format ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ç»ÈÍѲÄǽ¤Ê»öÁ°ÄêµÁ¤µ¤ì¤¿¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤Î¥ê¥¹¥È¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ë

disk_type = "Quantum ProDrive 80S" \
        : ctlr = SCSI : fmt_time = 1 \
        : cache = 0x07 : trks_zone = 6 : atrks = 0 : asect = 1 \
        : ncyl = 832 : acyl = 2 : pcyl = 834 : nhead = 6 : nsect = 34 \
        : rpm = 3662 : bpt = 16896

¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Þ¥¦¥ó¥È

¥Ö¡¼¥È»þ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Þ¥¦¥ó¥È

  1. bootľ¸å(¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É)
    • ¥«¡¼¥Í¥ë¤¬ /¡¢/usr¡¢/var ¤ò¥Þ¥¦¥ó¥È
  2. OS¤¬¥Þ¥ë¥Á¥æ¡¼¥¶¥â¡¼¥É¤Ë°Ü¹Ô¤¹¤ë
    • mountall ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë
    • /etc/fstab ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥Ð¥¤¥¹¤Î¤¦¤Á¡¢Mount at boot ¤¬ yes ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È
  3. (¥·¥ã¥Ã¥È¥À¥¦¥ó¤Ê¤É¤Ç)OS¤¬¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ë°Ü¹Ô¤¹¤ë
    • umountall ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë
    • /etc/vfstab ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥Ð¥¤¥¹¤¬Á´¤Æ¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤ë
    • umountall ¤Ê»ö¤ËÃí°Õ (unmountall ¥³¥Þ¥ó¥É¤Ç¤Ï¤Ê¤¤)

bash-3.00# cat -n /etc/vfstab
     1  #device         device          mount           FS      fsck    mount   mount
     2  #to mount       to fsck         point           type    pass    at boot options
     3  #
     4  fd      -       /dev/fd fd      -       no      -
     5  /proc   -       /proc   proc    -       no      -
     6  /dev/dsk/c1t0d0s1       -       -       swap    -       no      -
     7  /dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      -
     8  /dev/dsk/c1t0d0s7       /dev/rdsk/c1t0d0s7      /export/home    ufs     2       yes     -
     9  /devices        -       /devices        devfs   -       no      -
    10  sharefs -       /etc/dfs/sharetab       sharefs -       no      -
    11  ctfs    -       /system/contract        ctfs    -       no      -
    12  objfs   -       /system/object  objfs   -       no      -
    13  swap    -       /tmp    tmpfs   -       yes     -
¥Õ¥£¡¼¥ë¥É°ÕÌ£
Device to mount¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹Ì¾
Device to fsckraw¥Ç¥Ð¥¤¥¹Ì¾
Mount point¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È
FS type¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
fsck passfsck¥³¥Þ¥ó¥É¤Ç¸¡ºº¤¹¤ë¤«¤òÆÃÄꤹ¤ë¥Õ¥é¥°¡£fsck pass="-":¸¡ºº¤·¤Ê¤¤¡¢"0":UFS¤Î¾ì¹ç¤Ï¸¡ºº¤·¤Ê¤¤¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¸¡ºº¤¹¤ë¡¢"¥¼¥í¤è¤êÂ礭¤¤":¸¡ºº¤¹¤ë
Mount at bootboot»þ¤Ë¥Þ¥¦¥ó¥È¤¹¤ë¤«? "yes" or "no"
Mount options¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¡£Ìµ¤¤¾ì¹ç¤Ë¤Ï"-"¤òµ­Æþ¤¹¤ë

mount¥³¥Þ¥ó¥É

¥Ç¥Ð¥¤¥¹¤ò¥Õ¥¡¥¤¥ë¥Ä¥ê¡¼¤Ë¥Þ¥¦¥ó¥È¤¹¤ë

bash-3.00# mount [-F <FSType>] [-m] [-p] [-r] [-v] [-o <specificOptions>] <mountDevice> <mountPoint>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-F <FSType>¥Þ¥¦¥ó¥È¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë
-m/etc/mnttab ¤Ë¥¨¥ó¥È¥ê¤òºîÀ®¤»¤º¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë
-p¥³¥Þ¥ó¥É¤Î¼Â¹Ô·ë²Ì(¥Þ¥¦¥ó¥È¾ðÊó)¤ò /etc/vfstab ¤Î·Á¼°¤ËÀ°·Á¤¹¤ë
-rÆɤ߼è¤êÀìÍѤǥޥ¦¥ó¥È¤¹¤ë
-v¾ÜºÙ¥í¥°¤ò½ÐÎϤ¹¤ë
-o <specificOptions>-o devices¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥Õ¥¡¥¤¥ë¤ò³«¤¯¤³¤È¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ)
-o nodevices¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥Õ¥¡¥¤¥ë¤ò³«¤¯¤³¤È¤ò¶Ø»ß
-o exec¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥×¥í¥°¥é¥à¤Î¼Â¹Ô¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ)
-o noexec¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥×¥í¥°¥é¥à¤Î¼Â¹Ô¤ò¶Ø»ß¤¹¤ë
-o rw¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤­¹þ¤ß¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ)
-o ro¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤òÆɤ߼è¤êÀìÍѤˤ¹¤ë
-o setuid¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ setuid ¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ)
-o nosetuid¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ setuid ¤òµö²Ä¤·¤Ê¤¤

umount¥³¥Þ¥ó¥É

¥Ç¥Ð¥¤¥¹¤ò¥Õ¥¡¥¤¥ë¥Ä¥ê¡¼¤«¤é¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë

bash-3.00# umount [-f] <mountPoint>

¥Ü¥ê¥å¡¼¥à´ÉÍý

autofs

¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È

¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤ò¹½À®¤¹¤ë¥Õ¥¡¥¤¥ë

/etc/passwd

½ñ¼°:
<username>:<password>:<uid>:<gid>:<comment>:<home directory>:<login shell>
¹àÌÜÀßÄêÆâÍÆ
<username>­¡¥·¥¹¥Æ¥àÆâ¤Ç¥æ¥Ë¡¼¥¯­¢2¡Á8ʸ»ú¤Î±Ñ¿ô»ú­£ºÇ½é¤Ï±Ñ»ú­¤ºÇÄ㣱ʸ»ú¤Ï±Ñ¾®Ê¸»ú
<password>"x"¸ÇÄê(½é´ü¤ÎUnix¤È¤Î¸ß´¹À­¤Î¤¿¤á)¡£¼ÂºÝ¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï /etc/shadow ¤Ë°Å¹æ²½¤·¤Æ³ÊǼ¤µ¤ì¤ë
<uid>User ID : 0¡Á99:¥·¥¹¥Æ¥à¥¢¥«¥¦¥ó¥È / 100¡Á60000:¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È / 60001¡Á2147483647(2^31-1 :32bitÉä¹æÉÕ¤­À°¿ô¤ÎºÇÂçÃÍ):ƿ̾¥æ¡¼¥¶¤Ê¤É
<gid>Primary Group ID¡£¥æ¡¼¥¶¤ÏºÇÄã°ì¤Ä¤Î Primary Group ¤Ë°¤¹¤ë¡£¥æ¡¼¥¶¤Ï¡¢ºÇÂç 15 ¤Î Secondary Group ¤Ë°¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë(/etc/group ¤ÇÄêµÁ¤¹¤ë)
<comment>
<home directory>
<login shell>
 
bash-3.00# cat /etc/passwd
root:x:0:0:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
bash-3.00#

/etc/shadow

½ñ¼°:
<username>:<password>:<lastchg>:<min>:<max>:<warn>:<inactive>:<expire>:<flag>
¹àÌÜÀßÄêÆâÍÆ
<username>
<password>crypt¤Ç°Å¹æ²½¤µ¤ì¤¿13ʸ»ú¡£"NP":¥Ñ¥¹¥ï¡¼¥É¤Ê¤·¡£"*LK*":¥¢¥«¥¦¥ó¥È¥í¥Ã¥¯Ãæ
<lastchg>ºÇ½ª¹¹¿·Æü»þ¤ÎUnix¥¿¥¤¥à(1970ǯ1·î1Æü¤«¤é¤ÎÉÿô)
<min>¥Ñ¥¹¥ï¡¼¥É¤¬Êѹ¹¤Ç¤­¤Ê¤¤ºÇ¾®Æü¿ô
<max>¥Ñ¥¹¥ï¡¼¥É¤¬Í­¸ú¤ÊºÇÂçÆü¿ô
<warn>¥Ñ¥¹¥ï¡¼¥É¼º¸ú¤Î²¿ÆüÁ°¤«¤é·Ù¹ð¤ò½Ð¤¹¤«
<inactive>²¿Æü´Ö¥í¥°¥¤¥ó¤·¤Ê¤¤¤È¥¢¥«¥¦¥ó¥È¤¬¥í¥Ã¥¯¤µ¤ì¤ë¤«
<expire>¼º¸úÆü(Unix¥¿¥¤¥à)
<flag>¥Ñ¥¹¥ï¡¼¥Éǧ¾Ú¼ºÇÔ²ó¿ô(4bitÀ°¿ô)
bash-3.00# cat /etc/shadow
root:xXg3fgE4Y3yac:6445::::::
daemon:NP:6445::::::
bin:NP:6445::::::
sys:NP:6445::::::
adm:NP:6445::::::
lp:NP:6445::::::
uucp:NP:6445::::::
nuucp:NP:6445::::::
smmsp:NP:6445::::::
listen:*LK*:::::::
gdm:*LK*:::::::
webservd:*LK*:::::::
postgres:NP:::::::
svctag:*LK*:6445::::::
nobody:*LK*:6445::::::
noaccess:*LK*:6445::::::
nobody4:*LK*:6445::::::

/etc/group

<group name>:<group passowrd>:<gid>:<user-list>
¹àÌÜÀßÄêÆâÍÆ
<group name>
<group passowrd>Ä̾ï¤Ï¶õÇò¤Ë¤¹¤ë(½é´ü¤ÎUnix¤È¤Î¸ß´¹À­¤Î¤¿¤á)¡£ÀßÄꤹ¤ë¤È newgrp ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¥Ñ¥¹¥ï¡¼¥É¤¬Ê¹¤«¤ì¤ë¤è¤¦¤Ë¤Ê¤ë
<gid>0¡Á60000:Ä̾ï¤Î¥°¥ë¡¼¥×¤Ë³ä¤êÅö¤Æ¤ë¡£60001¡Á65534:ƿ̾¥æ¡¼¥¶¤Ê¤É
<user-list>½ê°¤¹¤ë¥æ¡¼¥¶¤Î¥ê¥¹¥È(¥«¥ó¥Þ¶èÀÚ¤ê)
bash-3.00# cat /etc/group
root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
nobody::60001:
noaccess::60002:
nogroup::65534: 

¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤ò¹½À®¤¹¤ë¥³¥Þ¥ó¥É

useradd

¥æ¡¼¥¶¤òÄɲ乤ë

useradd [-c <comment>] [-d <dir>] [-e <expire>] [-f <inactive>]
[-g <group>] [-G <group,group,...>] [-m [-k <skel_dir>]] [-p <profile>]
[-A <authorization,authorization,...>] [-R <role>] [-s <shell>] [-u <uid>]
<login-name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£¡¦³ÊǼ¾ì½ê
-u <uid>/etc/passwd ¤Î <uid>
-g <group>/etc/passwd ¤Î <gid>
-c <comment>/etc/passwd ¤Î <comment>
-d <dir>/etc/passwd ¤Î <home directory>¡£¾Êά»þ¤Ï¡¢<basedir>/<login-name> (<basedir>¤Ï¡¢/usr/sadm/defadduser ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë )
-s <shell>/etc/passwd ¤Î <login shell
-f <inactive>/etc/shadow ¤Î <inactive>
-e <expire>/etc/shadow ¤Î <expore>
-G <group,group,...>/etc/group ¤Î <user-list>
-m [-k <skel_dir>]¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¡£ ¤µ¤é¤Ë -k ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤­¤Ë¤Ï¡¢skelton ¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤Æ <skel_dir> ¤ò»È¤¦¡£-k¾Êά»þ¤Ï /etc/skel
-p <profile>¥æ¡¼¥¶¤ËŬÍѤµ¤ì¤ë¼Â¹Ô¥×¥í¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È(¾ÜºÙ¤Ï¸åȾ¤Î¥Æ¥¹¥ÈÈÏ°Ï)
-A <authorization,authorization,...>¥æ¡¼¥¶¤ËŬÍѤµ¤ì¤ëǧ¾Ú¤Î¥ê¥¹¥È(¾ÜºÙ¤Ï¸åȾ¤Î¥Æ¥¹¥ÈÈÏ°Ï)
-R <role>¥æ¡¼¥¶¤ËŬÍѤµ¤ì¤ë¥í¡¼¥ë¤Î¥ê¥¹¥È(¾ÜºÙ¤Ï¸åȾ¤Î¥Æ¥¹¥ÈÈÏ°Ï)
<login-name>/etc/passwd ¤Î <username>¾

useradd -D

useradd ¤Î ¾Êά»þ¤ÎÃͤò´ÉÍý¤¹¤ë

usermod

¥æ¡¼¥¶¾ðÊó¤ò¹¹¿·¤¹¤ë

usermod [-c <comment>] [-d <dir> [-m]] [-e <expire>] [-f <inactive>]
[-g <group>] [-G <group,group,...>] [-l <new_login_name>] [-p <profile>]
[-A <authorization,authorization,...>] [-R <role>] [-s <shell>] [-u <uid>]
<login-name>

(useradd ¤È°ã¤¦¥ª¥×¥·¥ç¥ó)

¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-l <new_login_name>¿·¤·¤¤¥æ¡¼¥¶Ì¾
-d <dir> [-m]¥æ¡¼¥¶¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤ò -d ¤Ç»ØÄꤷ¤¿¿·µ¬¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¹¤ë
-m ¤ò»ØÄꤷ¤ÆÊѹ¹À褬¸ºß¤·¤Ê¤¤¾ì¹ç¸µ¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬¡¢¿·µ¬¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤µ¤ì¤ë
-m ¤ò»ØÄꤷ¤ÆÊѹ¹À褬¸ºß¤¹¤ë¾ì¹çÊѹ¹Àè¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ï²¿¤â¤·¤Ê¤¤(¸¢¸Â¤ÎÊѹ¹¤ä¥Õ¥¡¥¤¥ë¤Î°ÜÆ°¤Ï¤·¤Ê¤¤)

userdel

¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤òºï½ü¤¹¤ë

userdel [-r] <login_name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-r¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë(-r¤ò»ØÄꤷ¤Ê¤¤¤È¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬»Ä¤Ã¤¿¤Þ¤Þ¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ)

groupadd

¥°¥ë¡¼¥×¤òÄɲ乤ë

groupadd [-g <gid> [-o]] <group_name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-g <gid>¥°¥ë¡¼¥×ID¡£¾Êά¤·¤¿¾ì¹ç¤Ï¡¢»ÈÍѺѤߤÎID¤Î¼¡¤ÎÃͤ¬³ä¤ê¿¶¤é¤ì¤ë
-oGID ¤Î¶¦Í­¤òµö¤¹
<group_name>¥°¥ë¡¼¥×̾

groupmod

¥°¥ë¡¼¥×¥¢¥«¥¦¥ó¥È¤òÊѹ¹¤¹¤ë

groupmod [-g <gid> [-o]] [-n <new_name>] <group_name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-g <gid>¥°¥ë¡¼¥×ID¡£¾Êά¤·¤¿¾ì¹ç¤Ï¡¢»ÈÍѺѤߤÎID¤Î¼¡¤ÎÃͤ¬³ä¤ê¿¶¤é¤ì¤ë
-oGID ¤Î¶¦Í­¤òµö¤¹
-n <new_name>¿·¤·¤¤¥°¥ë¡¼¥×̾
<group_name>¥°¥ë¡¼¥×̾

groupdel

¥°¥ë¡¼¥×¥¢¥«¥¦¥ó¥È¤òºï½ü¤¹¤ë

groupdel <group_name>

SMC (Solaris Management Console)

bash-3.00# /usr/sbin/smc &
smc.png

admintool ¤Ï¡¢Solaris 10 ¤«¤éÇÑ»ß

¥·¥§¥ë½é´ü²½¥Õ¥¡¥¤¥ë

¥·¥¹¥Æ¥à¥»¥­¥å¥ê¥Æ¥£

¥Ñ¥¹¥ï¡¼¥É´ÉÍý

logins

passwd

¥í¥°¥¤¥ó´ÉÍý

who

last

¥í¥°¥¤¥ó¤Î¼ºÇÔÍúÎò

¥í¥°¥¤¥ó¤Î°ì»þ¶Ø»ß

¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶

su

su [-] [<username>]

¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¥¢¥¯¥»¥¹´Æ»ë

¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¥¢¥¯¥»¥¹À©¸Â

¥¢¥¯¥»¥¹¸¢¸Â

FTP

.rhosts

ssh

¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó

ls

bash-3.00$ ls -la ~/Desktop/
¹ç·× 12
drwxr-xr-x   2 kagyuu   other        512  3·î 24Æü  00:25 .
drwxr-xr-x  14 kagyuu   other        512  3·î 25Æü  01:18 ..
-rw-r--r--   1 kagyuu   other       1431  3·î 24Æü  00:25 star.desktop
-rw-r--r--   1 kagyuu   other       1241  3·î 24Æü  00:25 starthere.desktop

chmod

chmod [-fR] <permission mode> <file>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-f¶¯À©
-RºÆµ¢Åª¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¤¿¤É¤Ã¤Æ¼Â¹Ô
permission mode[ugoa] [+-=] [r][w][x]
[0-7][0-7][0-7]

chown

chown [-fhR] <owner>[:<group>] <file>

chgrp

chgrp [-fhR] <group> <file>

Æüì¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó

setuid

bash-3.00$ chmod 4755 a.sh
bash-3.00$ ls -la | grep a.sh
-rwsr-xr-x   1 kagyuu   other          0  3·î 28Æü  13:41 a.sh
  ¢¬

setgid

bash-3.00$ chmod 2755 a.sh
bash-3.00$ ls -la | grep a.sh
-rwxr-sr-x   1 kagyuu   other          0  3·î 28Æü  13:41 a.sh
     ¢¬

¥¹¥Æ¥£¥Ã¥­¡¼¥Ó¥Ã¥È

bash-3.00$ touch /tmp/matrix.cvs
bash-3.00$ su -
# chmod 1777 /tmp/matrix.cvs
# ls -la /tmp | grep matrix.cvs
-rwxrwxrwt   1 kagyuu   other          0  3·î 28Æü  14:36 matrix.cvs
         ¢¬

¥×¥í¥»¥¹´ÉÍý

ps

ps <options>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-aps ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤¿¥¿¡¼¥ß¥Ê¥ë¤«¤é¤Î¥ê¥¯¥¨¥¹¥ÈÉÑÅ٤νç¤Ë¥½¡¼¥È¤·¤Æɽ¼¨¤¹¤ë
-A¼Â¹ÔÃæ¤ÎÁ´¤Æ¤Î¥×¥í¥»¥¹¤Î¾ðÊó¤òɽ¼¨¤¹¤ë
-e-A ¤ÈƱ¤¸
-f¥ê¥¹¥È¤Î¥Õ¥ëɽ¼¨
-l¥ê¥¹¥È¤ò¥í¥ó¥°¥Õ¥©¡¼¥Þ¥Ã¥È¤Çɽ¼¨¤µ¤»¤ë
-P <procList><procList> ¤Ë»ØÄꤵ¤ì¤¿ ¥×¥í¥»¥¹ID ¤Ë³ºÅö¤¹¤ë¥×¥í¥»¥¹¤Î¤ßɽ¼¨¤¹¤ë
-u <uidList><uidList> ¤Ë»ØÄꤵ¤ì¤¿ ¼Â¸ú¥æ¡¼¥¶ID(EUID (cf.setuid)) ¤â¤·¤¯¤Ï ¥í¥°¥¤¥ó̾ ¤Ë³ºÅö¤¹¤ë¥×¥í¥»¥¹¤Î¤ßɽ¼¨¤¹¤ë
-U <uidList><uidList> ¤Ë»ØÄꤵ¤ì¤¿ ¼Â¥æ¡¼¥¶ID(UID) ¤â¤·¤¯¤Ï ¥í¥°¥¤¥ó̾ ¤Ë³ºÅö¤¹¤ë¥×¥í¥»¥¹¤Î¤ßɽ¼¨¤¹¤ë

pgrep

pgrep <options> <pattern>

prstat

pstat [<options>] [<interval> [<count>]]

kill, pkill

kill [ <signal> | -<signal number> ] <pid>

ex.
kill SIGHUP 12345
kill -9 12345

pstop, prun, pwait

¥³¥Þ¥ó¥Éµ¡Ç½
pstop [<pid>]* [<process name>]*¥×¥í¥»¥¹¤ò°ì»þÄä»ß¤¹¤ë
prun [<pid>]* [<process name>]*¥×¥í¥»¥¹¤òºÆ³«¤¹¤ë
pwait [<pid>]* [<process name>]*¥×¥í¥»¥¹¤Î½ªÎ»¤òÂÔ¤Ä

cron,at

cron

at

¥×¥ê¥ó¥¿

Solris¤Î¥×¥ê¥ó¥È¥×¥í¥»¥¹¤Î³µÍ×

Printer.png
  1. ¥æ¡¼¥¶¤¬ lp ¤ä lpr ¥³¥Þ¥ó¥É¤Ç¡¢°õºþ»Ø¼¨¤ò½Ð¤¹
    • ¥×¥ê¥ó¥¿Ì¾¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Î¥×¥ê¥ó¥¿¤Ï¡¢¼¡¤ÎÍ¥Àè½ç°Ì¤Ç·èÄꤵ¤ì¤ë
    1. ´Ä¶­ÊÑ¿ô $PRINTER
    2. $LPDEST ¤ÎÃÍ
    3. /.priters ¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥×¥ê¥ó¥¿

    4. /etc/printers.conf ¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥×¥ê¥ó¥¿
    5. NIS¤ËÌ䤤¹ç¤ï¤»¤ë
  2. ¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Ï¡¢¤¤¤Ã¤¿¤ó /var/spool/lp ¤ËÃߤ¨¤é¤ì¤Æ IPP(Internet Printing Protocol) ¤Ç¥×¥ê¥ó¥¿¥µ¡¼¥Ð¤ËÁ÷¤é¤ì¤ë
  3. IPP¥ê¥¹¥Ê¡¼¤¬¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤ò¼õ¤±¼è¤ë
    • Apache ¤Î¾å¤ÇÆ°¤¤¤Æ¤¤¤ë Web ¥µ¡¼¥Ó¥¹(Port 631)
    • svc:/application/print/ipp-listener
  4. LP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹( = lpsched = ¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é )¤Ë¥×¥ê¥ó¥È¥¸¥ç¥Ö¤¬¥¹¥×¡¼¥ë¤µ¤ì¤ë
    • ´ðËܵ¡Ç½ 5 ¤Ä
    1. ¥×¥ê¥ó¥¿¤ò½é´ü²½¤·¤Æ¡¢¥×¥ê¥ó¥È¥¸¥ç¥Ö¤ÎÄó½Ð¤È½èÍý¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë
    2. ¥Õ¥¡¥¤¥ë¤Î´ÉÍý¤ª¤è¤Ó¥í¡¼¥«¥ë¥×¥ê¥ó¥È¤Î¥ê¥¯¥¨¥¹¥È¤ò¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤¹¤ë
    3. ¥×¥ê¥ó¥È¥¸¥ç¥Ö¤Î¾õÂÖ¤òÄÉÀפ¹¤ë
    4. ¥Õ¥¡¥¤¥ë¤Î¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¹Ô¤¤¡¢»ÈÍѤ¹¤ë¥×¥ê¥ó¥¿¤ËÂбþ¤·¤Æ¤¤¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¥×¥ê¥ó¥È¥¸¥ç¥Ö¤òÊÑ´¹¤¹¤ë
    5. ¥×¥ê¥ó¥È¤Ë¾ã³²¤¬È¯À¸¤·¤¿¾ì¹ç¤Ë¥ê¥¯¥¨¥¹¥È¸µ¤Ë·Ù¹ð¤¹¤ë
  5. ¥×¥ê¥ó¥¿¡¼¤«¤é½ÐÎϤµ¤ì¤ë

¥×¥ê¥ó¥¿¤Î¾õÂ֤γÎǧ

lpstat [-d] [-p <printer name>] [-D] [-l] [-o [<list>]] [-t]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
-d¥·¥¹¥Æ¥à¤Î¥Ç¥Õ¥©¥ë¥È¥×¥ê¥ó¥¿¤òɽ¼¨¤¹¤ë
-p <printer name>¥×¥ê¥ó¥¿¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë(Active/idle¡¢Í­¸ú¤Ë¤µ¤ì¤¿»þ¹ï/̵¸ú¤Ë¤µ¤ì¤¿»þ¹ï¡¢¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤ò¼õ¤±ÉÕ¤±¤Æ¤¤¤ë¤«)
-D-p ¤Ç»ØÄꤵ¤ì¤¿¥×¥ê¥ó¥¿¤Î¾ÜºÙ¾ðÊó¤òɽ¼¨
-l-p ¤Ç»ØÄꤵ¤ì¤¿¥×¥ê¥ó¥¿¤ÎÆÃÀ­¾ðÊó¤òɽ¼¨
-o [<list>]<list> »ØÄꤷ¤¿¥ê¥¯¥¨¥¹¥È¤Ë´Ø¤¹¤ë¾ðÊó¤òɽ¼¨¡£¥×¥ê¥ó¥¿Ì¾¡¢¥¯¥é¥¹Ì¾¡¢¥ê¥¯¥¨¥¹¥ÈID¡£Ìµ»ØÄê»þ¤Ë¤ÏÁ´¤Æ¤òɽ¼¨
-tLP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹¤Î¾õÂÖ¤òɽ¼¨¤µ¤»¤ë

¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é¤Îµ¯Æ°¡¦Ää»ß

¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é¤Î¥í¥°

¥×¥ê¥ó¥¿¥ê¥¯¥¨¥¹¥È¤Î¥í¥°¤ÏÆó¤Ä¤Î¾ì½ê¤Ë½ÐÎϤµ¤ì¤ë

¥Ç¥£¥ì¥¯¥È¥ê¥¢¥¯¥»¥¹²Äǽ¤Ê¥æ¡¼¥¶
/var/spool/lp/requests/<system name>su¡¢lp¥µ¡¼¥Ó¥¹
/var/spool/lp/tmp/<system name>su¡¢lp¥µ¡¼¥Ó¥¹¡¢¥ê¥¯¥¨¥¹¥È¤·¤¿¥æ¡¼¥¶

¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Î³Îǧ¤È¥­¥ã¥ó¥»¥ë

¥×¥ê¥ó¥¿¤ÎÄɲÃ

lpadmin -p <system name>[!<printer name>] 
[-s <system name> | -U <dial info> | -v <device name>]
[-e <printer> | -i <interface> | -m <model>]
#¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
1-p <system name>!<printer name>¥×¥ê¥ó¥¿Ì¾
2-s <system name>¥ê¥â¡¼¥È¥×¥ê¥ó¥¿
-U <dial info>¥À¥¤¥¢¥ë¥¢¥Ã¥×¤Î¥ê¥â¡¼¥È¥×¥ê¥ó¥¿
-v <device name>¥í¡¼¥«¥ë¥×¥ê¥ó¥¿
3-e <printer>´û¸¤Î¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤òº£²óÄɲ乤ë¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¡¼¤È¤·¤Æ¥³¥Ô¡¼¤¹¤ë
-i <interface>¿·µ¬¤Î¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤òº£²óÄɲ乤ë¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¡¼¤È¤·¤ÆÍøÍѤ¹¤ë¡£(<interface> ¤Ï¡¢¥É¥é¥¤¥Ð¤Î¥Õ¥ë¥Ñ¥¹)
-m <model>LP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë <model> ̾¤Î¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¡¼¤òº£²óÄɲ乤ë¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¡¼¤È¤·¤ÆÍøÍѤ¹¤ë

¥×¥ê¥ó¥¿¤Îºï½ü

# reject <printer name>
# disable <printer name>
# lpadmin -x <printer name>

¥¯¥é¥¤¥¢¥ó¥È¤ËÂФ¹¤ë¥×¥ê¥ó¥¿¤Î¥¢¥¯¥»¥¹À©¸Â

¥æ¡¼¥¶¤ËÂФ¹¤ë¥×¥ê¥ó¥¿¤Î¥¢¥¯¥»¥¹À©¸Â

¥·¥¹¥Æ¥à¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤È¥ê¥¹¥È¥¢

¥Ð¥Ã¥¯¥¢¥Ã¥×¼êË¡¤ÎÈæ³Ó

¥Ð¥Ã¥¯¥¢¥Ã¥×¼êË¡³µÍ×
¥Õ¥ë ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¡¢¥Ç¡¼¥¿¤òÁ´¤ÆÊÌÇÞÂΤËÊݸ¤¹¤ë
Áýʬ ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¡¢Á°²ó¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤È¤Îº¹Ê¬¤òÊݸ¤¹¤ë
¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ËÂФ·¤Æ¡¢¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦(¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Ï¥Þ¥¦¥ó¥È¤·¤¿¤Þ¤Þ¤Ç¤è¤¤)

ufsdump

ufsdump [0123456789fustdWwnNDCcbavloS [<arguments>]] <files>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
0-9¥Ð¥Ã¥¯¥¢¥Ã¥×¥ì¥Ù¥ë
a <archiveFile>¥Ð¥Ã¥¯¥¢¥Ã¥×ÌÜÏ¿¤òºîÀ®¤¹¤ë ufsrestore ¤Ë¤è¤ë¥ê¥¹¥È¥¢»þ¤Ë¡¢¤É¤Î¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥È¥¢¤¹¤ë¤«¤Î³Îǧ¤ËÍѤ¤¤ë
u/etc/dumpdates ¥Õ¥¡¥¤¥ë¤Ë¡¢¥Ð¥Ã¥¯¥¢¥Ã¥×ÌÜÏ¿¤òºîÀ®¤¹¤ë
D¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ø¥À¥ó¥×¤¹¤ë
f <dumpFile>¥À¥ó¥×Àè¤ò»ØÄꤹ¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï /dev/rmt/0 (¥í¡¼¥«¥ë¤Î¥Æ¡¼¥×)¡£¥í¡¼¥«¥ë¤Î¥Æ¡¼¥×¡¢¥Ç¥£¥¹¥¯¡¢¥ê¥â¡¼¥È¤Î¥Æ¡¼¥×¡¢¥Ç¥£¥¹¥¯¡¢É¸½à½ÐÎϤò»ØÄê²Äǽ
n¥Ð¥Ã¥¯¥¢¥Ã¥×¼Â¹Ô»þ¤ËȯÀ¸¤·¤¿·Ù¹ð¤ò sys ¥°¥ë¡¼¥×¤ÎÁ´¥ª¥Ú¥ì¡¼¥¿¤ËÄÌÃΤ¹¤ë
o¥Ð¥Ã¥¯¥¢¥Ã¥×´°Î»»þ¤Ë¥É¥é¥¤¥Ö¤ò¥ª¥Õ¥é¥¤¥ó¤Ë¤¹¤ë
S¥Ð¥Ã¥¯¥¢¥Ã¥×¤ËɬÍפÊÍÆÎ̤ò·×»»¤¹¤ë(¼ÂºÝ¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Ï¹Ô¤ï¤Ê¤¤)
s <size>¥Ð¥Ã¥¯¥¢¥Ã¥×Àè¤Î¥Ü¥ê¥å¡¼¥à¥µ¥¤¥º¤ò»ØÄê(ufsdump¤Ï¡¢É¬ÍפÊÍÆÎ̤¬¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¤Î¤Ç¡¢Æä˻ØÄꤹ¤ëɬÍפϤʤ¤)
v¥Ð¥Ã¥¯¥¢¥Ã¥×½ªÎ»¸å¤Ë¡¢¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Î¸¡¾Ú¤ò¹Ô¤¦¡£É¸½à½ÐÎϤ˥Х寥¢¥Ã¥×¤·¤¿¾ì¹ç¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï»ÈÍÑÉÔ²Ä
w¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î´°Î»¤·¤Ê¤«¤Ã¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë(/etc/dumpdates¡¢/etc/vfstab ¤Î¾ðÊó¤ò¸µ¤Ë)

ufsrestore(ÈóÂÐÏå⡼¥É)

ufsrestore(ÂÐÏå⡼¥É)

# ufsrestore -if /dev/rmt/0m
ufsrestore >
ÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥Éµ¡Ç½
add <file>Ãê½ÐÍѤ˥ޡ¼¥¯
cd <directory>
delete <file>Ãê½ÐÍѤΥޡ¼¥¯¤ò³°¤¹
extractÃê½ÐÍѤ˥ޡ¼¥¯¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤òÃê½Ð¤¹¤ë
help , ?
ls <directory>
marked <directory>Ãê½ÐÍѤ˥ޡ¼¥¯¤µ¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Î¥ê¥¹¥È¤òɽ¼¨
pwd
quit
verbose

cpio

cpio <mode> [<options>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
mode-icopy in (ɸ½à½ÐÎϤ«¤é¥¢¡¼¥«¥¤¥Ö¤ÎÆɤ߹þ¤ß)
-ocopy out (¥¢¡¼¥«¥¤¥Ö¤ÎºîÀ®¡¢É¸½àÆþÎϤ«¤é¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤ò¼õ¤±¼è¤ë)
-ppass (¥Ç¥£¥ì¥¯¥È¥ê´Ö¤Î¥³¥Ô¡¼)
-a-o ¤ÈÁȤ߹ç¤ï¤»¤ë¡£ºîÀ®¤·¤¿¥¢¡¼¥«¥¤¥Ö¤Î¥¢¥¯¥»¥¹¥¿¥¤¥à¤ò¸½»þ¹ï¤Ë¹¹¿·¤¹¤ë
-A-o ¤ÈÁȤ߹ç¤ï¤»¤ë¡£´û¸¤Î¥¢¡¼¥«¥¤¥Ö¤ËÄɵ­
-d-i ¤ÈÁȤ߹ç¤ï¤»¤ë¡£É¬Íפ˱þ¤¸¤Æ¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë
-m-i ¤ÈÁȤ߹ç¤ï¤»¤ë¡£¥Õ¥¡¥¤¥ëÊѹ¹»þ¹ï¤ò°Ý»ý¤¹¤ë
-t-i ¤ÈÁȤ߹ç¤ï¤»¤ë¡£¥¢¡¼¥«¥¤¥Ö¤Ë´Þ¤Þ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë

tar

tar <options> [<tar file name>] [<files to backup>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
c¥¢¡¼¥«¥¤¥Ö¤¹¤ë
xŸ³«¤¹¤ë
f<tar file name>¤Ë¡¢°µ½Ì¡¦Å¸³«¤¹¤ë¡£Ì¤»ØÄê»þ¤Ïɸ½àÆþ½ÐÎϤòÁàºî
t¥¢¡¼¥«¥¤¥Ö¤ÎÆâÍƤòɽ¼¨¤¹¤ë
u¥¢¡¼¥«¥¤¥Ö¤ØÄɵ­¤¹¤ë
v¾éĹ¥â¡¼¥É

pax

pax [<mode>] [<options>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó°ÕÌ£
mode-rÆɤ߹þ¤ß¥â¡¼¥É
-w½ñ¤­¹þ¤ß¥â¡¼¥É
-rw¥³¥Ô¡¼¥â¡¼¥É
(̤»ØÄê)¥ê¥¹¥È¥â¡¼¥É
-a´û¸¤Î¥¢¡¼¥«¥¤¥Ö¤ËÄɵ­¤¹¤ë
-k´û¸¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤­¤·¤Ê¤¤
-f <archive>¥¢¡¼¥«¥¤¥Ö¤ò»ØÄꤹ¤ë(̤»ØÄê»þ¤Ïɸ½àÆþ½ÐÎϤËÂФ¹¤ëÁàºî¤¬¹Ô¤ï¤ì¤ë)
-x <format>¥¢¡¼¥«¥¤¥Ö¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë¡£pax,cpio,ustar,xustar

dd

$ dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2
$ dd if=/dev/rdsk/c0t0d0s2 of=~/backup.file

¥Ð¥Ã¥¯¥¢¥Ã¥×·Ï¥³¥Þ¥ó¥É¤ÎÈæ³Ó

¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¶­³¦¤Îǧ¼±Ê£¿ô¥Ü¥ê¥å¡¼¥à¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î¥µ¥Ý¡¼¥È
ufsdumpÂбþÂбþ
cpioÉÔ²ÄÂбþ
paxÉÔ²ÄÂбþ
tarÉÔ²ÄÉÔ²Ä
ddÂбþÉÔ²Ä

fssnap

fssnap.png

¥·¥¹¥Æ¥àÉüµì¤Î¼ê½ç

  1. ñ¤Ë ¥æ¡¼¥¶¤¬¡¢Ctrl+S (¥³¥ó¥½¡¼¥ë¤Ø¤Î½ÐÎÏÄä»ß) ¤ò²¡¤·¤Æ¥¿¡¼¥ß¥Ê¥ë¤Ë²¿¤âɽ¼¨¤µ¤ì¤Ê¤¤¤À¤±¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¡¢¤È¤ê¤¢¤¨¤º Ctrl+Q (½ÐÎϺƳ«) ¤ò²¡¤·¤Æ¤ß¤ë
  2. Ctrl+\ ¤Ç¼Â¹ÔÃæ¤Î¥×¥í¥»¥¹¤ò½ªÎ»¤µ¤»¤ë
  3. Ctrl+C ¤Ç¼Â¹ÔÃæ¤Î¥×¥í¥»¥¹¤Ë³ä¤ê¹þ¤ß¤òÆþ¤ì¤Æ¤ß¤ë
  4. Ê̤Υ¿¡¼¥ß¥Ê¥ë¤«¤é¥·¥¹¥Æ¥à¤Ë¥í¥°¥¤¥ó¤·¤Æ¡¢¥Ï¥ó¥°¥¢¥Ã¥×¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Î½ªÎ»¤ò»î¤ß¤ë
  5. Ê̤Υ¿¡¼¥ß¥Ê¥ë¤«¤é¥·¥¹¥Æ¥à¤Ë¥í¥°¥¤¥ó¤·¤Æ¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤Ê¤Ã¤Æ¡¢¥·¥¹¥Æ¥à¤ò¥ê¥Ö¡¼¥È¤·¤Æ¤ß¤ë
  6. ¶ÛµÞ¥³¥Þ¥ó¥É( Stop+A )¤Ç¡¢Open Boot ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë°Ü¹Ô¤·¡¢¥¯¥é¥Ã¥·¥å¥À¥ó¥×(IO¥Ð¥Ã¥Õ¥¡¤È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎƱ´ü)¤ò¼Â¹Ô¤·¤Æ¡¢¥ê¥Ö¡¼¥È¤·¤Æ¤ß¤ë
    ok sync
    ok boot
  7. ¤¤¤Ã¤¿¤óÅŸ»¤òÀڤꡢ£±¡Á£²Ê¬ÂԤäơ¢ÅŸ»¤òÆþ¤ìľ¤¹¡£
  8. Sun ¤Î¥µ¥Ý¡¼¥È¥Ç¥¹¥¯¤ËÅÅÏ乤롣

»²¹Íʸ¸¥


Computer#Unix


źÉÕ¥Õ¥¡¥¤¥ë: filekdmcfg.png 2284·ï [¾ÜºÙ] filePrinter.png 2161·ï [¾ÜºÙ] fileS10_Boot.png 2225·ï [¾ÜºÙ] filedevices.png 2199·ï [¾ÜºÙ] fileinode.png 2323·ï [¾ÜºÙ] filex86.png 2185·ï [¾ÜºÙ] filefssnap.png 2079·ï [¾ÜºÙ] filesmc.png 2280·ï [¾ÜºÙ] filediskBlock.png 2162·ï [¾ÜºÙ]

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS   sitemap
Last-modified: 2009-04-09 (ÌÚ) 21:38:06 (5740d)
Short-URL: http://at-sushi.com/pukiwiki/index.php?cmd=s&k=9e7054f3ab
ISBN10
ISBN13
9784061426061