2010/02/27

Sun Studio 12 Update1

厳密には、solarisネタでは無い。sunサイトからダウンロードできるSunStudio12 Update1は、bz2形式で入手できる。これをCD-Rに焼いて持ち運ぶのも芸がないので、ちょっと一工夫(一苦労か)。

例によって自分で考えないで他人の資産を利用する。参考にしたのはこちらのサイト↓

  1. Sun Studio Downloadsで Sun Studio 12 Update 1 Multi-Language Releaseをダウンロード。
    ※SDN Memberになっていない場合は登録する。過去のSunSolve会員(?)でもOKみたい。
  2. 「SunStudio12u1-SunOS-SPARC-tar-ML.tar.bz2」をbzcat展開。
    % pwd
    /export/home/butch/ss12u1
    % ls -lh
    -rw-r--r-- 1 butch butch 413M 2月 27日 05:45 SunStudio12u1-SunOS-SPARC-tar-ML.tar.bz2
    % bzcat SunStudio12u1-SunOS-SPARC-tar-ML.tar.bz2 | tar -xf -
  3. ホストの物理ドライブをゲストOSに割り当て。ドライブの確認
    % cdrecord -scanbus
    Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 J・g Schilling
    Warning: Using USCSI interface.
    Warning: Volume management is running, medialess managed drives are invisible.
    cdrecord: No such file or directory. Cannot open '/dev/rdsk/c1t0d0s2'. Cannot open SCSI driver.
    cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
    cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
  4. どうみても失敗しているが、気にせずISOイメージ作成
    % mkisofs -J -R -V "SunStudio12Update1" -D -l -o SunStudio12Update1.iso ./ss12u1
    2.32% done, estimate finish Sat Feb 27 06:19:34 2010
    :
    (略)
    :
    99.71% done, estimate finish Sat Feb 27 06:19:46 2010
    Total translation table size: 0
    Total rockridge attributes bytes: 15466
    Total directory bytes: 71680
    Path table size(bytes): 550
    Max brk space used 2c000
    215641 extents written (421 MB)
  5. マウントしてみた
    # lofiadm -a /export/home/butch/SunStudio12Update1.iso
    /dev/lofi/1
    # mount -F hsfs -r /dev/lofi/1 /mnt
    # df -h /mnt
    ファイルシステム サイズ 使用済み 使用可能 容量 マウント先
    /dev/lofi/1 421M 421M 0K 100% /mnt
    # umount /mnt
    # lofiadm -d /dev/lofi/1
  6. rootでドライブ確認したら成功した。
    # cdrecord -scanbus
    Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 J・g Schilling
    Warning: Using USCSI interface.
    Warning: Volume management is running, medialess managed drives are invisible.
    Using libscg version 'schily-0.8'.
    scsibus1:
    1,0,0 100) 'SATA ' 'MATSHITABD-MLT S' '1.02' Removable CD-ROM
    1,1,0 101) *
    1,2,0 102) *
    1,3,0 103) *
    1,4,0 104) *
    1,5,0 105) *
    1,6,0 106) *
    1,7,0 107) *
  7. では早速焼く。前に予行演習を。
    # cdrecord -dummy -v dev=1,0,0 speed=6 -pad -dao SunStudio12Update1.iso
    Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 J・g Schilling
    TOC Type: 1 = CD-ROM
    scsidev: '1,0,0'
    scsibus: 1 target: 0 lun: 0
    :
    write track data: error after 0 bytes
    cdrecord: A write error occured.
    cdrecord: Please properly read the error message above.
    Writing time: 5.030s
    Average write speed 573.9x.
    Fixating...
    WARNING: Some drives don't like fixation in dummy mode.
    Fixating time: 0.002s
    cdrecord: fifo had 73 puts and 1 gets.
    cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
  8. よくわからんが焼き込み開始。
    # cdrecord -v dev=1,0,0 speed=6 -pad -dao SunStudio12Update1.iso
    Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 J・g Schilling
    TOC Type: 1 = CD-ROM
    scsidev: '1,0,0'
    scsibus: 1 target: 0 lun: 0
    Warning: Using USCSI interface.
    Warning: Volume management is running, medialess managed drives are invisible.
    :
    write track data: error after 0 bytes
    cdrecord: A write error occured.
    cdrecord: Please properly read the error message above.
    Writing time: 8.509s
    Average write speed 573.7x.
    Fixating...
    Fixating time: 0.002s
    cdrecord: fifo had 73 puts and 1 gets.
    cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
  9. はいダメ。ゲストOSを停止します(ホストOSがドライブを使えない)
  10. ホストOSにダウンロードして、DVD Decrypterで焼く。ラベル名が恥ずかしいことになっているのは秘密。


  11. そして出来上がったCDを見て気づく。windowsでbz2全部展開すりゃいいじゃん。まあここまできたら後には引けない。偽ラベルを作成。

0 件のコメント: