歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

在SCO下直接使用ISO鏡像安裝軟件的方法


以賽博中文的ISO文件為例。
   你可以使用ISO文件在SCO下直接安裝,但必須保證你的機器上已經安裝了光驅,並且在核心中含有CDROM設備,即hwconfig -h 列表中有CDROM信息。接下來你可以通過下面的步驟來處理:
    cd /dev
    mv cd0 cd0.bak
    cd /tmp (此處假定你的cyber.iso放在/tmp目錄中)
    marry -a cyber.iso
    cd /dev
    ln -s /dev/marry/tmp/cyber.iso cd0
    l cd0 顯示結果如下:
    brw-r----- 1 root sys 76, 1 Feb 26 10:45 cd0@
    mv rcd0 rcd0.bak
    mknod rcd0 c 76 1 
    l *cd0 顯示結果如下:
    brw-r----- 1 root sys 76, 1 Feb 26 10:45 cd0@
    crw-r--r-- 1 root sys 76, 1 Feb 26 10:48 rcd0
    custom
    選擇安裝介質時選CDROM就可以安裝了。
    記得安裝完成之後
    cd /dev
    rm cd0 rcd0
    mv cd0.bak cd0
    mv rcd0.bak rcd0;
    marry -d /tmp/cyber.iso
    恢復你的光驅設備,否則你的光驅不能使用啦!
補充marry的說明:
marry -- marriage driver
   The marriage driver allows a regular file to be treated as a device. It does not drive any hardware directly, but it redirects reads and writes on its device to the associated regular file.
   marry(ADM) uses the marriage driver to associate a block special device file with a regular file. The regular file may then be accessed through the block device node created below the /dev/marry directory, or through a character device node.
  swap(ADM) uses marry to allow a regular file to act as a block device for swapping. marry may also be used to allow a regular file to act as a block device for mounting.
Copyright © Linux教程網 All Rights Reserved