免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1314 | 回复: 2
打印 上一主题 下一主题

[SCO UNIX] SCO OpenServer 环境下不同容量硬盘的对拷 [复制链接]

论坛徽章:
0
1 [报告]
发表于 2003-05-22 22:58 |只看该作者

SCO OpenServer 环境下不同容量硬盘的对拷

SCO OpenServer 环境下不同容量硬盘的对拷

[   2003年3月6日,阅读人数57人 ]




  在开始硬盘对拷之前,首先将已安装好系统的源盘和空白目标盘分别设置跳线,安装在计算机上。开机,进入CMOS设置两块硬盘的参数,然后进入源盘的超级用户root,就可以开始拷贝了。
  以下是在digital P200微机上,SCO Open Server Release 5环境下进行硬盘对拷的过程。
  1.增加一块硬盘
  #mkdev hd 1 0
  Your root hard disk is attached to an IDE controller.
  Pick one of the choices below or you may quit and
  Invoke mkdev hd -u for a detail usage message.
  1)Add a hard disk to IDE controller
  2)Add a hard disk to SCSI controller
  3)Add a hard disk to an IDA controller(EISA)
  Enter 1,2,3,or enter 'q' to quit输入1)
  ……
  If you wish to exit the entire installation at this menu,
  Press the key.
  Hard Disk Drive 1 Configuration
  1.Display current disk parameters
  2.Modify current disk parameters
  3.Select default disk parameters
  Enter an option or 'q' to quit:
  (这是dkinit程序的菜单。在此可以选1显示目标硬盘参数,如不符要求,可选2进行修改,然后输入q继续)
  ……
  1.Display Partition Table
  2.Use Entire Disk for UNIX
  3.Use Rest of Disk for UNIX
  4.Create UNIX Partition
  5.Activate Partition
  6.Delete Partition
  7.Create Partition
  Enter your choice or 'q' to quit:
  (这是fdisk程序的菜单。在此可以对目标硬盘按需要进行分区,然后输入q继续)
   ……
  1.Print Current Bad Track Table
  2.Scan Disk (You may choose Read-Only or Destructive later)
  3.Add Entries to Current Bad Track Table by Cylinder/Head Number
  4.Add Entries to Current Bad Track Table by Sector Number
  5.Delete Entries Individually from Current Bad Track Table
  6.Delete All Entries from Bad Track Table Please enter your choice or 'q' t 廯 t:
  (这是badtrk程序的菜单,选择2可以扫描查找硬盘上有问题的磁道,并对应到硬盘别处的正常磁道上,另外还建立一个坏道表。输入q继续)
  Enter the number of bad tracks to allocate space for
  (or pressto use the recommended value of 15):
  (回车)
  There are 2110657 blocks in the UNIX area.
  Please enter the number of file systems you want this area
  To be divided into,or pressto get the default of 2 file system(s).
  (回车)
  The layout of the filesystems and swap area is now prepared.
  Do you wish to make any manual adjustments to the sizes or
  names of the filesystems or swap area before they are created
  on the hard disk?(y/n)
  (输入n)
  Making filesystems
  Hard disk initialization procedure completed.
  2.用dd命令将SCO UNIX硬盘自举程序从源盘拷入目标盘
  #dd if=/dev/hd0a of=/dev/hdla bs=1024 count=40
  3.用divvy命令在目标盘上建立可安装的文件系统
  #divvy-im /dev/rhdla
  There are 2095537 lk blocks in the UNIX area.
  Between 16000 and 512000 lk blocks should be reserved for the swap area.
  Please enter the swap-space allocation ,or press
  To get the default allocation of 24000 lk blocks:
  (回车)
  There are 2095537 lk blocks in the UNIX area.
  Between 15000 and 64000 lk blocks should be reserved for the boot filesystem.
  Please enter the boot-space allocation,or press
  To get the default allocation of 20000 lk blocks:
  (回车)
  Do you want a separate /u filesystem?(y/n)
  (输入n)
  The layout of the filesystems and swap area is now prepared.
  Do you wish to make any manual adjustments to the sizes or
  names of the filesystems or swap area before they are created
  on the hard disk?(y/n)
  (输入n)
  Making filesystems
  4.用divvy 命令查看并修改内分区(division)名
  #divvy/dev/rhdla
  Name Type New FS # First Block
  Last Block dll50 EAFS     no     0
  0 19999
  d1151 NON Fs          no     1 20000
  43999
  HTFS              no     2 44000
  2045725
  Not USED            no     3 -
  -
  Not USED            no     4 -
  -
  Not USED            no     5 -
  -
  recover NON FS         no     6 2045726
  2045735
  hdla WHOLE DISK        no     7 0
  2061831
  2045736 lk blocks for divisions,16096 lk blocks reserved for the system.
  n[ame] Name or rename a division.
  c[reate] Create a new file system on this division.
  t[ype] Select or change filesystem type on new filesystems.
  p[revent] Prevent a new file system from being created on
this.
  s[tart] Start a division on a different block.
  e[nd] End a division on a different block.
  r[estore] Restore the original division table.
  Please enter your choice or 'q' to quit:
  (输入n修改内分区名。在此分别将0,1,2内分区名修改为rb ,rs,rr)
  i[nstall] Install the division set-up shown.
  r[eturn] Return to the previous menu.
  e[xit] Exit without installing a division table.
  Please enter your choice:
  (输入i将内分区情况安装在目标盘上)
  Making filesystems.
  5.将目标盘引导文件系统安装到源盘上,并拷贝其内容
  #mount/dev/rb/mnt
  #cd/stand
  #find.-print|cpio-pdumv /mnt
  #umount/mnt
  6.将目标盘根文件系统安装到源盘上,并拷贝其内容
  # mount/dev/rr/mnt
  #find/-mount print|cpio-pdumv/mnt
  7.建立目标盘根文件系统中的文件系统安装点
  #cd /mnt
  #mkdir mnt stand;chmod 755 mnt stand;chgrp bin mnt stand
  #umount /mnt
  至此,拷贝完毕。

论坛徽章:
0
2 [报告]
发表于 2003-05-23 09:20 |只看该作者

SCO OpenServer 环境下不同容量硬盘的对拷

各位大侠,哪位照此办理过,如有成功实例,说一声。

论坛徽章:
0
3 [报告]
发表于 2003-08-27 22:30 |只看该作者

SCO OpenServer 环境下不同容量硬盘的对拷

我用一块坏硬盘作了,引导时出现boot:并引导 ,   当引导到unix.data时提是硬盘错误,并再次出现 boot:,不只是我的硬盘问题,还是方法问题,不知为什么需要改                                                                输入n修改内分区名。在此分别将0,1,2内分区名修改为rb ,rs,rr
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP