Sunの大きなマニュアルには載っているのですが、Documentation Center から目的のコマンドを探すのは結構骨が折れます。
SolarisなのにFloppyやCDROMをいちいちmountしていませんか。vol系のコマンドがあります。主にvolrmmountを使うでしょう。例えば、 Floppy diskを使うなら、
volrmmount -i fd0
CDROMをmountするなら、
volrmmount -i cdrom0
としましょう。自動的に認識してほしいなら、
volrmmount -i
でおそらくmountされるでしょう。 けれども、少なくともCDROMは自動的にmountされる筈です。
Solaris/x86では、IDEやSCSIのCDROMドライブはそのまま使えますが、 MOなどはvold.confをちょっと編集する必要があるようです。
use rmdisk drive /dev/rdsk/c*s2 dev_rmdisk.so rmdisk%d
use rmscsi drive /dev/rdsk/c*s2 dev_rmscsi.so rmscsi%d
を/etc/vold.confに書き加えてから、/rmdiskや/rmscsiを mkdirすれば、少なくともSCSI接続のMOドライブは 使えるようになる筈です。また、接続後は、boot -rvしましょう。
volcheck,fdformatでできます。
usage: fdformat [-dDeEfHlLmMqUvx] [-b label] [-B file] [-t dostype] [devname]
-b label install "label" on media
-B file install special boot loader on MS-DOS media
-d format MS-DOS media
-D format 720KB (3.5") or 360KB (5.25") Double-density diskette
-e eject the media when done
-E format 2.88MB (3.5") Extended-density diskette
-f "force" - don't wait for confirmation
-H format 1.44MB (3.5") or 1.2MB (5.25") High-density diskette
-l format 720KB (3.5") or 360KB (5.25") Double-density diskette
-L format 720KB (3.5") or 360KB (5.25") Double-density diskette
-m format 1.2MB (3.5") Medium-density diskette
-M format 1.2MB (3.5") Medium-density diskette
-q quiet
-t dos format MS-DOS media (same as -d)
-t nec format NEC-DOS media (with -M only)
-U unmount media if it's mounted
-v verify each block of the media
-x skip the format, only install SunOS or DOS label
devname defaults to 'no available default device'
普通はオプションなしでもうまくいきます。だめなら、 色々と指定する必要があります。
Beepの周波数を変えることができます。
f=400 # beep frequency in Hz
echo "beep_params+4?W0t$f;.+c?W0t$f" | mdb -kwm
Solaris x86の FAQは参考になります。
使いはじめは知らなくて困った。少なくとも、Linuxなら、shutdown -h nowが普通である。rootでLoginして、
# shutdown -i0 -g0 -y
# shutdown -i6 -g0 -y (reboot)
# shutdown -i5 -g0 -y (power down)
としましょう。
University of California at Berkeleyの略で、主に昔のSunOS
互換用に存在するそうです。今のSolarisはSystemVだけれど、
以前はUniversity of California at Berkeley由来のBSD系だったようです。
互換性のためにあるので、ディレクトリ内はシンボリックリンクが
いっぱいです。
--> ecere has joined ##programming
<ljuwaidah> yo ecere!!
<Zuu> yay, life :)
* Zuu tickles ljuwaidah
* ljuwaidah punches zuu in the face
* Zuu starts crying :'(
<rindolf> Fight!
<rindolf> Fight! Fight!
* Zuu runs home to mommy
<rindolf> Let's get ready to rumble!!!
* ljuwaidah punches rindolf in the face
<ljuwaidah> for encouraging the fight, that is
<Zuu> hehe
* rindolf uses his Evil Antlers to summon a squadron of Chuck
Norrises.
<Zuu> oh my!
* rindolf unleashes the Chuck Norrises upon ljuwaidah
* ljuwaidah uses his anti-chuck-norrise spell
<Zuu> those anterls must be the most evil thing in the entire
universe
<Zuu> *antlers
<rindolf> ljuwaidah: your spell only works on one chuck norris at a
day.
<rindolf> And I have 119 more.
<rindolf> Finish him!
<Zuu> i wonder what will happen if one Chuck Norris accidently
punches another
<ljuwaidah> rindolf: then lemme use my duplication spell to make more of
myself so THEY can use the spell
<rindolf> ljuwaidah: heh.
<rindolf> ljuwaidah++
<ljuwaidah> thanks :D
<rindolf> ljuwaidah: two can play this game.
* rindolf runs his recursive copying spell making lots of Evil
rindolf reindeers exponentially.
<rindolf> Like Bacteria.
<ljuwaidah> darn! i didn't see that coming
<ljuwaidah> but you also forgot that if _I_ can duplicate myself then so
can my duplicates B-)
-- The Ultimate ##programming Showdown
-- ##programming, Freenode
The aphorism "you can't tell a book by its cover" originated in the times when
books were sold in plain cardboard covers, to be bound by each purchaser
according to his own taste. In those days, you couldn't tell a book by its
cover. But publishing has advanced since then: present-day publishers work
hard to make the cover something you can tell a book by.
I spend a lot of time in bookshops and I feel as if I have by now learned to
understand everything publishers mean to tell me about a book, and perhaps a
bit more. The time I haven't spent in bookshops I've spent mostly in front of
computers, and I feel as if I've learned, to some degree, to judge technology
by its cover as well. It may be just luck, but I've saved myself from a few
technologies that turned out to be real stinkers.
-- Paul Graham
-- Java's Cover ( http://www.paulgraham.com/javacover.html )