使用dkinit后将提示: Hard Disk Drive 0 Configuration 1. Display current disk parameters 2. Modify current disk parameters 3. Select default disk parameters Enter your choice or q to quit: 选择2 Disk Parameters values --------------- ------ 1. Cylinders 源盘参数 2. Heads 源盘参数 3. Write Reduce 4. Write Precomp 5. Ecc 6. Control 7. Landing Zone 源盘参数 8. Sectors/track 源盘参数 Enter a parameter to modify or q to return to the main menu: 分别选1,7,2,8将其改为目的盘的实际参数 其中第1、第7项为磁道个数(建议比实际数-1),第2项为磁头个数,第8项为扇区数 改完后输入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 Enter your choice or q to quit: 选择2(对于高手,也可选择4建立1个新unix主分区来实现更复杂的要求) Current Hard Disk Drive: /dev/rhd00 Total disk size: xxxxx tracks (xxxx reserved for masterboot and diagnostics) Warning! All data on your disk will be lost! Do you wish to continue? (y/n) 不要害怕,按Y继续,数据不会丢的 Current Hard Disk Drive: /dev/rhd00 Total disk size: xxxxx tracks (xxxx reserved for masterboot and diagnostics) 这样执行完后,在没有损坏ghost出来的目的盘操作系统的基础上,就可用硬盘的全部实际空间了
显示出逻辑分区表 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 division. 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. Enter your choice or q to quit: 建议修改原分区表里的recover分区的s和e值, 把它还挪到分区表最后的位置,大小不要变, 然后分别依次选择n、s、e、c四项内容对未使用的新空间进行新分区的创建操作, 最后选i建立新文件系统
5、让新增的文件系统可自动在开机时刻mount #mkdev fs Filesystem Initialization Program This program performs maintenance tasks required to add or delete an existing filesystem. Would you like to: 1. Add a new filesystem to system. 2. Remove a filesystem. Select an option or enter q to quit: 选择1增加 Enter a device name and press < Return > or q to quit: /dev/你刚刚建立的新分区名称 Enter a directory name and press < Return > or q to quit: 输入你想mount到的安装点目录名