Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91305111
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类:

2008-03-19 22:33:42

  以赛博中文的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.
阅读(403) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~