会员控制台 会员登陆 会员注册 最后更新 高级搜索 会员投稿 退出登陆
设为首页
收藏本站
留言给我
  首页 | 操作系统类 | 程序设计类 | 数据库类 | 应用服务类 | 网络及硬件类 | 其他技术 | GBunix论坛
操作系统类
程序设计类
数据库类
应用服务类
网络及硬件类
其他技术
Unix中文 / 操作系统类 / SCO UNIX / 烧制2.88MB的应急引导盘
烧制2.88MB的应急引导盘
2004-08-05    shuweich       点击:
烧制2.88MB的应急引导盘
  大家都知道SCO OSR55.0.x创建应急引导盘时可以做 boot+root的盘,但是只能用2.88MB的软盘(/dev/fd0135ds36),所以一直没有尝试过。 昨日无事,忽忆起此事,随试之: 

  1、在/tmp/boot/目录下做一空文件,boot288.img(名字任意,boot目录自建)

  2、用marry伪装成设备:
  a) # cd /dev
  b) # mv fd0135ds36 /tmp
  c) # mv rfd0135ds36 /tmp
  d) # marry -a /tmp/boot/boot288.img
  e) # ln /dev/marry/tmp/boot/boot288.img /dev/fd0135ds36
  f) # mknod rfd0135ds36 c 76 1(76和1是根据此时的fd0135ds36来的,该操作是为了和当前的 /dev/fd0135ds36配对)

  3、运行mkdev fd创建应急引导盘。
  自然是选boot+root 和 2.88MB大小的设备了 :)

  4、将伪装的设备拆下来
  a) # marry -d /tmp/boot/boot288.img
  b) # mv ......将 mv 到tmp下的两个设备移回来

  5、生成可引导的镜像文件
  a) # cd /tmp/boot
  b) # vi p.sh ##(创建一SHELL 将生成的img文件[ 2683904 Bytes]不足的字节补齐 [ 2949120 Bytes ] )
  ######
  >ext
  A=1
  while [ "$A" -le 265216 ]
  do
  echo -n "\000" >>ext
  A=`expr $A + 1`
  done
  cat boot288.img ext >boot288a.img
  ######
  c) # mkisofs -b boot288a.img -J -o /tmp/boot288.iso -r -V "SCO_2.88MBGeneric" /tmp/boot

  6、将/tmp/boot288.iso传到WIN系统刻成光盘就OK了。

-----------------------------------@_@----------------------------------
注:你可以在/tmp/boot下加许多东东,要不然刻成的光盘就太浪费了,只有两MB哈。

  问题:用这张光盘引导完系统后,光盘没办法挂上使用,可惜哈。
  赠送:可以加 网络功能 和 vi 在镜像上,方法如下:
  Do you want a shell escape to place extra files on the root filesystem?(y/n)回答y,你将会看到如下信息:
  You can copy files into/mnt to customize your root filesystem floppy
  After you finish,type “exit 0”to continue
  You have n free blocks(512 bytes each)available on the floppy
  此时,命令提示符是<bootroot>;

  在<bootroot>提示符下用下列命令复制网络服务文件和vi的支持功能:
  cp/etc/services /mnt/etc/services
  cp/etc/tcp /mnt/etc/tcp
  cp/etc/slink /mnt/etc/slink
  cp/etc/ifconfig /mnt/etc/ifconfig
  cp/etc/inconfig /mnt/etc/inconfig
  cp/bin/who /mnt/bin/who
  cp/bin/ps /mnt/bin/ps
  cp/usr/bin/telnet /mnt/usr/bin/telnet
  cp/usr/bin/rlogin /mnt/usr/bin/rlogin
  cp/usr/bin/ftp /mnt/usr/bin/ftp

  cp/usr/bin/vi /mnt/usr/bin
  mkdir -p /mnt/usr/lib/terminfo/a
  cd /usr/lib/terminfo/a
  cp ansi /mnt/usr/lib/terminfo/a
  exit 0

了解更多详情,参与讨论,请进入GBUNIX论坛

http://www.gbunix.com/bbs/index.php
责任编辑: trotter

相关文章
创建带网络功能的SCO5.05应急软盘组 - 08-06 10:54 pm - 点击: 196
应急启动盘与安全管理 - 08-06 10:49 pm - 点击: 228
创建一个包含vi的SCO5.05系统应急引导盘 - 08-06 10:47 pm - 点击: 200

发表评论 查看评论 加入收藏 Email给朋友 打印本文
给该文章评分
1 2 3 4 5 6 7 8 9 10
平均得分 0, 共 0 人评分
1 2 3 4 5 6 7 8 9 10
发表评论
标题:
内容:
声明:本站资讯均来自互联网,所有文章版权归原作者和出版者所有,如涉及版权问题,请来信告知!
Copyright © 2002-2004 GBunix.com. All rights reserved.